MCQ
Which of the following is used to invoke an instance method in Java ?
  • A
    The name of the object, colon(:) and the name of the method
  • The name of the object, dot(.) and the name of the method
  • C
    The name of the class, colon(:) and the name of the method
  • D
    The name of the class, dot(.) and the name of the method

Answer

Correct option: B.
The name of the object, dot(.) and the name of the method
(B) The name of the object, dot(.) and the name of the method

Need a full question paper?

Generate a complete, print-ready paper with questions like this in minutes — across 16+ boards, with answer keys.

Start Generating Free