Welcome Guest | Sign in | Register
Variables and Loops - Discussion Page For Q.2991 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Variables and Loops > Questions and Answers

Q: public class BreakDemo {
public static void main(String[] args){
int j=~-3;

while(j<7){
System.out.print(j);

if(j==3){
j+=2;
continue;
}

j++;
}
}
}

What will be output of above program?
A. 2367 B. 23
C. 2356 D. Compiler error

Answer and Explanation

Answer:2356

Explanation:
There is no explanation...

Comment on this Question

Name:

Loading...




Partner Sites
LucentBlackBoard.com                  SoftLucent.com                  LucentJobs.com
All rights reserved © 2012-2015 SoftLucent.