Question: Which of the following is used to get the type of object represented by obj? (a) Classloader.getInstance(obj); (b) Obj.getClass().getName(); (c) Obj.toString(); (d) New Class.getName(obj);
Which of the following is used to get the type of object represented by “obj”?
(a) Classloader.getInstance(obj);
(b) Obj.getClass().getName();
(c) Obj.toString();
(d) New Class.getName(obj);
Step by Step Solution
3.43 Rating (150 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
