Computer Science, asked by meghasharma2905, 2 months ago

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 HACKER009
1

Answer:

INT djjdndnsnsjskksjsjssn

Similar questions