What is the result of compiling and running the following program? import java.util.Formatter; class Format2 { public static void main(String[] args) { String s="hello123"; Formatter f=new Formatter(); f.format("%S",s); System.out.println(f); } }
Prints "hello123"
Prints "HELLO123"
Compiler error
IllegalFormatException