Predict the output.
class X
{
void display(int a)
{
System.out.println("INT");
}
void display(double d)
{
System.out.println("DOUBLE");
}
}
public class Sample
{
public static void main(String[] args)
{
new X().display(100);
}
}
Select one:
Compilation Fails
Ambiguity error
INT
DOUBLE
Answers
Answered by
1
Answer:
INT djjdndnsnsjskksjsjssn
Similar questions
Biology,
1 month ago
Chemistry,
1 month ago
History,
1 month ago
Science,
2 months ago
India Languages,
2 months ago
Physics,
10 months ago
Computer Science,
10 months ago
English,
10 months ago