How To Get The Object Of Class Class?
Answers
Answered by
0
The methods in any class in java which returns the same class object are also known as factory methods. The class name for which Class object is to be created is determined at run-time. obj.getClass() : This method is present in Object class.
Answered by
0
Class ab=new Class( );
The new operator assigns certain memory space to the object "ab" of the class "Class" as per the datatype of the variable stored in "ab".
#sumedhian ❤❤
Similar questions
Social Sciences,
7 months ago
English,
7 months ago
Chemistry,
1 year ago
Math,
1 year ago
Math,
1 year ago