Simple Introduction
let’s Begin
quick trying
- apt install default-jdk
- write First.java with System(Class).out(field).println(function) Hello World
- javac First.java,it will generate First.class, it is actually java Byte Code, will been translated by JVM to native code
- java First to invoke JVM execute the Class file
different Editions
- Standard Edition(SE) : it is core java platform
- Enterprise Edition (EE): for very large scale and distributed systems
- Micro Edition(ME): subset of SE and for mobile
Most important feature
- Object-Oriented
- Core Java APIs
- String / Threads / Database Program
Grammer
Variables Primitive and Reference Types
script1 2 3 4
| int x = 1; int y = x; x = 2; // y still equal 1
|
script1 2 3
| Point p1 = new Point(1, 1); Point p2 = p1;
|
Casting
Numbers Strings and Arrays