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. There can be two different elements with the same hashcode. When two elements have the same hashcode then Java uses the equals to further differentation. So there can be one or two objects depending on the content of the objects.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   hashcode   map   hashmap   object reference   advanced Asked in 1 Companies|
|What are the common uses of "this" keyword in java ?|
|What is the default value of a declared object reference ?|
|Is it a bad practice to initialize object reference to Null ?|
|How different is it when final applied to variables and object references ?|
| In which memory segment - heap or stack, the following stored by JVM|
1. static members
3. object references
4. local or method variables