Java 1. HelloWorld!2. 3. 4. 5. 6. 7. 1. HelloWorld!HelloWorld! 1. java–version 2. HelloWorld.java 3. javacHelloWorld.class 4. javaHelloWorld IDE Eclipse package import class/interface / 1Java 2 1 2classobject 3aAB Object Class? ABAaBb J 1.(+,-,*,/,%,++,--) 2.(,,=,=,==,!=) 3.(!,&&,||) 4.(,,,&,|,^,) 5.(=,+=) 6.(?:) 7.(·,[],instanceof,new,(),()) 6 a++; ++a; a--; --a; x+=5; x-=5 x*=5; x/=5; x%=5; 1. (++a--a),,(a++a--),, 2. A B A&&B A||B !A F F F F T F T F T T T T T T F &&|| cool L if-else{} switchbreak java7,7 enumswitch whiledo-whilefor 1 2 3 40 intints={1,2,3,4,5}; Stringstrs=newString[5]; TestArrays.java –1. new 2. (), 3. 4. 5. this() 6. super() –1. 2. null 3. ,,() –4. static 5. StaticDemo.java -Dog: 1.Dog(),Dog/,Java,Dog.class2.Dog.class(,Class),,Class3.newDog(),Dog,Dog(0,),null 4. 5., Dog.java 1. 2. 1. 1. 2. 3. publicprotectedprivatefriendly Contact:xue.anzhen@gmail.com