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:
a)DOUBLE
b)INT
c)Compilation Fails
d)Ambiguity error
Answers
Answered by
3
Answer:
A is correct answer DOUBLE
Answered by
0
Answer:
INT
Explanation:
this is the right answer for sure
Similar questions