How do you override a private method in java?



How do you override a private method in java?..

Answer / Preeti Arya

Private methods are not inherited by child classes. Therefore, it is not possible to override a private method in Java.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is boolean data type in java?

1 Answers  


Explain importance of throws keyword in java?

1 Answers  


What is a top level class in java?

1 Answers  


What does 0 mean in boolean?

1 Answers  


What is super?

1 Answers  


How do you define a method?

1 Answers  


Can private class be extended java?

1 Answers  


I have an HashMap object, which has with key and value pair. It has 10 keys and values in that object. Now the question is I want insert new key and value in middle or any where in that list but not at the end or at the top. Is it possible or not. If yes how can we achieve this one?

2 Answers   Huawei,


Explain the difference between arraylist and linkedlist in java?

1 Answers  


What is the ==?

1 Answers  


What is the purpose of garbage collection in java? When is it used?

1 Answers  


What is the role of the java.rmi.naming class?

1 Answers  


Categories