Important Java Mcq 1

What is used to document a program and improve its readability?

a. Keyword

b. Comment

c. Control Structure

d. Block

Answer:

b. Comment

Explanation

Comment can be used to explain Java code, and to make it more readable. It can also be used to prevent execution when testing alternative code. There are many types of comments, single-line comments, multi-line comments.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?