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.
|Interview Questions and Answers|
|Ans. synchronized is a keyword and a modifier. The synchronized keyword is used to indicate that a method can be accessed exclusively by one thread at a time.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  synchronization  synchronized  modifier  identifier Asked in 2 Companies|
| 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 constructors be synchronized in Java ?|
|What is Volatile keyword used for ?|
|Difference between Vector and ArrayList ?|
|Difference between StringBuffer and StringBuilder ?|
|What is race condition ?|
|Why HashTable has been deprecated ?|
|What is an object's lock and which object's have locks?|