SCJP Certification

Sun Certified Java Programmer Certification exam essentials

December 5th, 2009

What will be the output of the following code?

Java Questions, by Daisy Williams.

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);
}
}

Share

Back Top

Responses to “What will be the output of the following code?”

Comments (0) Trackbacks (0) Leave a comment Trackback url
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Your email address will not be published. Required fields are marked *

*