a) “Hello World”
b) “Hello\nWorld”
c) “\”Hello World\””
d) “Hello
world”
Answer
d) “Hello
world”
Explanation:
All string literals must begin and end in the same line.
a) “Hello World”
b) “Hello\nWorld”
c) “\”Hello World\””
d) “Hello
world”
d) “Hello
world”
All string literals must begin and end in the same line.
a) Select statements b) Loop Statements c) Transfer statements d) Pause Statement Answer c) Transfer statements
a) java.lang.String b) java.lang.Byte c) java.lang.Short d) java.lang.StringBuilder Answer d) java.lang.StringBuilder
a) Double b) Switch c) Then d) Instanceof Answer: c) Then
a. int number(); b. float average[]; c. counter int[]; d. []double marks; Answer: b. float average[]; Explanation: The correct syntax for declaring an array is
Oracle Certified Tutor/Trainer with 100+ reviews