Computer Applications

Assertion (A) Line comment is used for a single line of comment.
Reason (R) A line comment starts with forward slash and asterisk(/*).

  1. Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
  2. Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
  3. Assertion (A) is true and Reason (R) is false.
  4. Assertion (A) is false and Reason (R) is true.

Values & Data Types Java

5 Likes

Answer

Assertion (A) is true and Reason (R) is false.

Reason — Assertion (A) is true as a line comment is used for a single line of comment. Reason (R) is false as a line comment starts with two forward slashes (//).

Answered By

3 Likes


Related Questions