0
点赞
收藏
分享

微信扫一扫

Java~基础知识~Java关键字

Villagers 2022-02-26 阅读 59

一、定义

  • Java自己保留的一些单词,作为特殊功能的,例如:public、class、byte、short、int、long…
  • 不能用来作为类名或者是变量名称,否则报错

二、包含

abstractassertbooleanbreakbyte
casecatchcharclassconst
continuedefaultdodoubleelse
eumextendsfinalfinallyfloat
forgotoifimplementsimport
instanceofintinterfacelongnative
newpackageprivateprotectedpublic
returnstrictfpshortstaticsuper
switchsynchronizedthisthrowthrows
transienttryvoidvolatilewhile
举报

相关推荐

0 条评论