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
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