How many times the messege 'In loop' will print to the screen when executing the below codo (assume there are no syntax
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
How many times the messege 'In loop' will print to the screen when executing the below codo (assume there are no syntax
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!