JAVA- basis - Getting Started & compile and run case

First, the development java entry procedures

  1. Before doing this case, the first option uncheck Hide extensions

  

 

  2. Write Demo01.java file

  

1 class Person{
2   public static void main(String args[]){
3     System.out.println("hello world~");
4   }
5 }

 

  3. compiled by javac command file generated Person.class

  

 

  4. Copy the file to Person.class [jdk] / bin directory, run through the java command

   

 

Second, compile and run

  java is a compiled language, .java program development must be transformed into .class before they can be handed over to virtual machines running compile.

  The compilation process people like to code into a machine like the machine instructions.

  By compiling, coordinating the conflict between humans and machines, implements like the way people write in accordance with the code, according to the machine like the way identification code.

  

 

Guess you like

Origin www.cnblogs.com/xiaoluohao/p/11294700.html