"A Java file without any class or interface definitions can also be compiled."
"If an import statement is present, it must appear before any class or interface definitions."
Originally posted by K. Ravisekhar Naidu:
HI, I have the follwoing code:
String s1="java";
String s2="java";
String s3=new String("java");
System.out.println(s1==s2);
System.out.println(s1==s3);
This prints 'true' and 'false' respectively. Any explanation for this??
Thanks
-Ravi
Originally posted by Krishna Srinivasan:
can anyone explain me about System.out.println(); in detail
Advance Thanx.
The cast "(Object[]) new int[][] {{}};" conflicts --to my knowledge-- with JLS 5.5