The first day of learning Java

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.