8

Java - Création des logiciels pour PC, Mac et Linux [LIVRE]

Résumer

Chapter 1: Getting started with Java
Language
Java SE Version Code Name End-of-life (free1) Release Date
Java SE 10 (Early Access) None future 2018-03-20
Java SE 9 None future 2017-07-27
Java SE 8 Spider future 2014-03-18
Java SE 7 Dolphin 2015-04-14 2011-07-28
Java SE 6 Mustang 2013-04-16 2006-12-23
Java SE 5 Tiger 2009-11-04 2004-10-04
Java SE 1.4 Merlin prior to 2009-11-04 2002-02-06
Java SE 1.3 Kestrel prior to 2009-11-04 2000-05-08
Java SE 1.2 Playground prior to 2009-11-04 1998-12-08
Java SE 1.1 None prior to 2009-11-04 1997-02-19
Java SE 1.0 Oak prior to 2009-11-04 1996-01-21
Section 1.1: Creating Your First Java Program
Create a new file in your text editor or IDE named HelloWorld.java. Then paste this code block into the file and
save:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Run live on Ideone
Note: For Java to recognize this as a public class (and not throw a compile time error), the filename must be the
same as the class name (HelloWorld in this example) with a .java extension. There should also be a public access
modifier before it.
Naming conventions recommend that Java classes begin with an uppercase character, and be in camel case format
(in which the first letter of each word is capitalized). The conventions recommend against underscores (_) and dollar
signs ($).
To compile, open a terminal window and navigate to the directory of HelloWorld.java:
cd /path/to/containing/folder/
Note: cd is the terminal command to change directory.
Enter javac followed by the file name and extension as follows:
$ javac HelloWorld.java
It's fairly common to get the error 'javac' is not recognized as an internal or external command, operable
program or batch file. even when you have installed the JDK and are able to run the program from IDE ex.
eclipse etc. Since the path is not added to the environment by default.

Resultats du Test [Java - Création des logiciels pour PC, Mac et Linux ]
Surnom Date Test Points Obtenu

L'AUTEUR DU TUTORIEL

RUSSELL EYENGA

Niveau d'études : L2

Whatsapp 243898739759

Téléphone 243898739759

Email russelleyenga13@gmail.com