Welcome Guest | Sign in | Register
Objects and Collections - Discussion Page For Q.2917 | Java Programming Questions and Answers | Java Programming Free Online-Tests | LucentBlackBoard | LucentBlackBoard.com

Home > Java Programming > Objects and Collections > Questions and Answers

Exercise:

Section 1

Q: Class A{
Class B{
Int I;
}

public static void main(String args[]){
B b1=new B();
System.out.println(b1.i);
}
}
A. compile time error B. runtime error
C. 0 D. null

Answer and Explanation

Answer:compile time 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.