What will be the output of the following Java code? [code] class Output { public static void main(String args[])

What will be the output of the following Java code?
Code:
    class Output 
    {
        public static void main(String args[])
        {
             Object obj = new Object();
	     System.out.print(obj.getclass());
        }
    }
A. Object
B. class Object
C. class java.lang.Object
D. Compilation Error
 

Tìm kiếm

Back
Top