What are Advatages of Overloading and Overridding.
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
Answer / santhosh
How to Use LIKE Operator for argument in Store Procedure(SQl Server 2005)
| Is This Answer Correct ? | 2 Yes | 11 No |
What is the functionability stubs and skeletons?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What is class and object in java?
Is this valid in java ? Can we instantiate interface in java?
What are synchronized blocks in java?
How many bits is a boolean?
What is the use of keywords in java?
Can each java object keep track of all the threads that want to exclusively access it?
how to identify duplicate values in arraylist
What is generics in java interview questions?
What will be the output of the program? public class Test { public static void main(String args[]) { ArrayList<String> list = new ArrayList<String>(); list.add("2"); list.add("3"); list.add("4"); list.add("5"); System.out.println("size :"+list.size()); for(int i=0;i<list.size();i++) { list.remove(i); } System.out.println("size after:"+list.size()); } }
What are the types of inner classes (non-static nested class) used in java?