GIAC
GSSP-JAVA · Question #161
GSSP-JAVA Question #161: Real Exam Question with Answer & Explanation
Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #161. The question stem and answer options stay visible for context.
Question
Mark works as a Programmer for InfoNet Inc. He writes the following programs. 1. package book; 2. public class read 3. { 4. (access modifier) int r1=10; 5. } 1. package book1; 2. import book.read; 3. class Doread extends read 4. { 5. public void test() 6. { 7. System.out.println("The value of r1 is." +r1); 8. } 9. } Which of the following access modifiers will be put in the place of the word, (access modifier), to compile the program successfully?
Options
- Adefault
- Bpublic
- Cprotected
- Dprivate
- Evolatile
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.