Java中的常用关键字.docxVIP

  • 1
  • 0
  • 约4.83千字
  • 约 6页
  • 2021-11-27 发布于内蒙古
  • 举报
Java 中的常用关键字 才发现 Java 中的好多关键字都不知道什么意思,特转一遍过来。Java 保留关键字 Java 语言有 51个关键字, 其中 const 和 goto 虽然被保留但未使用。 你不能使用保留关键字来 命名类、方法或变量。一、保留关键字 1、数据类型: Boolean int long short byte float double char class interface 2、流程控制: if else do while for switch case default break continue return try catch finally 3、修饰符: public protected private final void static strictfp abstract transient synchronized volatile native 4、动作: package import throw throws extends implements this Super instanceof new 5、保留字: true false null goto const 二、访问修饰符: 访问修饰符: public , protected , private 只能应用于类的成员变量。 ( 局部变量只能在函数的范围内可见, 不能使用访问修饰符) 能够

文档评论(0)

1亿VIP精品文档

相关文档