What is a class in Java interview questions?

The Class class is used to represent the classes and interfaces that are loaded by a Java program . The Class class is used to obtain information about an object’s design. A Class is only a definition or prototype of real life object. Whereas an object is an instance or living representation of real life object.

Sizin İçin Seçtik  When should I define a class?

Leave a Reply

Your email address will not be published. Required fields are marked *