Java关键字总结——全

Java中的关键字有哪些?

1)48个关键字:abstractassertbooleanbreakbytecasecatchcharclasscontinuedefaultdodoubleelseenumextendsfinalfinallyfloatforifimplementsimportintinterfaceinstanceoflongnativenewpackageprivateprotectedpubliceturnshortstaticstrictfpsuperswitchynchronizedthisthrowthrowstransienttryvoidvolatilewhile

2)2个保留字(现在没用以后可能用到作为关键字)gotoconst

3)3个特殊直接量truefalsenull

你可能感兴趣的:(关键字,java)