Home Tutorial Java Scjp Part5 SCJP Module-5 Question-9


Share on Google+Share on Google+
SCJP Module-5 Question-9
Posted on: July 12, 2010 at 12:00 AM
The Program given below will test your understanding of loop and its flow in Java program. This example is also very useful for preparation of SCJP exam.

Given a sample code:

public class Test {
public static void main(String args[]) {
int i = 9;
while (i++ <= 12) {

What will be the result of above code ?

(1) 10
(2) 14
(3) 13
(4) 11




Related Tags for SCJP Module-5 Question-9:

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: July 12, 2010

Recommend the tutorial

Advertisements Advertisements