抽象类 Number 是 BigDecimal、BigInteger、Byte、Double、Float、Integer、Long 和 Short 类的超类。
其中BigDecimal、BigInteger在java.math包里
Double、Float、Integer、Long 和 Short 类在java.lang包里
本文介绍了抽象类Number作为BigDecimal、BigInteger、Byte、Double、Float、Integer、Long和Short等数值类的超类的角色。详细解释了这些类在Java的不同包中的分布,包括java.math和java.lang。
抽象类 Number 是 BigDecimal、BigInteger、Byte、Double、Float、Integer、Long 和 Short 类的超类。
其中BigDecimal、BigInteger在java.math包里
Double、Float、Integer、Long 和 Short 类在java.lang包里
268
1301

被折叠的 条评论
为什么被折叠?