Answer to Question #192389 in Java | JSP | JSF for Bill

Question #192389

4. Which access modifier can prevent methods of a class being overridden? Please select "A, B, C, D, or E" as correct option. 


A. public

B. private

C. static

D. protected

E. final


1
Expert's answer
2021-05-13T07:15:30-0400

You can use private, static and final modifier to prevent method overriding, but you should always use final modifier to prevent overriding. Final is best way to say a method is complete and can't be overridden.

Answer:

E. final



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS