Understanding the Java language

Source: Internet
Author: User

What is the Java language?

Java is a fully object-oriented programming language, that is, the development platform, but also the deployment and operation of the platform.

Cross-platform features

You can run Java programs as long as the JVM is installed on the operating system. The JVM on different OS is downloaded by orancle company.

The function of the JVM: an upward explanation explains not only the execution of compiled Java instructions, but also security checks.

The Java language is written in C + + and has a clear purpose when developing the Java language.

1, complete object-oriented programming thought

2, multithreading

3, a sound security mechanism

4, faster development speed and operational efficiency

5, Beyond C + +

The above objectives are achieved by:

1,JVM (Hostpot technology, dynamic decision to compile or interpret execution)

2, automatic garbage collection mechanism (Finalize () method of object)

3, the code security mechanism (each JDK version of the security mechanism is different) as an applet (level three code security) For example: 1, permission check 2, bytecode check 3, dynamic monitoring of the execution steps.

First Java program:

Class hellodemo{

public static void Main (string[] args) {

System.out.println ("Hello java!");

}

}

The code written in Java is done inside the class.

Program structure of the Java language

    • The package can have multiple
    • Import can be multiple
    • Definition of public class: up to one per file
    • Classes and interfaces: can be multiple

Basic Java Knowledge points

    • High-level language common things:

1, keyword 2, identifier

3, note 4, constants and variables

5, operators and expressions

6, Statement 7, Function 8, array

Learn this section only need to note: 1, its manifestation is how 2, when it uses

    • Java-specific:

1, object-oriented (classes and objects)

2,javaapi

3. Use of common classes:

  1. String and StringBuffer class (String)
  2. Thread Class (Threads)
  3. I/O (data Flow)
  4. Exception (Exception)

Learn this section Note: Encapsulation of inherited polymorphic memory usage Analysis

Directions for Java:

    1. Java EE (Enterprise application Development)
    2. Javase (Desktop-level application development, is the foundation of EE and Me)
    3. Javame (embedded software, now mainstream is developing Android)

How to learn Java well?

    1. Have their own goals and directions.
    2. Don't rote grammar
    3. Practice more, don't be impatient
    4. Read more people's Code
    5. Beginners do not read too many books, first to find the basis of the book System of Learning

Problems with programming Attention:

  • The so-called Theory Guide Practice, practice deepens The theory, said is first has the thought, then writes the code.
  • Note Some coding specifications.

Understanding the Java language

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.