A dangling else occurs when an else clause can be paired with an if condition. True or False True False QUESTION 7 What
Posted: Thu Jul 14, 2022 2:28 pm
A dangling else occurs when an else clause can be paired with an if condition. True or False True False QUESTION 7 What is the output of this code sequence? String word = "Java"; System.out.println(word.length()); 5 0 1 4 QUESTION 8 All of these are true about switch statement except switch statement should always be used in a loop The statements under the case constant are also optional default label and its statements are also optional break statements are optional for a switch statement