hi can sombody explain me how the ternary operator generates equal expression as its output eventhough we specify it differently for instance , this is my code
int i=9;
System.out.println(i<10?100:200.0);
how does the output is 100.0 and not 100
thanx in advance