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 java’s garbage collected heap?
Explain parallel processing in java8?
What is a method in programming?
How do you compare objects in java?
What is a null check?
What are the advantages of compiled language?
Explain about the interpreter in java?
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
How to run a JAR file through command prompt?
Difference between start() and run() method of thread class?
Write a program to solve producer consumer problem in java?
What is mutable object and immutable object?
What is sleep method?
Explain about static imports in java?
How to sort list of list in java?