What restrictions are placed on method overloading and
method overriding?
Answer Posted / aditya mohata
in method overloading we hav to hav the methods in the same
class n they hav to hav diff signatures so as to avoid
ambiguity.they hav to hav the same method name.
in method overriding we hav to hav the same name of the
methods n hav to hav them in different classes with same
signatures.
Is This Answer Correct ? | 12 Yes | 5 No |
Post New Answer View All Answers
What is boolean example?
How many types of threads are there in java?
What is the private method modifier?
What is the use of join method?
What is difference between throw and throws ?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
Tell me the latest versions in java related areas?
What is keyword and identifier?
What is the difference between import java.util.date and java .util?
Can we call the constructor of a class more than once for an object?
Can we store variables in local blocks?
Is integer a class?
What is a short in java?
what is the purpose of using rmisecuritymanager in rmi?