Page 1 of 1

Which block of the code will get executed when running below code with String variable greetings value "Hello" (assume t

Posted: Thu Jul 14, 2022 2:28 pm
by answerhappygod
Which Block Of The Code Will Get Executed When Running Below Code With String Variable Greetings Value Hello Assume T 1
Which Block Of The Code Will Get Executed When Running Below Code With String Variable Greetings Value Hello Assume T 1 (456.26 KiB) Viewed 19 times
Which block of the code will get executed when running below code with String variable greetings value "Hello" (assume there are no syntax and compile errors)? if (greetings.equals("hello")) \{ // true block \}else \{ I/ false block 3 false block both the blocks true block none of these blocks