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.
|Java - Interview Questions and Answers|
|Ans. Keywords are the reserved words that have a pre defined meaning for a compiler whereas modifiers are the type of keywords that modifies the state or definition of a programming construct.|
for, while are keywords but not modifiers.
private , public , final , abstract etc are keywords as well as modifiers.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  keyword  modifier|
|What are the common uses of "this" keyword in java ?|
| 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?|
| Which keyword is used to provide explicit access of a code block to single thread ? |
|Can we access instance variables within static methods ?|
|What is the use of Transient Keyword ?|
|When we say final x = 10, is the reference final or the value ?|
|What is Volatile keyword used for ?|
|What is a Final Method ?|
|What is a Final Class ?|