What are Advatages of Overloading and Overridding.

Answers were Sorted based on User's Feedback



What are Advatages of Overloading and Overridding...

Answer / pooja srivastava

Overloading means same functions but different arguments..
so with overloading we can take new action with diff
parameters..


Overriding means same methods with same argument and same
prototype...
so with overriding we can create new definatin in subclass
with same method name and prototype..

Is This Answer Correct ?    38 Yes 8 No

What are Advatages of Overloading and Overridding...

Answer / ershad md sk

No look at the Question he had ask u Advantages for
Overloading & Overriding ..we can say in Overriding &
OverLoading COMPLEXITY Factor Had Been Reduced a lot And
the performance is Increased & lot of memory space has been
SAVED..We are not calling the methods every thing we invoke
on it.. we are using the HANDLE Of Superclass to pass the
agruments....Thats why ITs Advantages

Is This Answer Correct ?    20 Yes 3 No

What are Advatages of Overloading and Overridding...

Answer / pcb

Can any one explain, how does it save memory?

Is This Answer Correct ?    4 Yes 1 No

What are Advatages of Overloading and Overridding...

Answer / arun lal

Method Overloading Advantage- Suppose we make a calculator program after some time we want change or add some new feature
then we overload the method, So we can reuse the our previous code and Can Add new .

Is This Answer Correct ?    2 Yes 0 No

What are Advatages of Overloading and Overridding...

Answer / raja mallela

The main advantage of overloading and overriding is,the programmer no need to worry about remembering different method names and this concepts provides dynamic memory allocations also.

Is This Answer Correct ?    2 Yes 1 No

What are Advatages of Overloading and Overridding...

Answer / pratima singh

function overloading is used that a programmer does not
need to remember a multiple function name.overridding means
the for the same method same argument or same parameter are
pass

Is This Answer Correct ?    6 Yes 7 No

What are Advatages of Overloading and Overridding...

Answer / avnish kumar dubey

Polymorphism

Is This Answer Correct ?    10 Yes 19 No

What are Advatages of Overloading and Overridding...

Answer / santhosh

How to Use LIKE Operator for argument in Store Procedure(SQl Server 2005)

Is This Answer Correct ?    2 Yes 11 No

Post New Answer

More Core Java Interview Questions

What is singleton class example?

0 Answers  


question on Thread synchronization

3 Answers   Huawei,


What does arrays sort do in java?

0 Answers  


what are three ways in which a thread can enter the waiting state? : Java thread

0 Answers  


How do you convert an int to a string in java?

0 Answers  






they asked class A{} class B{} class c{} all the three class saved as a single file,there is no main method in the file and anothe class M.java class m { psvm(String args[]) { // here the parent class can access } }

2 Answers   DNS, IPSR Solutions,


Explain java thread life cycle.

0 Answers  


How do you avoid global variables?

0 Answers  


What is %d in printf?

0 Answers  


What classes can be used to store arbitrary number of objects ?

1 Answers  


what is the use of reference variable

6 Answers  


What are predicates in java 8?

0 Answers  


Categories