Single Choice
Not Set
QWhat is output of the program?
class Test{
public void display(int x, double y){
System.out.println(x+y);
}
public double display(int p, double q){
return (p+q);
}
public static void main(String args[]){
Test test = new Test();
test.display(4, 5.0);
System.out.println(test.display(4, 5.0));
}
}
ID: #2236
Overriding and Overloading in Java
1,565 views
Question Info
#2236Q ID
Not SetDifficulty
Overriding and Overloading in JavaTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Compilation Error
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic