What will be the output of the following Java code?
class Output
{
public static void main(String args[])
{
Object obj = new Object();
System.out.print(obj.getclass());
}
}
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
Answer: Option C
Join The Discussion