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); 10 11 8 0 9 10 11 8 0 9 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 None of these Compiler error false true None of these Compiler error false 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? NumberSeven NotSeven NotSeven Error NumberSeven 7 NumberSeven NotSeven NotSeven Error NumberSeven 7 ANSWER DOWNLOAD EXAMIANS APP
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); }} 20 11 10 None of these 9 20 11 10 None of these 9 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"); } }} FALSE TRUE Runtime Error Compilation Error FALSE TRUE Runtime Error Compilation Error ANSWER DOWNLOAD EXAMIANS APP
JAVA Flow Control Which of the following for loops will be an infinite loop? for(i=0; ; i++) for(; ;) for(i=0 ; i<1; i--) All of these for(i=0; ; i++) for(; ;) for(i=0 ; i<1; i--) All of these ANSWER DOWNLOAD EXAMIANS APP