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 |
What is boolean data type in java?
Explain importance of throws keyword in java?
What is a top level class in java?
What does 0 mean in boolean?
What is super?
How do you define a method?
Can private class be extended java?
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?
Explain the difference between arraylist and linkedlist in java?
What is the ==?
What is the purpose of garbage collection in java? When is it used?
What is the role of the java.rmi.naming class?