基本类不能判断为null,只有包装类可以

基本数据类型与包装类的对应关系

byte → Byte

short → Short

int → Integer

long → Long

float → Float

double → Double

char → Character

boolean→ Boolean

 

posted @ 2020-07-06 09:39  万里哥  阅读(693)  评论(0编辑  收藏  举报