Sunday, August 25, 2013

What would be the output of following piece of Java code and why?

What would be the output of following piece of Java code and why?

What would be the output of following piece of code and why??
public class Loop {
public static void main(String[] args) {
Integer i=new Integer(0);
Integer j=new Integer(0);
while(i<=j&&j<=i&&i!=j){
System.out.println(i);
}
}
}
Please explain in detail!!

No comments:

Post a Comment