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
Define an applet in java?
What are the steps in the jdbc connection?
What are the kinds of polymorphism?
Is age a discrete variable?
Can we have multiple classes in a single file?
Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.
Why singleton class is used in java?
What is variable length arguments in java?
What is the difference between path and classpath variables?
Can we have any code between try and finally blocks?
What isan abstract class and when do you use it?
What is an example of a boolean?
Explain about main thread in java?
What is static method with example?
How do I remove a character from a string in java?