Cours java
Serge Tahé - ISTIA - Université d'Angers Septembre 98 - Révision juin 2002
Introduction
Ce document est un support de cours : ce n'est pas un cours complet. Des approfondissements nécessitent l'aide d'un enseignant. L'étudiant y trouvera cependant une grande quantité d'informations lui permettant la plupart du temps de travailler seul. Ce document comporte probablement des erreurs : toute suggestion constructive est la bienvenue à l'adresse serge.tahe@istia.univangers.fr. Il existe d'excellents livres sur Java. Parmi ceux-ci : 1. 2. Programmer en Java de Claude Delannoy aux éditions Eyrolles Java client-serveur de Cédric Nicolas, Christophe Avare, Frédéric Najman chez Eyrolles.
Le premier livre est un excellent ouvrage d'introduction pédagogique au langage Java. Une fois acquis son contenu, on pourra passer au second ouvrage qui présente des aspects plus avancés de Java (Java Beans, JDBC, Corba/Rmi). Il présente une vue industrielle de Java intéressante. Pour approfondir Java dans différents domaines, on pourra se référer à la collection "Java series" chez O'Reilly. Pour une utilisation professionnelle de Java au sein d'une plate-forme J2EE on pourra lire : 3. Programmation j2EE aux éditions Wrox et distribué par Eyrolles. Septembre 98, juin 2002 Serge Tahé
1.
LES BASES DU LANGAGE JAVA INTRODUCTION LES DONNEES DE JAVA LES TYPES DE DONNEES PREDEFINIS NOTATION DES DONNEES LITTERALES DECLARATION DES DONNEES LES CONVERSIONS ENTRE NOMBRES ET CHAINES DE CARACTERES LES TABLEAUX DE DONNEES LES INSTRUCTIONS ELEMENTAIRES DE JAVA ECRITURE SUR ECRAN LECTURE DE DONNEES TAPEES AU CLAVIER EXEMPLE D'ENTREES-SORTIES AFFECTATION DE LA VALEUR D'UNE EXPRESSION A UNE VARIABLE LES INSTRUCTIONS DE CONTROLE DU DEROULEMENT DU PROGRAMME ARRET STRUCTURE DE CHOIX SIMPLE STRUCTURE DE CAS STRUCTURE DE REPETITION LA STRUCTURE D'UN PROGRAMME JAVA LA GESTION DES EXCEPTIONS COMPILATION ET EXECUTION D'UN PROGRAMME JAVA ARGUMENTS DU PROGRAMME PRINCIPAL