MCQ
Which is the default visibility to protect method or variable?
  • Package
  • B
    Private
  • C
    Protected
  • D
    Public

Answer

Correct option: A.
Package
Package

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