class TestInstanceof {
public static void main(String[] args) {
Integer i=5;
Boolean b;
b=(i instanceof Integer);
System.out.print(b);
b=(i instanceof Number);
System.out.println(b);
}
}
class TestInstanceof {
public static void main(String[] args) {
Integer i=5;
Boolean b;
b=(i instanceof Integer);
System.out.print(b);
b=(i instanceof Number);
System.out.println(b);
}
}
Responses to “What will be the output of the following code?”