What is the difference between a class and an object in Java?
A. A class is a template or blueprint for creating objects, while an object is an instance of a class.
B. A class is an instance of an object, while an object is a template or blueprint for creating classes.
C. A class and an object are the same thing in Java.
D. None of the above.
Answer:A
What is the difference between a class and an object in Java?
A. A class is a template or blueprint for creating objects, while an object is an instance of a class. B. A class is an instance of an object, while an object is a template or blueprint for creating classes. C. A class and an object are the same thing in Java. D. None of the above.