Chapter 1th Java Introduction Java features
Simple
Object oriented
Platform-Independent
Multithreading: Allows multiple tasks to be completed at the same time
Dynamic: The basic component of a Java program is a class (some classes are written by themselves, some are introduced from a class library, and classes are dynamically loaded at runtime)
Platform and JDK installation
(1) Java SE (formerly known as J2SE) is called Java Standard Edition or Java standard Platform (note: This platform is the best platform to learn the Java language, and mastering Java SE is necessary for further learning Java EE and Android.) )
(2) Java EE (formerly known as EE) is called Java Enterprise Edition or Java Enterprise Platform
(3) Java ME (formerly known as J2ME) is known as Java mini-version or Java mini-platform
Java 2 program to open steps
1)编写源文件:扩展名必须是 .java。 2)编译Java源程序:用Java编译器(javac.exe)编译源文件,得到字节码文件。 3)运行Java程序:使用Java解释器(java.exe)来解释执行字节码文件。
Writing style
A single-line comment uses "//" to indicate the beginning of a single-line comment, that is, the subsequent contents of the line starting with "//" are commented.
Use "/" of a multiline commentto indicate the beginning of the comment, ending with a "/" comment.
Summary
1 The Java language is object-oriented programming, and the software written is independent of the platform.
2 Developing a Java program takes three steps: writing source files, compiling source files
Generate bytecode, load run byte code.
3 Write code Be sure to follow the industry's customary style.
20155327 2017-2018-2 "Java programming" the first week of study summary