What Is java.lang.Class Object In Java?
Every class in java is associated with one special object of type java.lang.Class. This object will hold all the metadata of that class like class name, package name, fields, methods, constructors, annotation details etc. This object is created by the JVM when the class is loaded. This object will be used to retrieve the information about a class at run time.
Every class in java is associated with one special object of type java.lang.Class. This object will hold all the metadata of that class like class name, package name, fields, methods, constructors, annotation details etc. This object is created by the JVM when the class is loaded. This object will be used to retrieve the information about a class at run time.
No comments:
Post a Comment
Thank you for your comments.