Start learning →

Where must all program code be written in Java?

AIn global scopes
BIn source headers
CIn binary modules
DInside classes
Answer & Solution
Correct answer: D. Inside classes
All program code in Java is required to be written inside classes.
Practise this question with Quill — ICSE Class 8 →

Keep practising Introduction to Java and BlueJ

Browse all Introduction to Java and BlueJ questions for ICSE Class 8, or explore more Computer Applications topics.

Start a Introduction to Java and BlueJ lesson →