Question
more java questions
Midtermm False are whether the statemerd ir ne or false. 1 The reinnander operator (%) can be used whederuterer opard or double opaand 2 All variables nsust be given a type wlhen they'se declared 3. Constractors can specify parameters and can specify retien types 4. A vanable-length argument list is treated as ans asay withun t e he method body. The number of argummts in the aray can be o 5. A static variableepresets claswide anfésemation that s sluared mong the classs objects variable represents classwide infcemation that's suced ssong the elass s objects Multiple Choice der the choice that best compleres he staremer or answers the queanon 6. Identify and correct the esrors in the following stateseuts line 1) if (c7) line 2) a. initialize variable c before use b remove semicolon on line I Systens out printin c is less than 7> e. No enes to eomect d Use System out prnnf on line
Explanation / Answer
Answer is B.
Remove semicolon on line1.
If condition should not contain semi colon at the end of the statement.