Multiple Choice
In Java,how do we tell the compiler that the body of a loop consists of several statements,rather than one?
A) We enter all the statements on the same line
B) We indent all the statements at the same level of indentation
C) We enclose the statements in curly braces
D) We insert a break statement at the end of the loop
Correct Answer:

Verified
Correct Answer:
Verified
Q30: If we wanted to write an if-statement
Q31: Which of the following is an example
Q32: What is wrong with this Java statement?
Q33: A built-in class that helps to split
Q34: If s1 is of type String,what does
Q36: Suppose s is of type String.What would
Q37: How many times are the indicated statements
Q38: Complete the following code so that it
Q39: Suppose a class Planet had a method
Q40: Which of these is not a legal