您的位置 首页 java

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://www.zhihuclub.com/16992.shtml

关于作者: 智云科技

热门文章

网站地图