then是java关键字吗

then是java关键字吗,第1张

then是java关键字吗

then是java关键字吗

then不是java关键字,也不是java保留字。

Java 关键字列表(51个关键字,2个保留字):

访问控制:private protected public

定义类、接口、抽象类和实现接口、继承类的关键字、实例化对象:class abstact interface extends implements new

修饰方法、类、属性和变量:static final super this native strictfp synchronized transient volatile

程序控制语句:break continue return do while if else for instanceof switch case defautl

错误处理:try catch final throw throws assert

包相关:import package

基本类型:boolean byte char double float int long short null true false enum

变量引用:super this void

保留字:const goto

正确识别java语言的关键字(keyword)和保留字(reserved word)是十分重要的。Java的关键字对java的编译器有特殊的意义,他们用来表示一种数据类型,或者表示程序的结构等。保留字是为java预留的关键字,他们虽然现在没有作为关键字,但在以后的升级版本中有可能作为关键字。

注意点

识别java语言的关键字,不要和其他语言如c/c++的关键字混淆。

所有的关键字都是小写

php中文网,大量的免费Java入门教程,欢迎在线学习!

以上就是then是java关键字吗的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/687810.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-21
下一篇 2022-04-21

发表评论

登录后才能评论

评论列表(0条)

保存