Found Float 14.4 //Found Double 14.4
Found Short 1
Found Short 2
Found Short 3
Found Short 4
Found Short 127
Found Short 128
Found Short 32767
Found Integer 32768
Waste 12L // Found Long 12L
Waste 13.2f // Found Float 13.2f
Found Float 14.3
Found Short 143
i tried it myself and then run it using jcreator
there are 3 places where i went wrong(marked as comments)
can anbody explain why
the first line of output is
Found Float 14.4
as
Float as=14.4; gives compiler error
and
similarly,
long can be assigned 12L and float can be asssigned 13.2f so, why waste is in the output
Found float 14.4
Found Short 1
Found Short 2
Found Short 3
Found Short 4
Found Short 127
Found Short 128
Found Short 32767
Found Integer 32768
Found Long 12
Found Float 13.2
Found Float 14.3
Found Short 143
123
[some negative value]