`

Java的概述

阅读更多

Java关键字概述

是否为关键字可以把此关键字命名创建类,看能否创建成功,此方法判定

良好的代码需包含

基本类型+修饰符+逻辑判定(非空判定)+错误处理+包+变量引用(this)

 

abstract do implement private this boolean double import protected throw break else instanceof public throws byte extend int return transient case false interface short true catch final long static try char fianlly native strictfp void class float new super volatile continue for null switch while default if package synchronized

保留const goto

1.八大基本类型

boolean byte char double float  int long short

true false null

 

2.对类,属性,方法,参数,等的修饰符

abstract assert  class enum extends final implements  interface native private protected public
static  synchronized  strictfp transient volatile  synchronized

访问控制

private protected public

 

3.逻辑判断

break case continue default do else for if   return switch while instanceof

 

4.错误处理

try catch finally  throw  throws

 

5.单独独立使用

变量引用 super this void
包相关 import package

保留 const goto
 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics