What is the output of the following code?
What is the output of the following code?
public class Main{ public static void main(String[] args) { boolean b = true; System.out.println(b instanceof Boolean); } }
Compile time error
boolean is not a type, it is a keyword. Boolean is a type
bool is a boolean (value), not a reference.
It cannot be the first argument of instanceof.