Vidyalelo
Java Programming · Q62

Inheritence

Programming · Java Programming · question 62

Q62

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());

A.
Object
B.
class Object
C.
class java.lang.Object
Answer
D.
Compilation Error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board