Thanks everybody for the help on the previous question.
I have my exam on 30/4 and have few doubts:
1) class Tes {
public static void main(
String args[]) {
for(int i=0; i < 2; i++) {
continue;
System.out.println("Hello World");
}
}
}
why does it give compiler error?
2) public class
Test {
public static void main(String args[])
{
Float f = new Float(32D);
System.out.println(f);
}
}
Why is the Output 32.0 ?My understanding is that a Float wrapper class can take a float assignment value. Then why does passing a double value does not give error?
3) Does Object class implement Cloneable interface?
4) A non-static inner class is accessible from any other class(T/F)?
5) Is << a signed shift operator?