Initial knowledge of the Java language

Source: Internet
Author: User
Tags java se

A set of ORDERED commands written to allow a computer to perform certain operations or solve a problem

Java SE: Standard Edition

The Foundation and core of A:java technology

B: Primarily for developing desktop applications

Java EE: Enterprise Edition

A: A complete solution for ENTERPRISE-CLASS application development

B: Many websites are developed using Java EE technology

Java ME: Mini Version

Java JDK

A:JDK (java Development Kit) is the Java Development Toolkit

B:jre (java Runtime Environment) is the Java Runtime Environment

C:JVM (java virtual machine), java VM

D:java SE APL is the core class library for Java systems (including network, io,gui, etc.)

Java language Programming Considerations:

1. Case sensitive, Be aware of the size

2. After each code is written, the following semicolon ends with the word ""

3. In the code, the appearance of parentheses is generally paired

Knowledge Points: 1. Java Project directory structure

SRC directory: Storing source code in project

The jar package for the Java Runtime Environment of the JRE System Library

2. New Original file

The new selection class in the SRC directory will generate the. Java original file

Running programs in 3.myeclipse

In the code area----> right---->run As---->java Application

After the program runs, the output is displayed in the console (console)

Using escape characters

Escape character

\ n Moves the cursor to the first pane of the next line

\ t moves the cursor to the next horizontal tab position

Comments:

A: Single-line comment with//start, mainly to explain the single line of code or variable, note content will not be compiled

B: Multiline comments to/* Comment Contents */start Multiline comments You can annotate multiple lines of code at once

C: Document comments to/** Comments * * Description of Class classes is also possible to describe the method, and the comment content generates information about the API documentation

The need for coding specifications:

A: Basic specification

B: Specialization

Java Coding specification:

1. Class names are decorated with public

2. Write only one statement in a row

Use and location of 3.{}

4. Code Indentation

5.ctrl+shift+f shortcut key typesetting,

To develop Java program steps using Myeclipse:

1. Create a Java project----->2. Create and write Java source programs------>3. compiling Java source-------->4. running Java programs

Initial knowledge of 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.