Вы находитесь на странице: 1из 9

2 Intro

In this chapter you will learn:

To write simple Java applications.
To use input and output statements.
Javas primitive types.
Basic memory concepts.
To use arithmetic operators.
The precedence of arithmetic operators.
To write decision-making statements.
To use relational and equality operators.

2.2 First Program in Java: Printing a Line of Text

2.3 Modifying Our First Java Program
2.4 Displaying Text with printf
2.5 Another Java Application: Adding Integers
2.6 Memory Concepts
2.7 Arithmetic
2.8 Decision Making: Equality and Relational Operators

Java application programming

Display messages
Obtain information from the user
Arithmetic calculations
Decision-making fundamentals

In this chapter you will learn:
What classes, objects, methods and instance variables are.
How to declare a class and use it to create an object.
How to declare methods in a class to implement the classs behaviors.
How to declare instance variables in a class to implement the classs attributes.
How to call an objects method to make that method perform its task.
The differences between instance variables of a class and local variables of a method.
How to use a constructor to ensure that an objects data is initialized when the object is created.
The differences between primitive and reference types.

3.1 Introduction
3.2 Classes, Objects, Methods and Instance Variables
3.3 Declaring a Class with a Method and Instantiating an Object of a Class
3.4 Declaring a Method with a Parameter
3.5 Instance Variables, set Methods and get Methods
3.6 Primitive Types vs. Reference Types
3.7 Initializing Objects with Constructors
3.8 Floating-Point Numbers and Type double

04 Control Statement (01)

In this chapter you will learn:
To use basic problem-solving techniques.
To develop algorithms through the process of top-down, stepwise refinement.
To use the if and ifelse selection statements to choose among alternative actions.
To use the while repetition statement to execute statements in a program repeatedly.
To use counter-controlled repetition and sentinel-controlled repetition.
To use the assignment, increment and decrement operators.
The primitive data types.

4.2 Algorithms
4.3 Pseudocode
4.4 Control Structures
4.5 if Single-Selection Statement
4.6 ifelse Double-Selection Statement
4.7 while Repetition Statement
4.8 Formulating Algorithms: Counter-Controlled Repetition
4.9 Formulating Algorithms: Sentinel-Controlled Repetition
4.10 Formulating Algorithms: Nested Control Statements
4.11 Compound Assignment Operators
4.12 Increment and Decrement Operators
4.13 Primitive Types
05 Control Statements: Part 2
In this chapter you will learn:
The essentials of counter-controlled repetition.
To use the for and dowhile repetition statements to execute statements in a program
To understand multiple selection using the switch selection statement.
To use the break and continue program control statements to alter the flow of control.
To use the logical operators to form complex conditional expressions in control statements.

5.2 Essentials of Counter-Controlled Repetition

5.3 for Repetition Statement
5.4 Examples Using the for Statement
5.5 dowhile Repetition Statement
5.6 switch Multiple-Selection Statement
5.7 break and continue Statements
5.8 Logical Operators
5.9 Structured Programming Summary

06 Methods: A Deeper Look

In this chapter you will learn:
How static methods and fields are associated with an entire class rather than specific instances
of the class.
To use common Math methods available in the Java API.
To understand the mechanisms for passing information between methods.
How the method call/return mechanism is supported by the method call stack and activation
How packages group related classes.
How to use random-number generation to implement game-playing applications.
How the visibility of declarations is limited to specific regions of programs.
What method overloading is and how to create overloaded methods.

6.2 Program Modules in Java

6.3 static Methods, static Fields and Class Math
6.4 Declaring Methods with Multiple Parameters
6.5 Notes on Declaring and Using Methods
6.6 Method Call Stack and Activation Records
6.7 Argument Promotion and Casting
6.8 Java API Packages
6.9 Case Study: Random-Number Generation
6.9.1 Generalized Scaling and Shifting of Random Numbers
6.9.2 Random-Number Repeatability for Testing and Debugging
6.10 Case Study: A Game of Chance (Introducing Enumerations)
6.11 Scope of Declarations
6.12 Method Overloading

