Java Fundamentals 01

Source: Internet
Author: User

1.jdk:java Development Kit. Is the core of Java! This includes the Java Runtime Environment, Java tools, and Java-based class libraries (Java APIs).

2.java development is divided into: J2se,j2ee,j2me J2SE: Standard Edition, Java EE: Enterprise Edition, J2ME: Mobile version

3.jre:java Runtime Environment (Java Runtime envirnment), Java Platform! All Java programs must be in the JRE environment to run!
Contains the core class library of Jvm,java! But does not include the development tool----compiler, debugger!

4.JVM: (Java virtial mechinal) Java Virtual Machine, part of the JRE! Java is a cross-platform, JVM-based.

5.java source files. java file----------> compiled files are. class files

Comments in 6.java are divided into: document comments, multiline comments, single-line comments. Purpose of the note: 1. Easy to read by the team 2. Facilitates maintenance of the project later

7.01.public: Access class: Classes class name must match the file name. 02. "{}" curly braces must appear in pairs

8. Small example:

Package Cn.bdqn.test//This is a bag

/**

* This is a multi-line comment

* This is my first Java program

* @author Su Yichi

**/

Single-line Comment Java program entry

public static void Main (string[] args) {

SYSTEM.OUT.PRINTLN ("Hello! Java! "); Output statement

}

Java Fundamentals 01

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.