To define a class that will represent a car, which of the following definitions is most appropriate?


To define a class that will represent a car, which of the following definitions is most appropriate?


a) private class car

b) public class car

c) public class Car

d) public class CAR

e) private class Car

Answer: c. Explanation: Classes should be defined to be public so that they can be accessed by other classes. And following Java naming convention, class names should start with a capital letter and be lower case except for the beginning of each new word, so Car is more appropriate than car or CAR.