First knowledge of Java

Source: Internet
Author: User


A collection of ordered commands written to allow a computer to perform certain operations or solve a problem.

Introduction to the Java technology platform
Java SE: Standard Edition
The Foundation and core of Java technology.
Primarily used to develop desktop applications.
Java EE: Enterprise Edition
Provides a complete solution for enterprise-class application development
Many websites are developed using Java EE technology
Java ME

Java JDK
JDK (Java Development Kit) is the Java Development Kit
JRE (Java runtime enviroment) is the Java Runtime Environment
JVM (Java Virtual machine), Java VM
Java SE API, is the Java System Core Class library (to be used, including the network, Io,gui, etc.)

jdk[(Development Tools)
JRE (Java SE API)
(JVM)
]

Java language Programming Considerations
A. Case sensitive
B. After each code is written, the following semicolon ends (";")
C. In code, the appearance of parentheses is generally paired. such as: {}

Knowledge points
1.Java Project directory Structure
SRC directory: Storing source code in project
JRE System Library:java jar package for runtime environment
2. Create a new source file
SRC directory, new selects class and generates Java source files
Running programs in 3.myeclipse
After you run the-run As->java application program in the code area, right-click, the output is displayed in the console console.

Notes for Java programs
Knowledge Points:
Comments in Java: single-line comment, multiline comment, document comment
Single-line Comment://comment content, mainly on a single line of code, or variables are explained.
Multiline Comment:/* Comment content */, you can annotate multiple lines of code at once.
Document Comments:/** Comments * *, describe classes (class), or describe the method, and annotate the content to produce API documentation information.

Java Coding Specification
The necessity of coding specification, basic rules, specialization.
1. Class names are decorated with public
2. Write only one statement in a row.
The use and location of 3.{}.
4. Indent the code.

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