Welcome Guest | Sign in | Register
Flow Control - Discussion Page For Q.2766 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Flow Control > Questions and Answers

Q: class F{
public static void main(String args[]){
Int i=10;
System.out.println(“value of I is”+i);
}
}
A. value of I is 10 B. compile time error
C. run time error D. no out put

Answer and Explanation

Answer:value of I is 10

Explanation:
Normal execution, JVM will execute from main method and display the value of the local variable i.

Comment on this Question

Name:

Loading...




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