In Java does anyone use short or byte?

前端 未结 11 930
挽巷
挽巷 2020-12-14 15:44

Apart from using (byte[]) in streaming I don\'t really see byte and short used much. On the other hand I have seen long used where the actual value is |100| and byte would b

11条回答
  •  醉话见心
    2020-12-14 16:02

    They are used when programming for embedded devices that are short on memory or disk space. Such as appliances and other electronic devices.

    Byte is also used in low level web programming, where you send requests to web servers using headers, etc.

提交回复
热议问题