MCQ
Which type of access should be defined, when we want to make method or variable visible to all the classes outside?
  • A
    Package
  • Public
  • C
    Private
  • D
    Accessor

Answer

Correct option: B.
Public
B

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