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