Why method overloading and method overriding required in java?



Why method overloading and method overriding required in java?..

Answer / sonu

function overloading is used to achieve dynamic binding,  and overriding is used to achieve run time polymorphism , dynamic binding .

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Core Java Interview Questions

Can we have two main methods in a java class?

0 Answers  


how to make the double-tone class ? as we have singletone class..?

1 Answers   IBM, Microsoft,


Write a program in java to establish a connection between client and server?

0 Answers  


What is the difference(or similarity if there are some) between object and a variable?

4 Answers   ME,


How to add menushortcut to menu item?

0 Answers  






What methods are called, When we navigate from one applet to another applet?

1 Answers  


How do you write methodology?

0 Answers  


What does @override mean?

0 Answers  


How do you reverse a string in java without using string buffer?

0 Answers  


Which collection object is faster to retrieving the data and inserting the data into it.

2 Answers   Jamcracker, Virtusa,


If system.exit (0); is written at the end of the try block, will the finally block still execute?

0 Answers  


What does the “static” keyword mean?

0 Answers  


Categories