219k views
10 votes
How are comments in a Java program treated by the compiler?

A) They are converted.

B) They are interpreted.

C) They are ignored.

D) They are coded.

User DoctorRu
by
4.2k points

2 Answers

4 votes

The answer is they are codee

User Smita Ahinave
by
4.2k points
5 votes

Answer:

D) They are coded.

Step-by-step explanation:

Java comments are notes in a Java code file that are ignored by the compiler and runtime engine. They are used to annotate the code in order to clarify its design and purpose. You can add an unlimited number of comments to a Java file, but there are some "best practices" to follow when using comments.

User Strick
by
4.7k points