Which statements about static initializers are correct? (Choose three.) A. They cannot be used to create instances
Question:
Which statements about static initializers are correct? (Choose three.)
A. They cannot be used to create instances of the class they are contained in.
B. They can assign a value to a static final variable.
C. They are executed at most once per program.
D. They are executed each time an instance of the class is created from a local cache of objects.
E. They are executed each time an instance of the class is created using the new keyword.
F. They may never be executed.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
OCP Oracle Certified Professional Java SE 11 Developer Practice Tests Exam 1Z0 819 And Upgrade Exam 1Z0 817
ISBN: 9781119696131
1st Edition
Authors: Scott Selikoff, Jeanne Boyarsky
Question Posted: