Why do we have int type in Java? -


why have int type in java? couldn't numeric type double (and maybe float)? can keep integer number in variable of type double.

for performance reasons , memory saving. plus , fact numbers precise no decimal values handy lot of cases.


Comments