Correct Answer: Both the equals() and hashCode() methods
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Core Java Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Core Java MCQ Questions
The instanceof operator can be used to determine if an object is:
You want subclasses in any package to have access to members of a superclass. Which is the most restrictive access that accomplishes this objective?
When the == comparator is used on two objects, it checks to see if they:
An "overloaded" method has what in common with one (or more) methods on the same class?
Why is it important to override hashCode() when you override equals()?
java.util.Collection is:
What's the output of following error ? class A { public Number getNumber(){ return 1; } } class B extends A { public int getNumber(){ return 2; } } public class Main{ public static void main(String []args){ A a = new B(); System.out.println(a.getNumber()); } }
Anonymous inner classes have access to...
All of the classes in the Java Collections Framework:
Float p = new Float(3.14f); if (p > 3) { System.out.print("p is bigger than 3. "); } else { System.out.print("p is not bigger than 3. "); } finally { System.out.println("Have a nice day."); } What is the result?