Which of these functions will compare two integers, a and b, and print THEY ARE EQUAL if they are equal? Choose 2 correct answers:
A. public void printComparison(int a, int b) {
if (a == b) {
System.out.println("THEY ARE EQUAL");
}
}
B. public void printComparison(int a, int b) {
if ( (b)) {
System.out.println("THEY ARE EQUAL");
}
}
C. public void printComparison(Integer a, Integer b) {
if ( (b)) {
System.out.println("THEY ARE EQUAL");
}
}
D. public void printComparison(int a, int b) {
if (Integer.equals(a, b)) {
System.out.println("THEY ARE EQUAL");
}
}
E. public void printComparison(int a, int b) {
if (a instanceof b) {
System.out.println("THEY ARE EQUAL");
}
}