Difference between overloading and Overriding. <Giving a
confusing example to test the concept.>
(also asked in PA Consultancy Group,iflex,Value
chain,IBM,CTS,Accenture, Tarang>
Answer Posted / varun
overloading : can only be done by changing the type or no.
of parameters for eg:a(int a);
a(int a,int b);
while in case of overriding we can give new definition
without changing the parameters.
Is This Answer Correct ? | 20 Yes | 8 No |
Post New Answer View All Answers
What is a generic type?
what is synchronization and why is it important? : Java thread
What is difference between module and function?
Can a class have multiple subclasses?
How do you add an arraylist to an array in java?
Why inputstreamreader is used in java?
What are the four corner stones of oop?
What are different types of multitasking?
Is singleton a bad practice?
Why is string class considered immutable?
For class CFoo { }; what default methods will the compiler generate for you>?
What is array class in java?
explain the concept of virtual method invocation in polymorphism in detail?
What is private protected in java?
Which is bigger float or double java?