Declaration and Access Control on Java related Questions and Answers


Question :   Which of the following class level (nonlocal) variable declarations will not compile?
1. protected int a;
2. transient int b = 3;
3. private synchronized int e;
4. volatile int d;
Answer :   3 - private synchronized int e;  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter