JAVA基本语法

1.关键字(key word)

关键字是Java语言特别赋予的具有特殊含义的字符串     关键字的特点:所有的关键字必须小写

访问权限修饰符的关键字  

private  protected  public   

定义基本数据类型的关键字

byte  char  short  int  long  float  double  boolean

类、方法和变量的关键字

abstract  class  extends  final  implements  interface  native  new  static  strictfp  synchronized  transient  volatile

程序控制语句的关键字

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

用于错误处理的关键字

assert  catch  finally  throw  throws  try

包相关的关键字

import  package

变量引用相关的关键字

super  this  void

2.保留字(reserve word)

现有的Java版本尚未使用,但是以后版本可能会作为关键字使用,因此自己命名时需要避免使用保留字。

goto    const   null

3.标识符(Identifier)

在Java中对各种变量、方法、类进行命名时使用的字符序列称为标识符

所有的标识符都应该以字母(A-Z 或者 a-z),美元符($)、或者下划线(_)开始

首字符之后可以是字母(A-Z 或者 a-z),美元符($)、下划线(_)或数字的任何字符组合

标识符不能包含空格、不能以数字开头

关键字不能用作标识符、标识符是大小写敏感的

合法标识符举例:age、$salary、_value、__1_value

非法标识符举例:123abc、-salary

Java中命名规范

包名:所有的字母都是小写。如:helloword

类名/接口名:所有的单词首字母大写。如:Helloword

变量名:多个单词组成,第一个单词首字母小写,第二个单词开始每个单词首字母大写如:passengerOrderNum

常量名:所有的字母都是大写,多个单词时,每个单词使用下划线连接:hello_wold

4.变量

5.运算符

6.程序流程控制
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...
https://github.com/threebb1/u...
https://www.github.com/threeb...
http://github.com/threebb1/ut...

你可能感兴趣的:(java)