Anyone using short and byte primitive types, in real apps?

后端 未结 15 3192
遥遥无期
遥遥无期 2021-02-20 08:09

I have been programming in Java since 2004, mostly enterprise and web applications. But I have never used short or byte, other than a toy program just to know

15条回答
  •  清酒与你
    2021-02-20 08:11

    I used 'byte' a lot, in C/C++ code implementing functionality like image compression (i.e. running a compression algorithm over each byte of a black-and-white bitmap), and processing binary network messages (by interpreting the bytes in the message).

    However I have virtually never used 'float' or 'double'.

提交回复
热议问题