Home > Java > javaTutorial > body text

JAVA learning

巴扎黑
Release: 2017-06-23 16:31:49
Original
1311 people have browsed it

1. What is java and what technologies does it contain? 1. Java is a high-level object-oriented programming language. 2. Java includes

a) (Basics of java)

b) javaee (java enterprise-level application)

2. 3 steps to write java programs using Notepad

1. Create an extension. java source file of java

2. Compile the java source file to generate a bytecode file with the extension .class

In the dos command window, enter [javac file name.java] and then Enter

3. Execute the java program

In the dos command window, enter [java file name] and press Enter

3. The framework of the java program

public class class name{

public static void main(String[]args){

//In this method, output information

System.out.println ("Content to be output");

}

}

Notes:

1. The class name must be the same as the file name, and the class name must be the same as the file name. The first letter of the name is capital

2. (String) must be capital S

3. System starts with capital S

4. All symbols ({}, (), ;) are all entered in English

The above is the detailed content of JAVA learning. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template