After learning Java for some time, has not done a corresponding summary, always think there is a flaw. From the beginning of this blog, my usual study notes to summarize and share to everyone.
This blog is a simple introduction to the basic knowledge of Java, the basic purpose is to eradicate illiteracy. Originally just heard of Java, and now he really started to learn, after watching the first episode of video, ask yourself, do you know what Java is? After asked to find nothing, after the search, a simple understanding, to their own literacy.
Introduced
It is possible to know that Java is an object-oriented programming language for cross-platform application software.
Composition
Java consists of four aspects: the Java programming language, the Java class file format, the Java virtual machine and the Java Application interface (Java API).
System
Java is divided into three system javase (J2se,java Platform Standard Edition), Java EE (J2ee,java Platform Enterprise Edition), Javame (mini version of J2me,java platform).
======================================================= Cutting Line ================================================
The above content is also on-line check content, Java Understanding about it is good. Let 's talk about your learning experience below:
Java language Features
1. An object-oriented language.
2. A platform-independent language that provides an interpretive environment for program execution.
3. A robust language that absorbs the strengths of the C + + language, but removes the parts that affect the robustness of the program (e.g. pointers, memory applications and releases, etc.).
the top three points are also a key reason for Java's fire.
Two core mechanisms of Java
1.java VM (Java virtual machine)
A 1.java virtual machine can be interpreted as a CPU with a byte-code as a machine instruction.
2. For different execution platforms, there are different virtual machines
The 3.java virtual machine mechanism masks the difference between the underlying execution platform, enabling "one-time compilation, execution Anywhere".
2. Garbage collection mechanism (garbage Collection)
1. The memory space that is no longer used should be garbage collected.
2. In languages such as C + +, the program Ape is responsible for recovering useless memory.
3.java eliminates the responsibility of program apes to reclaim useless memory space; Provides a system-level thread to track the allocation of storage space.
4. Garbage collection is carried out on its own initiative during Java program execution, and the program ape cannot control and intervene accurately.
3. Execution process
The entire Java implementation process, we use the following diagram to illustrate its implementation steps.
J2SE General Framework
These are the basic knowledge of learning Java, you can certainly not remember, but must understand, know, grasp the strategy, you have the ability to go better.
HelloWorld
public class Helloworld{public static void Main (string[] args) {System.out.println ("hello,world!");//Output hello,world!}}
Execution Result:
Summarize
knock HelloWorld (Hello, world!) After that, he discovered that he had embraced the "world" with his arms open. fight it, boy! On the road of programming persist, struggle diligently, finally unfolds the arms, embraces the dream to come true dawn.
"Java reading notes"--java opening macro control + HelloWorld