Which class is a superclass of all classes?

1 Answers

Mukul Goenka
Mukul Goenka

Java.lang package, The object is the root class for all the java classes and we don’t need to extend it. Every other java classes fall back under the object. All the different non-primitive types including arrays are inherited directly or indirectly from this class.

Answer