A few tips before java programming, and a few tips for java programming

Source: Internet
Author: User

A few tips before java programming, and a few tips for java programming

1. First, let's look at the meanings of the abbreviations.

JavaSE Standard Edition Java EE Enterprise Edition javaME Micro Edition

Sdk: soft developement kit, a development kit, including jdk: java developement kit jre: java runtime environment jvm: java Virtual Machine

2. Install jdk with jre. Install jre to run jvm.

3. When configuring environment variables, the following two items are required:

JAVA_HOME: pointing to jdk installation directory Path: pointing to bin directory, convenient to use the tool in bin

4. public class name: the class name and file name must be exactly the same.

5. public static void main (String [] args) {}: four elements of the main method are required

6. Note: generally 30% of the total code

1) single line comment "// balablablabala"

2) multi-line comment "/* balabalabla */"

3) document annotation: generate the api document (export javadoc), which is generally used for annotation classes and annotation methods.

"/**
* Balalala
* Balalala
*/"

7. java is a case-sensitive language.

Int Student; and int student; are two different variables.

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.