Study the Assertion and Reason and choose the correct option.
Assertion: The return statement enables the exit of the program control from the current method.
Reason: If a method's return type is void, it can still contain return 0 statement to return nothing.
- (a)Both Assertion and Reason are true and Reason is the correct explanation for Assertion.
- (b)Both Assertion and Reason are true but Reason is not the correct explanation for Assertion.
- (c)Assertion is true and Reason is false.
- (d)Both Assertion and Reason are false.
Show answer
Answer
Correct option: (c)