What is the difference between overloading and overriding a
function?

Answers were Sorted based on User's Feedback



What is the difference between overloading and overriding a function?..

Answer / rohit

overriding is used in diferent class with same parameters
overloading method :- is sem class in defintoin.
overriding method:- is subclass and super class in
definatioc

Is This Answer Correct ?    0 Yes 0 No

What is the difference between overloading and overriding a function?..

Answer / meraj ansari

this answer is correct

Is This Answer Correct ?    0 Yes 0 No

What is the difference between overloading and overriding a function?..

Answer / nishchita

In overloading 2 function should have different signature
but in overriding must have exactly same signature.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Where are global variables stored?

0 Answers  


Write a code to show a static variable?

0 Answers  


What are the types of java languages?

0 Answers  


How do you start a thread?

0 Answers  


Why string is a class?

0 Answers  






Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

0 Answers   Mphasis,


What is a substring of a string?

0 Answers  


What are sets in java?

0 Answers  


Is void a wrapper class?

0 Answers  


what are the different non-access specifiers in java?

5 Answers  


What are 5 boolean operators?

0 Answers  


Why collection doesn’t extend cloneable and serializable interfaces?

0 Answers  


Categories