Apprendre Java En 154 Minutes

25084 mots 101 pages
Apprendre Java en 154 minutes
Tutorial Java 1.6 - HESB-TI

St´ephanie Calderara
Jos´e R. Beuret
Quentin Cosendey
Mai 2008

Table des mati` eres 1 Objet, classe et modificateur
1.1 Le premier pas . . . . . . . . . . . . . . . .
1.2 Le concept de l’objet . . . . . . . . . . . . .
1.3 Le concept de la classe . . . . . . . . . . . .
1.4 La classe et l’objet . . . . . . . . . . . . . .
1.4.1 L’attribut ou variable . . . . . . . .
1.4.2 La m´ethode . . . . . . . . . . . . . .
1.4.3 Le constructeur . . . . . . . . . . . .
1.5 Le point-virgule . . . . . . . . . . . . . . . .
1.6 Le point . . . . . . . . . . . . . . . . . . . .
1.7 L’organisation des classes . . . . . . . . . .
1.7.1 Mot cl´e package . . . . . . . . . . .
1.7.2 Mot cl´e import . . . . . . . . . . . .
1.8 Les modificateurs . . . . . . . . . . . . . . .
1.8.1 Modificateurs de port´ee . . . . . . .
1.8.2 Modificateur static . . . . . . . . . .
1.8.3 Modificateur final . . . . . . . . . .
1.9 Le concept de l’encapsulement . . . . . . .
1.10 Le concept de la r´ef´erence . . . . . . . . . .
1.10.1 D´eclaration . . . . . . . . . . . . . .
1.10.2 Instanciation . . . . . . . . . . . . .
1.10.3 Initialisation . . . . . . . . . . . . .
1.10.4 Affectation . . . . . . . . . . . . . .
1.11 La r´ef´erence null . . . . . . . . . . . . . . .
1.12 La r´ef´erence this . . . . . . . . . . . . . . .
1.13 Combinaison de modificateur . . . . . . . .
1.13.1 La constante . . . . . . . . . . . . .
1.14 La m´ethode main . . . . . . . . . . . . . . .
1.15 Afficher du texte dans la console du syst`eme

. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .

en relation