what is mean by overriding in which situation we wil use?

Answer Posted / neema

If we have same method name in the super class as well as
in the sub class, then the method in the subclass is said
to override the method in the super class.

Is This Answer Correct ?    25 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we create our own daemon thread?

544


What do you mean by buffering?

561


Difference between ‘>>’ and ‘>>>’ operators in java?

643


Does garbage collection occur in permanent generation space in jvm?

611


Differentiate between the constructors and methods in java?

511






What state is a thread in when it is executing?

533


What are green threads in java?

555


How do I write a self declaration?

557


Why do we declare a class static?

548


How can you avoid serialization in child class if the base class is implementing the serializable interface?

641


What is the function of java?

517


What is the base class for error and exception?

557


What is data structure in java?

539


what is server side caching?

1612


Can a static method be overridden in java?

559