Saturday, September 5, 2009

SCJP Questions

Exhibit:
1 public class test (
2 public static void main(string args[]) {
3 int 1= 0;
4 while (i) {
5 if (i==4) {
6 break;
7 )
8 ++i;
9 )
10
11 )
12 )
What is the value of i at line 10?
A. 0
B. 3
C. 4
D. 5
E. The code will not compile.
Answer: E

0 comments:

Post a Comment

 

About

Site Info

Information Source

Academy of JAVA by Rajesh Rolen Copyright © 2009 Community is Developed by Rajesh Kumar Rolen WebSite

/* tracking code by yahoo login */