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

后端 未结 15 3216
遥遥无期
遥遥无期 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:25

    I use byte a lot. Usually in the form of byte arrays or ByteBuffer, for network communications of binary data.

    I rarely use float or double, and I don't think I've ever used short.

提交回复
热议问题