JAVA Flow Control Determine output:public class Test{ public static void main(String args[]){ int i; for(i = 1; i < 6; i++){ if(i > 3) continue ; } System.out.println(i); }} 6 4 2 3 5 6 4 2 3 5 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the output?public class Test{ public static void main(String[] args){ int x=10, y=0; if(x && y){ System.out.print("TRUE"); } else{ System.out.print("FALSE"); } }} Runtime Error Compilation Error FALSE TRUE Runtime Error Compilation Error FALSE TRUE ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the result?1. int i = 10;2. while(i++ <= 10){3. i++;4. }5. System.out.print(i); 11 10 Line 5 will be never reached. 13 12 11 10 Line 5 will be never reached. 13 12 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the output?public class Test{ public static void main(String args[]){ int i = 1; do{ i--; }while(i > 2); System.out.println(i); }} 1 0 -1 None of these 2 1 0 -1 None of these 2 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control Consider the following program written in Java.class Test{ public static void main(String args[]){ int x=7; if(x==2); // Note the semicolon System.out.println("NumberSeven"); System.out.println("NotSeven"); }}What would the output of the program be? Error 7 NumberSeven NotSeven NumberSeven NotSeven Error 7 NumberSeven NotSeven NumberSeven NotSeven ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control How many times will the following code print "Welcome to Examveda"?int count = 0;do { System.out.println("Welcome to Examveda"); count++;} while (count < 10); 8 11 10 0 9 8 11 10 0 9 ANSWER DOWNLOAD EXAMIANS APP