Can the char type be categorized as an integer?

前端 未结 8 2583
盖世英雄少女心
盖世英雄少女心 2020-12-01 22:32

Just now I read \"char is the only unsigned integral primitive type in Java.\" Does this mean the char is one of the integral types in Java?

Same as in C, recently I

8条回答
  •  粉色の甜心
    2020-12-01 23:04

    In memory, essentially everything is integral... but yes. char is an integer type in C, C++ and Java.

提交回复
热议问题