Q1 What is the difference between a class and an object?
Show the answer Hide the answer
A class is the definition; an object is one thing made from it, with its own data.
The class says what fields and methods exist. The object is a particular set of values for those fields, living in memory. One class, many objects, each with its own state - which is why changing one object does not change another.
What it is really testing. That you can talk about a program at runtime, not only as source code. The giveaway answer is one that never mentions state or memory.