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(/*).
- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- 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
The array char arr[8] occupies :
- 32
- 8
- 16
- 24
This access specifier achieves the lowest level of accessibility.
- Public
- Protected
- Private
- Default
Read the following text and choose the correct answer:
Byte streams are used to perform input and output of 8-bytes. They are used to read bytes from the input stream and write bytes to the output stream. Mostly, they are used to read or write raw binary data.
Which of these class is used to read and write bytes in a file?
- FileReader
- FileWriter
- FileInputStream
- InputStreamReader
Assertion (A) The private access specifier achieves the lowest level of accessibility.
Reason (R) The private methods and fields can be accessed only within the same class to which the methods and fields belong.- Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
- Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
- Assertion (A) is true and Reason (R) is false.
- Assertion (A) is false and Reason (R) is true.