Object Class in Java

Object class in Java, residing in java.lang package is the root of the Java class hierarchy. Every class in Java inherits either directly or indirectly from the Object class. If a Java class doesn’t extend any other class then also it implicitly extends Object class making it a direct descendant…

Continue reading