What is y after the following for loop statement is executed?int y = 0;for (int i = 0; i < 10; ++i) { y += 1; }
A. 11
B. 10
C. 9
D. 12
What is the output of the following code:for ( ; false ; ) System.out.println("Welcome to Java");
A. does not print anything.
B. prints out Welcome to Java one time.
C. prints out Welcome to Java two times.
D. prints out Welcome to Java forever.
What is the output of the following code:for ( ; ; ) System.out.println("Welcome to Java");
A. prints out Welcome to Java two times.
B. prints out Welcome to Java forever.
C. does not print anything.
D. prints out Welcome to Java one time.
In a for statement, if the continuation condition is blank, the condition is assumed to be ______.
A. true
B. false