What is overriding in java?



What is overriding in java?..

Answer / Manish Yadav

In Java, method overriding occurs when a subclass provides its own implementation of a method that is already present in the superclass. The purpose is to allow polymorphism, where objects can be treated as instances of their base class or any of their subclasses.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

If a class is declared without any access modifiers, where can the class be accessed?

1 Answers  


types of applets?.

7 Answers   TCS,


What does provide mean construction?

1 Answers  


How many types of exception can occur in a java program?

1 Answers  


Explain thread life cycle in java?

1 Answers  


What is a function in java?

1 Answers  


Are maps ordered java?

1 Answers  


What is the middleware?

2 Answers  


How is hashset defined in java?

1 Answers  


Can you declare the main method as final?

1 Answers  


What is update method called?

1 Answers  


Explain the difference between protected and default access.

1 Answers  


Categories