KnowledgeBoat Logo
|

Computer Applications

Assertion (A) Method should be called explicitly either with object reference or class reference.
Reason (R) Method can be any user defined name.

  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.

User Defined Methods

4 Likes

Answer

Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).

Reason — Assertion (A) is true as a method should be called explicitly either with object reference or class reference. Reason (R) is also true as a method can be any user defined name, except a keyword. Reason (R) is not the correct explanation of Assertion (A).

Answered By

3 Likes


Related Questions