JAVA Flow Control Determine output:public class Test{ public static void main(String args[]){ int i, j; for(i=1, j=0;i<10;i++) j += i; System.out.println(i); }} 11 10 9 20 None of these 11 10 9 20 None of these 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); }} 0 2 None of these 1 -1 0 2 None of these 1 -1 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the result of compiling and runnig the following code:public class Test{ public static void main(String... args) throws Exception{ Integer i = 34; int l = 34; if(i.equals(l)){ System.out.println("true"); }else{ System.out.println("false"); } }} true Compiler error None of these false true Compiler error None of these false ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What is the value of a[1] after the following code is executed?int[] a = {0, 2, 4, 1, 3};for(int i = 0; i < a.length; i++) a[i] = a[(a[i] + 3) % a.length]; 0 1 4 2 3 0 1 4 2 3 ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control In java, ............ can only test for equality, where as .......... can evaluate any type of the Boolean expression. continue, if if, switch switch, if if, break continue, if if, switch switch, if if, break ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control What will be the output of the following program?public class Test{ public static void main(String args[]){ int i = 0, j = 5 ; for( ; (i < 3) && (j++ < 10) ; i++ ){ System.out.print(" " + i + " " + j ); } System.out.print(" " + i + " " + j ); }} 0 6 1 7 2 8 3 8 0 6 1 7 2 8 3 9 Compilation Error 0 6 1 5 2 5 3 5 0 6 1 7 2 8 3 8 0 6 1 7 2 8 3 9 Compilation Error 0 6 1 5 2 5 3 5 ANSWER DOWNLOAD EXAMIANS APP