InterviewSolution
Saved Bookmarks
| 1. |
Which of these cannot be declared static?(a) class(b) object(c) variable(d) methodThis question was addressed to me during an interview.The query is from Arrays Revisited & Keyword static in portion Classes and Methods of Java |
|
Answer» RIGHT choice is (b) object Easy explanation: static STATEMENTS are run as soon as class containing then is LOADED, PRIOR to any object declaration. |
|