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 use switch statement with strings?

616


Differentiate between a class and an object.

560


what is the difference between the methods sleep() and wait()? : Java thread

515


What are the various access specifiers in java?

563


What is skeleton and stub?

587






Where we write javascript code in html page?

553


How we can skip finally block of exception even if some exception occurs in the exception block in java?

518


Explain the access modifiers for a class, method and variables?

651


Why put method is used?

523


Can you explain the usages of class.forname()?

606


Explain the importance of import keyword in java?

522


Does list maintain insertion order java?

535


What do you mean by a JVM?

560


Explain the difference between intermediate and terminal operations in java8?

564


Can we declare register variable as global?

505