Declaration and Access Control on Java related Questions and Answers


Question :   Which is a valid declaration within an interface?
1. public static short stop = 23;
2. protected short stop = 23;
3. transient short stop = 23;
4. final void madness(short stop);
Answer :   1 - public static short stop = 23;  

* 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