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

}

}

1
Object
2
class Object
3
class java. lang. Object
4
Compilation Error

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation