Consider
Object obj = ....;
System.out.println(obj instanceof Object);
What should obj be so that the answer is false
(Any other option other than null
)
Is this a trick question?
Object obj = new Object() {{ System.out.println(false); System.exit(0); }};
System.out.println(obj instanceof Object);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With