Chapter One: The first knowledge of Java What is a program:
A program is a series of ordered collections written to allow a computer to perform certain operations or solve a problem
Java includes programming languages and related technologies:
2 Javase:java Standard Edition
2 Javaee:java Enterprise Edition
2 Javame:java Micro Edition
A three-step walk to developing a Java application:
- Writing the source program
- Compiling the program
- Run the program.
source program to. Java is the extension, and the compiled file is extended with a. class extension.
Use the Java command to compile the. java file. Use the Java command to run the. class file that is generated after compilation.
Java commands
2 Javac file name (must be the same as file name). Java Compilation
2 Java file name run
Comments are divided into
2 Single-line comment://
2 Multiline Comments:/* */
2 text Comment:/** */
MyEclipse
- Create a Java Project
- Creating and writing Java source programs
- Compiling Java source Programs
Running Java programs
Chapter One: first knowledge of Java