Page 1 of 1

How many times the messege 'In loop' will print to the screen when executing the below codo (assume there are no syntax

Posted: Thu Jul 14, 2022 2:28 pm
by answerhappygod
How Many Times The Messege In Loop Will Print To The Screen When Executing The Below Codo Assume There Are No Syntax 1
How Many Times The Messege In Loop Will Print To The Screen When Executing The Below Codo Assume There Are No Syntax 1 (22.78 KiB) Viewed 42 times
How many times the messege 'In loop' will print to the screen when executing the below codo (assume there are no syntax and compile errors)? int number =5; do System.out.printin( "in loop") ) while ( number I= 5 ) ; 1 time 2 times 5 times 0 times QUESTION 12 Assume 31 and s2 are two instances of the jova class String. Both s1 and s2 is assigned with the same value hello". What will happen when executing the below code (assume there are no syntax and compile errors)? if (s1.equais (s2) ) Will check both the objects hold the same data value and retum true if yes Evaluates to true only if s1 and s2 point to the same object Always refurn false Always return true