Programming MCQS - QUESTION DETAILS

Which keyword is used to prevent method overriding in Java?
A. final
B. static
C. private
D. protected

'final' prevents method overriding in Java.

Similar Questions

What is the purpose of the 'finalize' method in Java?






What is the output of System.out.println("Java" == "Java");?






Which of the following is a correct way to create an ArrayList in Java?






What is the purpose of the 'default' keyword in a switch statement?






How do you create an object of a class in Java?






What is the role of the 'static' keyword in Java?






What is the purpose of the 'super()' constructor in Java?






Which method is called to compare objects for equality in Java?






Which method is used to read data from the keyboard in Java?






How do you declare a constant in an interface in Java?