Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Core Java - Interview Questions and Answers for 'Java reserved words' - 1 question(s) found - Order By Newest|
|Ans. All Keywords , modifiers ( public , static , final etc ) as well as non modifier keywords ( for, if,switch etc ) are reserved words in java and hence cannot be used as identifiers. Along with keywords , there are few literals that have predefined meaning and hence cannot be used as identifiers, these are true , false and null.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java keywords  java reserved words|
| Which of the following combination of keywords is illegal in Java ? |
a. static and transient
b. transient and final
c. static and synchronized
d. abstract and final
|How does volatile affect code optimization by compiler?|
|Can we access instance variables within static methods ?|
|What is Volatile keyword used for ?|
|What is the use of Transient Keyword ?|
|What is a Final Method ?|
|Can we override static methods ? Why ?|
|What is "super" used for ?|
|What is "this" keyword used for ?|
|Which of the following keyword is not permitted for outer class ?|