1.

What Is The Use Of Object And Class Classes?

Answer»

The Object class is the superclass of all other classes and it is highest-level class in the Java class hierarchy. Instances of the class Class represent classes and interfaces in a running Java APPLICATION. Every array also belongs to a class that is reflected as a Class object that is shared by all arrays with the same ELEMENT type and number of dimensions. The primitive Java types (boolean, BYTE, char, short, int, long, FLOAT and double) and the keyword VOID are also represented as Class objects.

The Object class is the superclass of all other classes and it is highest-level class in the Java class hierarchy. Instances of the class Class represent classes and interfaces in a running Java application. Every array also belongs to a class that is reflected as a Class object that is shared by all arrays with the same element type and number of dimensions. The primitive Java types (boolean, byte, char, short, int, long, float and double) and the keyword void are also represented as Class objects.



Discussion

No Comment Found