Object class in Java

Java 8Object Oriented ProgrammingProgramming

Object class is the root class of every class in Java. It contains certain common methods which are applicable to all objects of java. It is used primarily when we don't know the type of object we are using. Being a parent class, we can use reference of Object class to point to object of any class.

Published on 06-Feb-2018 13:21:49