Welcome Guest | Sign in | Register
Variables and Loops - Discussion Page For Q.2986 | 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 Loop {
public static void main(String[] args){

for(int i=0;false;i++){
System.out.println("java");
}
}
}

What will be output of above program?
A. java B. Null
C. It will not print anything. D. Compiler error

Answer and Explanation

Answer:Compiler error

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.