GIAC
GSSP-JAVA · Question #158
GSSP-JAVA Question #158: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #158. The question stem and answer options stay visible for context.
Question
Mary works as a Software Developer for XYZ Inc. She writes the following code. 1. class Alpha { 2. public static class Beta { } 3. } 4. class Delta { 5. // insert code here 6. } Which of the following code statements can be inserted at line 5 to create an instance of the Beta class defined in the class Alpha?
Options
- ABeta b = new Beta();
- BAlpha a = new Alpha();
- CBeta = new a.Beta();
- DThe class Beta cannot be instantiated at line 5.
- EAlpha.Beta b = new Alpha.Beta();
Unlock GSSP-JAVA to see the answer
You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.