What is the difference between overloading and overriding a
function?
Answers were Sorted based on User's Feedback
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 |
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 |
Where are global variables stored?
Write a code to show a static variable?
What are the types of java languages?
How do you start a thread?
Why string is a class?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
What is a substring of a string?
What are sets in java?
Is void a wrapper class?
what are the different non-access specifiers in java?
What are 5 boolean operators?
Why collection doesn’t extend cloneable and serializable interfaces?