

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program?
public class Result { public static void main(String args[]) { Object object = new Object(); System.out.print(object.getclass()); } } |
A. | Compilation error |
B. | class object |
C. | class java.lang.Object |
D. | Runtime error |
E. | None of these |
Answer» B. class object | |