1. Initial knowledge of Java:
(1) Java features: Strong security, platform independence, hardware structure independence, Language concise, object-oriented (here is the written content).
(2) Two three versions of the Java Platform: J2SE (Standard Edition), Java EE (Enterprise Edition), J2ME (mini version).
(3) Two components of the Java platform: ①java virtual machines (the JVM is essentially a software);
A. Class Loader: Improve the security of code execution;
B. Bytecode Checker: Ensure that the code conforms to the JVM specification and does not compromise the integrity of the system;
C. Instant compiler: The speed of execution has been improved.
②java application Programming Interface (Java API).
(4) Object-oriented programming idea contains two basic concepts: ① Class (basic construction Unit of Java program);
The ② object.
A class is an object's abstraction, and an object is an instance of exhaustion.
(5) The object has two important constituent parts: the ① attribute (which indicates what constitutes the object);
② behavior (indicates what the object can do).
(6) The difference between the two modes of translation: ① compile execution efficiency is high, interpretation execution efficiency is low;
② interpretation can be done across platforms, and compilation is not.
2. Java Basic Syntax:
(1) Identifier naming rules: ① identifiers consist of letters, numbers, underscores, and $ symbols;
② identifiers cannot be keywords or true, false, null;
The first character of a ③ identifier must be a letter, underscore, or dollar sign ($);
④ identifiers are case-sensitive and do not have a specified length.
Specification: ① "See the name of the known meaning"
②camel naming law;
③ Pascal named Law.
(2) Data type of Java: ① 8 basic types (int, long, short, float, double, char, Boolean)
② Reference type: Class, interface, array.
The first day of learning Java