Java SE 7 Programmation
Objectifs de la formation
- Créer des applications avec la technologie Java, qui utilisent les fonctionnalités orientées objet du langage de programmation Java
- Exécuter les applications créées avec la technologie Java à partir de lignes de commandes
- Créer des applications utilisant le Framework Java Collections
- Implémenter les techniques de gestion des erreurs au moyen d'exception (Exception Handling)
- Mettre en œuvre les fonctionnalités d'entrée et de sortie (I/O) pour la lecture et l'écriture des données depuis et sur des fichiers texte, et de comprendre les techniques avancées d'entrée et de sortie (I/O) en utilisant des Streams
- Implémenter les fonctionnalités d'I/O pour lire et écrire des données depuis et vers des fichiers texte et de comprendre I/O Streams avancées
- Modifier des fichiers, des répertoires et des systèmes de fichiers au moyen de la spécification JDK7 NIO.2
- Modifier des tables de bases de données (CRUD) en utilisant JDBC et JPA
- Modifier des chaînes de texte au moyen de Regular Expressions - de créer des applications Multithreading performantes pour éviter les Deadlocks
- Trouver des applications Java pour les différentes langues et régions.
Contenu du cours
- Java Platform Overview
- Introductions
- Course Schedule
- Java Overview
- Java Platforms
- OpenJDK
- Licensing
- Java in Server Environments
- The Java Community Process
- Java Syntax and Class Review
- Simple Java Classes
- Java Fields, Constructors and Methods
- Model Objects Using Java Classes
- package and import Statements
- Encapsulation and Polymorphism
- Encapsulation in Java Class Design
- Model Business Problems with Java Classes
- Immutability
- Subclassing
- Overloading Methods
- Variable Argument Methods
- Java Class Design
- Access Modifiers: private, protected and public
- Method Overriding
- Constructor Overloading
- The instanceof Operator
- Virtual Method Invocation
- Polymorphism
- Casting Object References
- Overriding Object Methods
- Advanced Class Design
- Abstract Classes and Type Generalization
- The static and final Modifiers
- Field Modifier Best Practices
- The Singleton Design Pattern
- Designing Abstract Classes
- Nested Classes
- Enumerated Types
- Inheritance with Java Interfaces
- Java Interfaces
- Types of Inheritance
- Object Composition and Method Delegation
- Implementing Multiple Interfaces
- The DAO Design Pattern
- Generics and Collections
- Generic Classes and Type Parameters
- Type Inference (Diamond)
- Collections and Generics
- List, Set and Map
- Stack and Deque
- String Processing
- String Manipulation with StringBuilder and StringBuffer
- Essential String Methods
- Text Parsing in Java
- Input Processing with Scanner
- Text Output and Formatting
- Regular Expressions with the Pattern and Matcher Classes
- Exceptions and Assertions
- Exceptions Categories
- Standard Java Exception Classes
- Creating Your Own Exception Classes
- Using try-catch and the finally Clause
- Using try-with-Resources and the AutoCloseable Interface
- The Multi-catch Feature
- Best Practices Using Exceptions
- Assertions
- I/O Fundamentals
- I/O Using Java
- Reading the Console Input Stream
- Writing to the Console
- Using I/O Streams
- Chaining I/O Streams
- Channel I/O
- Reading and Writing Objects Using Serialization
- File I/O with NIO.2
- The Path Interface
- The Files Class
- Directory and File Operations
- Managing File System Attributes
- Reading, Writing, and Creating Files
- Watching for File System Changes
- Threading
- Operating System Task Scheduling
- Recognizing Multithreaded Environments
- Creating Multithreaded Solutions
- Sharing Data Across Threads
- Synchronization and Deadlock
- Immutable Objects
- Concurrency
- Creating Atomic Variables
- Using Read-Write Locks
- Thread-Safe Collections
- Concurrenct Synchronizers (Semaphore, Phaser, and Others)
- Executors and ThreadPools to Concurrently Schedule Tasks
- Parallelism and the Fork-Join Framework
- Database Application with JDBC
- Layout of the JDBC API
- JDBC Drivers
- Queries and Results
- PreparedStatement and CallableStatement
- Transactions
- RowSet 1.1: RowSetProvider and RowSetFactory
- The DAO Pattern and JDBC
- Localization
- Advantages of Localization
- Defining Locale
- Read and Set Locale Using the Locale Object
- Resource Bundles
- Format Messages, Dates and Numbers