Question: D Question 7 1 pts Which method is used to compare the contents of two objects? O equals O toString O hashCode O instanceOf Question

D Question 7 1 pts Which method is used to compare the contents of two objects? O equals O toString O hashCode O instanceOf Question 8 1 pts What is the output of the following program? class X { void method(int a) { System.out.println("ONE"); } void method(double d) { System.out.println("TWO"); } } class Y extends X { @Override void method(double d) { System.out.println("THREE"); } public class Main Class { public static void main(String[] args) { new Y().method(100); } } O ONE O TWO O THREE O FOUR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
