What is getclass () getname () in java?



What is getclass () getname () in java?..

Answer / Gunjan Jain

getClass() is a method in Java that returns the Class object of an object. It does not return a string. getName() is not a method in Java.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we call the constructor of a class more than once for an object?

1 Answers  


What are the steps involved to create a bean?

1 Answers  


what is difference between class and object?

43 Answers   College School Exams Tests, HCL,


What is audio clip interface? Name few methods of it ?

1 Answers  


What is floor math?

1 Answers  


diffrence b\w println() and printf()

8 Answers   NIIT,


Define interface in java?

1 Answers  


What is Distributed Application and what is its usage?

2 Answers  


What are the three types of design patterns?

1 Answers  


What are different data structures in java?

1 Answers  


what is the full form of java

3 Answers  


Can we assign integer value to char in java?

1 Answers  


Categories