07 Arrays
What arrays are.
To use arrays to store data in and retrieve data from lists and tables of values.
To declare an array, initialize an array and refer to individual elements of an array.
To use the enhanced for statement to iterate through arrays.
To pass arrays to methods.
To declare and manipulate multidimensional arrays.
To write methods that use variable-length argument lists.
To read command-line arguments into a program.

7.2 Arrays
7.3 Declaring and Creating Arrays
7.4 Examples Using Arrays
7.5 Case Study: Card Shuffling and Dealing Simulation
7.6 Enhanced for Statement
7.7 Passing Arrays to Methods
7.8 Case Study: Class GradeBook Using an Array to Store Grades
7.9 Multidimensional Arrays
7.10 Case Study: Class GradeBook Using a Two-Dimensional Array
7.11 Variable-Length Argument Lists
7.12 Using Command-Line Arguments
8 Classes and Objects: A Deeper Look
In this chapter you will learn:
Encapsulation and data hiding.
The notions of Data Abstraction and Abstract Data Types (ADTs).
To use keyword THIS.
To use STATIC variables and methods.
To import static members of a class.
To use the ENUM type to create sets of constants with unique identifiers.
How to declare enum constants with parameters.

8.2 Time Class Case Study

8.3 Controlling Access to Members
8.4 Referring to the Current Objects Members with the THIS Reference
8.5 Time Class Case Study: Overloaded Constructors
8.6 Default and No-Argument Constructors
8.7 Notes on Set and Get Methods
8.8 Composition
8.9 Enumerations
8.10 Garbage Collection and Method finalize
8.11 static Class Members
8.12 static Import
8.13 FINAL Instance Variables
8.14 Software Reusability
8.15 Data Abstraction and Encapsulation
8.16 Time Class Case Study: Creating Packages
8.17 Package Access

9 Object-Oriented Programming: Inheritance

In this chapter you will learn:
How inheritance promotes software reusability.
The notions of superclasses and subclasses.
To use keyword EXTENDS to create a class that inherits attributes and behaviors from another
To use access modifier protected to give subclass methods access to superclass members.
To access superclass members with SUPER.
How constructors are used in inheritance hierarchies.
The methods of class Object, the direct or indirect superclass of all classes in Java.
9.2 Superclasses and Subclasses
9.3 protected Members
9.4 Relationship between Superclasses and Subclasses
9.4.1 Creating and Using a Commission Employee Class
9.4.2 Creating a BasePlusCommission Employee Class without Using Inheritance
9.4.3 Creating a CommissionEmployeeBasePlusCommissionEmployee Inheritance Hierarchy
9.4.4 CommissionEmployeeBasePlusCommissionEmployee Inheritance Hierarchy Using
protected Instance Variables
9.4.5 CommissionEmployeeBasePlusCommissionEmployee Inheritance Hierarchy Using
private Instance Variables
9.5 Constructors in Subclasses
9.6 Software Engineering with Inheritance
9.7 Object Class

10 Object-Oriented Programming: Polymorphism

In this chapter you will learn:
The concept of polymorphism.
To use overridden methods to effect polymorphism.
To distinguish between abstract and concrete classes.
To declare abstract m ethods to create abstract classes.
How polymorphism makes systems extensible and maintainable.
To determine an object's type at execution time.
To declare and implement interfaces.

10.2 Polymorphism Examples

10.3 Demonstrating Polymorphic Behavior
10.4 Abstract Classes and Methods
10.5 Case Study: Payroll System Using Polymorphism
10.5.1 Creating Abstract Superclass Employee
10.5.2 Creating Concrete Subclass SalariedEmployee
10.5.3 Creating Concrete Subclass HourlyEmployee
10.5.4 Creating Concrete Subclass CommissionEmployee
10.5.5 Creating Indirect Concrete Subclass BasePlusCommissionEmployee
10.5.6 Demonstrating Polymorphic Processing, Operator instanceof and Downcasting
10.5.7 Summary of the Allowed Assignments between Superclass and Subclass Variables
10.6 final Methods and Classes

