Computer Science, asked by dd0166900, 1 month 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:
a)DOUBLE
b)INT
c)Compilation Fails
d)Ambiguity error

Answers

Answered by kspmanjula
3

Answer:

A is correct answer DOUBLE

Answered by aniketsingh0305
0

Answer:

INT

Explanation:

this is the right answer for sure

Similar questions