Distinguish method overloading and overriding
Answers were Sorted based on User's Feedback
Answer / pralay
Method Overloading is functionality of java in which we can
declare many method with same name but different signature
in one class, but Overriding is a the process of declare a
method which is already define in super class, this Method
has same name and same signature as super class.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / anita kumari
In case of overloading signature should be different.
In case of overriding signature should be shame. Return type should be same. And acess level will be same or wider.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why declare Main() inside the class in java ?
Why stringbuilder is not thread safe?
What is a protected method?
Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.
what is difference between validation.xml & validation rules.xml?
My application URL : http://localhost:8080/Application/Login.jsp. When a user enter this url in IE then, how it get Login.JSP Page exactly? what are the processes will happen from when we submit the URL to get Login.jsp?
What is floor math?
Why use string handling in Java?
Why vector class is used?
What is adapter in java?
Why put method is used?
What variables are stored in stack?