Which statement about the static attributes and methods is NOT true? a.Non-static attribute values only can be
Question:
Which statement about the static attributes and methods is NOT true?
a.Non-static attribute values only can be assigned after the creation of objects. However, static attribute values can be assigned without creating any object of the class.
b.The static attribute values are placed in the class shared memory and can be accessed via the class name directly.
c.A class can contain more than one static attribute. All class attributes can be declared as the static.
d.Objects can use non-static methods to access the static attribute values but only can use static methods to modify the static attribute values.
e.A constant value can't be changed anymore even it is declared as a static constant.
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky