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 are the pillars of java?
What is a cup of java?
What is the reflection?
What is the epoch date?
What is the difference between @before and @beforeclass annotation?
How do I start learning java?
What are different data types?
What is a boolean flag in java?
Can private class be extended java?
Which are different kinds of source code?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?
What are the types of web technologies?
What is anonymous inner class?
Why is singleton class used?