The following program is Overloading or Overriding?
public class PolymorphismEx {
public int sampleMethod(int a) {
return a;
}
public String sampleMethod(int a) {
return "Is it Overloading or Overriding???";
}
}
Answer Posted / jagadish
Duplicate Method sampleMethod(int a) Error Message will display
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How do you replace all in word?
Write a function for palindrome and factorial and explain?
What is java in detail?
Is object a data type?
How will you invoke any external process in java?
Why wait and notify methods are declared in object class?
Which collections are thread safe in java?
What is an abstract method in java programming?
What is the public field modifier?
What are the parts of methodology?
Can an interface be defined inside a class?
Define inheritance?
What is the purpose of using javap?
What is the difference between a loader and a compiler?
Hi friends am new to java. I read jar file means collection of java files. For executing struts application what are the necessary jar files. " struts.jar " file contains what. can u explain