Which block of the code will get executed when running below code with String variable greetings value "Hello" (assume t
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Which block of the code will get executed when running below code with String variable greetings value "Hello" (assume t
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!