Is a class also a type in Java?

Java provides a class with name Class in java. … Instances of the class Class represent classes and interfaces in a running Java application. The primitive Java types (boolean, byte, char, short, int, long, float, and double), and the keyword void are also represented as Class objects.

Sizin İçin Seçtik  How do you find the class type of an object?

Leave a Reply

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