Answer Posted / sumit
One can prevent method overriding by marking the method final. if you make a method static and reuse it in the subclass it will hide the the super class method. This is called method hiding rather than overriding.
Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is a Presistent Object?
Explain the access modifiers for a class, method and variables?
What are the topics in core java?
How do generics work in java?
how to write a server program and sending the mails to the server using smtp protocol please help me
What is java reflection api?
What is the meaning of flag day?
What are the advantages of inner classes?
What is udp in java?
What are the steps involved to write rmi based programs?
How do you decide when to use arraylist and linkedlist?
What is the list interface?
Using callable statement how can you pass out parameters, explain with example?
What is this keyword in java?