What is the Object class in Java?

The Object class is the parent class of all the classes in java by default . In other words, it is the topmost class of java. The Object class is beneficial if you want to refer any object whose type you don’t know. Notice that parent class reference variable can refer the child class object, know as upcasting.

Read more

What is built-in Java class?

In Java, all classes (built-in or user-defined) are (implicitly) subclasses of Object . Using an array of Object in the List class allows any kind of Object (an instance of any class) to be stored in the list. However, primitive types (int, char, etc) cannot be stored in the list.

Read more