GetClass() method in Object Class :
String s = new String();
System.out.printl />
Returns the runtime class of an object. Here object is 's' and its type is String so it returns String
------
instanceof is a keyword. It checks an object reference if … Read more
String s = new String();
System.out.printl />
Returns the runtime class of an object. Here object is 's' and its type is String so it returns String
------
instanceof is a keyword. It checks an object reference if … Read more