Which access modifier is more restrictive ?

  1. public is more restrictive than protected

  2. package (default access modifier) is more restrictive that private

  3. package is more restrictive that public

  4. package is more restrictive that protected

  5. protected is more restrictive that package


Correct Option: D

Find more quizzes: