7.Which of the following statements about class variables in Java is not true?(a) Class variables require the modifier static in the declarations. (b) All objects have their own copy of the class variable defined in the instantiated class.(c) Non-static methods in a class can access the class variable defined in the same class.(d) Class variables do not need the reference to the object of the instantiated class to access them.
添加回答
举报
0/150
提交
取消