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. Both belong to the class as a whole and not to the individual objects. Static methods are explicitly called for execution whereas Static block gets executed when the Class gets loaded by the JVM.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   oops   static   static method   static block   difference between   similarity basic   frequent|
Try 1 Question(s) Test
|Difference between == and .equals() ?|
| Explain the scenerios to choose between String , StringBuilder and StringBuffer ?|
What is the difference between String , StringBuilder and StringBuffer ?
|What are the difference between composition and inheritance in Java?|
|What is the difference between declaration, instantiation and initialization ?|
|What is the difference between Encapsulation and Abstraction?|
|What is the difference between final, finally and finalize() ?|
|What is the difference between ArrayList and LinkedList ?|
|If you are given a choice to use either ArrayList and LinkedList, Which one would you use and Why ?|
|Difference between first level and second level cache in hibernate ?|
|Difference between final and effectively final ? Why is effectively final even required ?|