Java
You will learn how to
- Write, compile and execute Java programs
- Build robust applications using Java's object-oriented features
- Create robust applications using Java class libraries
- Develop platform-independent (GUIs)
- Read and write data using Java streams
- Retrieve data from a relational database with JDBC
Course benefits
Organisations looking for ways to quickly build robust, cross-platform enterprise applications are turning to Java programming. Java's unique architecture permits programmers to develop a single application that can run across multiple platforms seamlessly and reliably.
This course provides extensive experience with Java and its object-oriented features. You use Java to create both console and GUI applications.
Who should attend
This course is valuable for anyone developing Java applications. Previous experience with a programming language is assumed. Familiarity with Web technologies and object concepts is helpful.
Hands-on training
A series of hands-on execises provides experience creating Java applications. Through an ongoing case study, you design and build an intricate desktop application modelled on a well-known Web site. Exercises include:
- Developing an object-oriented model with UML notation
- Creating Java objects and calling their methods
- Extending Java classes for reusability
- Structuring data with the Java collections API
- Creating portable GUIs with Swing components
- Adding event handling to GUIs
- Reading, processing and writing to disk
- Retrieving data from a relational database with JDBC
Course content
Introduction to Java Programming
Advantages of Java
- Platform independence
- Stand-alone applications and servlets
Structure of a Java program
- Compiling source code into bytecode
- Overview of class libraries
Object-Oriented Programming with Java
The object paradigm
- Object-oriented (OO) programming
- Encapsulation, inheritance and polymorphism
- OO analysis and design: "Is a" and "Has a" relationships
- Designing an OO application step by step
- Diagramming object structure with Unified Modeling Language (UML)
Java's object-oriented features
- Instantiating objects from classes
- Aggregation and composition
- Extending existing classes
- Overloading and overriding methods
Structure of the Java Language
Language syntax
- Declaring and initialising variables
- Statements and expressions
- Declaring and using arrays
- Upcasting, downcasting and autoboxing
Flow control
- Invoking methods and passing parameters
- Conditionals and loops
- Handling exceptions with try and catch
Defining classes
- Fields (instance data)
- Methods (functions)
- Abstract classes and interfaces
- Organising classes with packages and visibility modifiers
- Composition vs. inheritance
Building the components of a Java program
- Working with existing classes
- Leveraging generics with the collections API
- Extending base classes
- Developing new classes
- Compiling and debugging
Developing GUIs
Foundations of user interfaces
- Basic GUI widgets
- Event-driven programming
- Benefits of a portable windowing library
Java Foundation Classes (JFC)
- Advantages of lightweight Swing components
- Exploring the Swing component library
- Creating Swing components: buttons, text fields, drop-down lists
- Adding Swing components to containers
- Arranging Swing components using layout managers
- Dialogues and message boxes
Event handling
- Registering event handlers
- Inner classes and top-level classes
File I/O and Databases
Java streams
- Streams, Readers and Writers
- Accessing files
- Formatting text output
Files and directories
- Creating, deleting and renaming files
- Obtaining Directory and file information
JDBC database access
- Connecting to a database
- Submitting SQL statements
- Retrieving and processing data
Java Development Tools
- Java Development Kit (JDK)
- Compilers
- Java IDEs
|
|