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

Is java a software?

0 Answers  


why we import both packages java.awt.*; and java.awt.event.*; as java.awt.*; can import all classes na. then what is the need of importing java.awt.event.*; ?

3 Answers  


How do you insert a line break?

0 Answers  


What does the “static” keyword mean? Can you override private or static method in java?

0 Answers  


What are event-delegation model and event-inheritance model? Which is best?

1 Answers  


what is deadlock in threads? with example

2 Answers   CTS, XOXO,


How does Vector implement synchronization?

4 Answers   Ness Technologies,


How can u create the Object of class Without using "New" opertor?

3 Answers   IBM, TCS,


What is e java?

0 Answers  


How does the garbage collector works in java?

0 Answers   Cyient,


How can an object be unreferenced?

0 Answers  


What is the difference between multitasking and multithreading in Java

0 Answers   Sans Pareil IT Services,


Categories