Object class

Introduction Object class has got very prominence in Java programming. In inheritance, it sits at the top of the hierarchy. That is, any Java class, either you write or predefined, should be a subclass of Object class. If you write any class, Java implicitly extends Object class. Why this? Java designers thought that some methods …

Object class Read More »