engineering recuitment UKPSC Polytechnic Lecturer Mock Test 2024 Programming and Data Structure Java
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