.
Java . 1. Hello World!
megabax   
11.08.2011 .
Delphi

Java . 1. Hello World!

, Java. , - , web- . , , . , Java , Web. - , , , .

.   , Hello World. Java, http://www.java.com/ru.   .

Java ,   :

public class HellowWorld {

    public static void main(String[] args) {

        System.out.print("Hellow, world!");

    }

}

 

 HellowWorld.java - . javac.exe, Java. java :

 

"c:\Program Files\Java\jdk1.7.0\bin\javac" HellowWorld.java

pause

 

:

Java  .  1.  Hello World!

 

, , , HellowWorld.java HellowWorld.class:

Java  .  1.  Hello World!

 

, Java :

"c:\Program Files\Java\jdk1.7.0\bin\java" HellowWorld

pause

 

, :

Java  .  1.  Hello World!

 

, - Java. Java-, . . , public. , , : , . , : private, protected, friendly, final, abstract, static. . , private , , , . . class. , . java . . public. HelloWord.

, .

. ? .

 

1. ,

2.

3. .

 

. . :

 

1. .

2. .

3. .

4. .

 

, , , . . , , .

Java, , , ( ). .

- ! , - ?

, , (, ), . . , , . , , , . . , . , . , ().  Homo Sapiens .

, , , , .

, ( , , , , ).

. . 

. , . Java  (class). ( , ), , . , , , .

, . , . Java, , (). .

, . , , . .

, Java .  .

 

:

public class HellowWorld {

 

, , , , . , "", .

(HelloWorld) : main. public static. , . , . , , , ( ) public. main, ,  .

static. , , . , , () . ,   static . .

. , . . void ( ).

. , , System, :

 

        System.out.print("Hellow, world!");

 

out, , print, ( PRINT).

 

()

 

 

( 11.08.2011 . )