Difference between overloading and overridding?

Answer Posted / j.winston britto

Overloading means,
More than one method have same name and every one
differ in no. of arguments,type of arguments in a class.

Overridding means,
methods having same name and type in different
classes.In this we can use "super" key word

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the differences between throw and throws?

831


How do you make a thread in java?

831


What is meant by final class?

777


How does the java compiler work?

740


Is an empty arraylist null?

803


I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com

1359


When should you make a function static?

728


What is the primitive type byte?

768


1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

4391


What languages are pass by reference?

778


What is casting in java programming?

774


What is an inner class in java?

716


What is meant by data hiding/encapsulation?

812


What is the difference between a scrollbar and a scrollpane?

806


What are the major advantages of internal iteration over external iteration?

828