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 / arthi
overloading means same method name but different parameters
are passed but overriding means same method name with same
parameters passed in different classes.
Is This Answer Correct ? | 40 Yes | 8 No |
Post New Answer View All Answers
Can we use switch statement with strings?
Explain try and catch keywords in java?
what is recursion in java
How to find the given number is a prime number or not by getting input from the user
Can you give few examples of final classes defined in java api?
what is synchronization and why is it important? : Java thread
Objects or references which of them gets garbage collected?
What is the basic concept of java?
Is space a char?
What is maximum size of arraylist in java?
What are the advantages of inner classes?
Wha is the output from system.out.println(“hello”+null); ?
Why for each loop is used?
What is the purpose of static keyword in java?
What is hasnext in java?