1.

What is the output of this program?

public class Result
{
public static void main(String args[])
{
Object o = new Object();
System.out.print(o.getClass());
}
}

A. class java.lang.Object
B. Object
C. Compilation Error
D. class Object
E. None of these
Answer» B. Object


Discussion

No Comment Found

Related MCQs