aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice

Which of the following cannot be used as a method modifier?

  1. Private

  2. Generic

  3. Protected

  4. Synchronized

  5. All of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

generic does not works as a modifier.

Keep practicing — related questions

  • Which of the following cannot be used as a modifier for instance variables while defining a class?
  • What modifiers are allowed for methods in an Interface
  • Given a method in a protected class, what access modifier do you use to restrict access to that method to o...
  • Given a method in a protected class, what access modifier do you use to restrict access to that method to o...
  • What modifiers may be used with an interface declaration
  • A method with no access modifier can be overridden by a method marked protected.
  • we can not override a synchronized method as non-synchronized method.
  • Which of the following are Java modifiers?

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy