[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

JAVA Programming :: Basic Concepts - Discussion

Home > JAVA Programming > Basic Concepts > MCQs Questions Discussion

28 / 64

What gets printed when the following code is compiled and run. Select the one correct answer.

public class test {
public static void main(String args[]) {
inti = 1; 
do
{
i–;
} while (i> 2);
System.out.println(i);
}
}

A    0

B    1

C    2

D   -1

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!