Skip to content
CodeKruPro

Which modifiers can a top-level class have?

QuizEasy-MediumJava onlyAsked in: Accenture, Capgemini, Infosys, TCS

Which modifiers can be used on a top-level class (not a nested one)? Pick all that apply.

  • public
  • private
  • final
  • abstract
  • protected

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in