Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Java Prog Niveau 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

CONTENTS : JAVA

25 Heures

Ruspina centre de formation

1 Declarations and Access Control

Java Refresher

Identifiers & JavaBeans

Legal Identifiers

Sun's Java Code Conventions

JavaBeans Standards

Declare Classes

Source File Declaration Rules

Class Declarations and Modifiers

Exercise 1-1: Creating an Abstract Superclass and

Concrete Subclass

Declare Interfaces

Declaring an Interface

Declaring Interface Constants

Declare Class Members

Access Modifiers

Nonaccess Member Modifiers

Constructor Declarations

Variable Declarations

Declaring Enums

Q&A Self Test

Self Test Answers

2 Object Orientation

Encapsulation

Inheritance, Is-A, Has-A


Polymorphism

Overriding / Overloading

Overridden Methods

Overloaded Methods

Reference Variable Casting

Implementing an Interface

Legal Return Types

Return Type Declarations

Returning a Value

Constructors and Instantiation

Determine Whether a Default Constructor

Will Be Created

Overloaded Constructors

Statics

Static Variables and Methods

Coupling and Cohesion

Q&A Self Test

Self Test Answers

3 Assignments

Stack and Heap—Quick Review

Literals, Assignments, and Variables

Literal Values for All Primitive Types

Assignment Operators

Using a Variable or Array Element That Is Uninitialized and Unassigned

Local (Stack, Automatic) Primitives and Objects

Passing Variables into Methods

Passing Object Reference Variables

Does Java Use Pass-By-Value Semantics?


Passing Primitive Variables

Array Declaration, Construction, and Initialization

Using Wrapper Classes and Boxing

An Overview of the Wrapper Classes

Creating Wrapper Objects

Using Wrapper Conversion Utilities

Overloading

Garbage Collection

Q&A Self Test

Self Test Answers

4 Operators

Java Operators

Assignment Operators

Relational Operators

instanceof Comparison

Arithmetic Operators

Conditional Operator

Logical Operators

Q&A Self Test

Self Test Answers

5 Flow Control, Exceptions, and Assertions

if and switch Statements

if-else Branching

switch Statements

Exercise 5-1: Creating a switch-case Statement

Loops and Iterators

Using while Loops

Using do Loops

Using for Loops


Using break and continue

Unlabeled Statements

Labeled Statements

Exercise 5-2: Creating a Labeled while Loop

Handling Exceptions

Catching an Exception Using try and catch

Using finally

Propagating Uncaught Exceptions

Exercise 5-3: Propagating and Catching an Exception

Defining Exceptions

Exception Hierarchy

Handling an Entire Class Hierarchy of Exceptions

Exception Matching

Exception Declaration and the Public Interface

Rethrowing the Same Exception

Exercise 5-4: Creating an Exception

Common Exceptions and Errors

Working with the Assertion Mechanism

Assertions Overview

Enabling Assertions

Using Assertions Appropriately

Q&A Self Test

Self Test Answers

6 Strings, Formatting, and Parsing

String, StringBuilder, and StringBuffer

The String Class

Important Facts About Strings and Memory

Important Methods in the String Class

The StringBuffer and StringBuilder Classes


Important Methods in the StringBuffer and StringBuilder Classes

Serialization

Dates, Numbers, and Currency

Working with Dates, Numbers, and Currencies

Parsing, Tokenizing, and Formatting

Locating Data via Pattern Matching

Tokenizing

Formatting with printf() and format()

Q&A Self Test

Self Test Answers

You might also like