Java Tutorial: What is Java open link History of Java Features of Java C++ vs Java Hello Java Program
Program Internal How to set path? JDK, JRE and JVM Internal Details of JVM Variable and Data Type
Unicode System, Operators

Control Statements: Java If-else Java SwitchJava For LoopJava While LoopJava Do While LoopJava Break
Java Continue Java Comments Java Programs

Java OOPs Concepts strictfp keyword

Naming Convention javadoc tool
Object and Class Command Line Arg
Constructor Object vs Class
static keyword THIS keyword Overloading vs Overriding
Aggregation(HAS-A) Java String
Method Overloading Java Regex
Method Overriding Exception Handling
Covariant Return Type Java Inner classes
SUPER keyword Java Multithreading
Instance Initializer block Java I/O
FINAL keyword Java Networking
Runtime Polymorphism Java AWT & Events
Dynamic Binding Java Swing
Instance of operator Java Applet
Abstract class Java Reflection
Interface Java Date
Abstract vs Interface Java Conversion
Package Java Collection
Access Modifiers Java JDBC
Encapsulation Java New Features
Object class Object Cloning RMI
Java Array Internationalization
Wrapper Class Interview Questions
Java Recursion space
Call By Value

1 - Installing the JDK 45 - EnumSet range

2 - Running a Java Program 46 - STATIC
3 - Downloading Eclipse 47 - More on Static
4 - Hello YouTube 48 - FINAL
5 - Variables 49 - Inheritance
6 - Getting User Input 50 - Graphical User Interface GUI
7 - Building a Basic Calculator 51 - GUI with JFrame
8 - Math Operators 52 - Event Handling
9 - Increment Operators 53 - ActionListner
10 - If Statement 54 - Event Handler Program
11 - Logical Operators 55 - Intoduction to Polymorphism
12 - Switch Statement 56 - Polymorphic Arguements
13 - While Loop 57 - Overriding Rules
14 - Using Multiple Classes 58 - Abstract and Concrete Classes
15 - Use Methods with Parameters 59 - Class to Hold Objects
16 - Many Methods and Instances 60 - Array Holding Many Objects
17 - Constructors 61 - Simple Polymorphic Program
18 - Nested if Statements 62 - JButton
19 - else if Statement 63 - JButton Final Program
20 - Conditional Operators 64 - JCheckBox
21 - Simple Averaging Program 65 - The Final Check Box Program
22 - for Loops 66 - JRadioButton
23 - Compound Interest Program 67 - JRadioButton Final Program
24 - do while Loops 68 - JComboBox
25 - Math Class Methods 69 - Drop Down List Program
26 - Random Number Generator 70 - JList
27 - Introduction to Arrays 71 - JList Program
28 - Creating an Array Table 72 - Multiple Selection List
29 - Summing Elements of Arrays 73 - Moving List Items Program
30 - Array Elements as Counters 74 - Mouse Events
31 - Enhanced for Loop 75 - MouseListener interface
32 - Arrays in Methods 76 - MouseMotionListener interface
33 - Multidimensional Arrays 77 - Adapter Classes
34 - Table for Multi Arrays 78 - File Class
35 - Variable Length Arguments 79 - Creating Files
36 - Time Class 80 - Writing to Files
37 - Display Regular time 81 - Reading from Files
38 - Public, Private and this 82 - Exception Handling
39 - Multiple Constructors 83 - FlowLayout
40 - Set and Get Methods 84 - Drawing Graphics
41 - Building Objects for Constructors 85 - JColorChooser
42 - toString 86 - Drawing More Stuff
43 - Composition 87 - Series Finale
44 - Enumeration