java经典语法全集

第二章Java语法基础1.词法规则2.数据类型3.常量与变量4.运算符和表达式14.运算符

和表达式5.语句6.数组和字符串词法规则Java程序的运行体系1.Source code (.java

file)2.javac: Lexical Analysis & Parsing + Type-checking 

Byte code (.class file)

Java编译器对源代码进行词法分析和类型校验,生成

字节码文件2字节码文件3.JVM: Verification (essentially repeating static checks)

+ (Interpretation OR Compilation + Loading +

Executing)

Java解释器执行字节码文件中的类,Java解释器在加

载和执行类时验证类的完整性、正确操作和安全性,

并与所在的操作系统、窗口环境和网络设备进行交互

以产生所期望的程序行为关键字1.abstract double int strictfp ** 2.boolean else interface super 3.break extends long switch 4.byte final native synchronized 5.case finally new this 6.catch

float package throw 36.catch float package throw 7.char for private throws

8.class goto * protected transient 9.const * if public try 10.continue implements return void 11.default

import short volatile 12.do instanceof

static while

注: *当前未被使用* *使用于Java2标识符标识常量、变量、数据类型、类和方法

public classHelloWorld1 {

public static voidmain(String[] args) {

String message = “Hello World!”;

myPrint(message);4myPrint(message);

}

private static voidmyPrint(String s) {

你可能喜欢

  • 语法大全
  • 达内java笔记
  • Java基础知识
  • Java学习笔记
  • 马士兵java
  • 毕向东Java基础
  • java经典笔试题

java经典语法全集相关文档

最新文档

返回顶部