In the Java specification, it is considered good practice to override .equals() and .hashCode() both together. In the context of HashMap, explain why implementing only one of the two instead of both can cause problems. You must consider both cases.
Java Programmer Interview Questions
26,902 java programmer interview questions shared by candidates
Extensive java core questions and collection
Questions were quite simple like Define OOP Concepts in Java, Exception Handling and How to do inhertance and basic HR questions like Tell me something about yourself.
Can an interface contain static methods? Can they contain non-synchronized methods?
What is the difference between an Array and an ArrayList
Not even a single question was asked from Java.
Array programs. compare two arrays. find largest element in array. array length will vary. (not same length arrays will be given)
How much money you wanna make ?
1. Group people by name, age in using stream api, eg: [{ram, 29}, {kim.29}, {sandy,30}, {mark,34},{lisa,34},{steve,25} ] 2. using java write a program to make the 0 in left side and 1 in right side, an array of mixed value of 0s, 1s
Q: What is Interface and Abstract Class in Java?
Viewing 911 - 920 interview questions