Infosys Interview Question

Q: What is the difference between object and class in Java?

Interview Answer

Anonymous

Dec 16, 2021

A class is a blueprint from which you can create the instance, for example, objects. An object is the instance of the class, which helps to use variables and methods from inside the class.