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
d) Compilation Error

1 thought on “What will be the output of the following Java code?”

Leave a Comment