3230 Java Interface Quiz 02 Objects and Classes
Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!
What is the output of the following code? class S { int x = 0; S()(x++;) public static void main(String args[]) { S s = new S(); System.out.println(s.x); } }
1
Which one is wrong?
Class and object are just different names for the same thing.
Which of the following class is available in the java.lang package?
Object
True or False, An object that is not referred by any reference variable, is known as anonymous object.
True
True or False, We can have any number of classes in a java source file.
True