Solved

Where in a Class Should Static Variables Be Declared and Initialized

Question 58

Multiple Choice

Where in a class should static variables be declared and initialized?


A) Inside the constructor method.
B) Inside the class, but outside of any method body.
C) Outside the class - in a separate designated static class.
D) Outside the class, but inside the same physical file.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions