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
Explain the pointers in Java?
What are access specifiers in java ?
What is meant by inheritance and what are its advantages?
Explain covariant method overriding in java.
What is charat ()?
Is null false in java?
What is identifier with example?
How can you set the applet size?
How do you sort objects in java?
What is java in simple terms?
which is advanced deep technology in java launched by the sun microsystem??? The answer is very logical If u need correct answer mail me at priya_gupta@gmail.com
What is the technique adopted to create an immutable class?
What is a for loop in java?
What is meant by class and object in java?
How do I write a self declaration?