Engineering Full Stack Apps with Java and JavaScript
Consider the following class...
class TestClass{ void probe(Integer x) { System.out.println("In Integer"); } //2 void probe(Object x) { System.out.println("In Object"); } //3 void probe(Long x) { System.out.println("In Long"); } //4 public static void main(String[] args){ String a = "hello"; new TestClass().probe(a); } }
What will be printed?
Select 1 option
A. In Integer
B. In Object
C. In Long
D. It will not compile