Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
4Activity

Table Of Contents

Before Java: C
Before Java: C++
Java History
Java Technology
Java Language Features
Java Language Features 1
Java Language Features 2
Java Language Features 3
Execution Platform
Java Platform Independence
Java Program Execution
Java Execution Process
Java API
Java Program Types
Java Platform Features 1
Java Platform Features 2
Java Technologies
Java Technology: SDK
Exercise: Java Technology
Simple Java Program
Running the Program
Explaining the Process
Exercise: Java Program
Using API Documentation 1
Using API Documentation 2
Using API Documentation 3
Using API Documentation 4
Java 2 Platform API Specification
Java Environment Setup 1
Java Environment Setup 2
Exercise: API Specification
Language
Language Overview
Java Syntax
Whitespaces
Identifiers
Comments 1
Comments 2
Literals
Separators
Keywords
Exercise: Syntax
Strong Typing
Simple Types
Simple Type: byte
Simple Type: short
Simple Type: int
Simple Type: long
Example: long
Simple Type: float
Simple Type: double
Example: double
Simple Type: char
Example: char
Another Example: char
Simple Type: boolean
Example: boolean
Literals Revisited
Literals: Integer Types
Literals: Floating-Point Types
Literals: Boolean
Literals: Characters
Literals: String
Exercise: Types
Outline: Variables
Variables
Basic Variable Declaration
Variable Declaration
Constant Declaration
Variable Identifiers
Naming Conventions
Variable Initialization
Example: Variable Initialization
Scope Definition
Scope Nesting
Example: Variable Scope
Declaration Order
Variable Lifetime
Example: Variable Lifetime
Type Differences
Type Compatibility
Widening Type Conversion
Narrowing Type Conversion
Type Casting
Example: Type Casting
Type Promotion
Type Promotion Rules
Example: Type Promotion
Exercise: Variables
Arrays
Array Declaration
Array Creation
Array Indexing
Example: Increment/Decrement
Relational Operators
Table: Relational Operators
Logical Operators
Table: Logical Operators
Example: Logical Operators
Bitwise Operators
Table: Bitwise Operators
Example: Bitwise Operators
Other Operators
Conditional Operator
Example: Conditional Operator
Operator Precedence
Table: Operator Precedence
Exercise: Operators
Control Flow
Control Flow Statements
Selection Statements
if Statement
Simple/Compound Statement
if-else Statement
if-else-if Statement
Example: if-else-if
switch Statement
switch Assumptions/Semantics
Example: switch 1
Example: switch 2
Nested switch Statement
Comparing switch and if
Iteration Statements
while Statement
Example: while
do-while Statement
Example: do-while
for Statement
for Statement Semantics
Loop Control Variable
Example: for
Many Initialization/Iteration Parts
for Statement Variations
Empty for
Jump Statements
break Statement
Loop Exit with break
break in Nested Loops
Control Transfer with break
Labeled break
Example: Labeled break
Example: Nested Loop break
break Without Label
continue Statement
Example: Unlabeled continue
Example: Labeled continue
Return Statement
Example: Return
Exercise: Control Flow
Data versus Operations
Procedural Programming
Example: Procedural Program
Drawbacks
What is an Object?
What is a Class?
Objects versus Classes
Object-Oriented Programming
Object-Oriented Concepts
Encapsulation
Encapsulation 1
Encapsulation 2
Encapsulation 3
Encapsulation 4
Encapsulation 5
Encapsulation 6
Encapsulation 7
Encapsulation 8
Inheritance
Inheritance 1
Inheritance 2
Inheritance 3
Inheritance 4
Polymorphism
Polymorphism 1
Polymorphism 2
Polymorphism 3
Polymorphism 4
Polymorphism 5
Polymorphism 6
Polymorphism 7
Exercise: OOP Concepts
Objects
Object Creation
Object Usage
One Variable, One Object
Two Variables, One Object
Two Variables, Two Objects
One Variable, Two Objects
Object Destruction
Exercise: Objects
Class Outline
Class
Class Definition
Example: Class
Example: Class Usage
Compilation and Execution
Variable Independence 1
Variable Independence 2
Declaring Objects
Operator new
Memory Allocation
Assigning Reference Variables
Methods
Example: Method 1
Example: Method 2
Value-Returning Method 1
Value-Returning Method 2
Value-Returning Method 3
Parameterized Method
Example: Parameterized Method 1
Example: Parameterized Method 2
Constructor
Example: Constructor 1
Example: Constructor 2
Parameterized Constructor 1
Parameterized Constructor 2
finalize() Method
Garbage Collection
Keyword this
Instance Variable Hiding
Example: Stack 1
Example: Stack 2
Example: Stack 3
Method Overloading
Example: Overloading 1
Example: Overloading 2
Different Result Types
Overloading and Conversion 1
Overloading and Conversion 2
Overloading and Polymorphism
Constructor Overloading
Object Argument 1
Object Argument 2
Passing Object to Constructor 1
Passing Object to Constructor 2
Passing Object to Constructor 3
Argument-Passing
Simple Type Argument-Passing 1
Simple Type Argument-Passing 2
Class Type Argument-Passing 1
Class Type Argument-Passing 2
Returning Objects 1
Returning Objects 2
Recursion
Example: Recursion
Example: Recursion and Arrays 1
Example: Recursion and Arrays 2
Arrays Revisited
Example: Arrays as Objects 1
Example: Arrays as Objects 2
Example: Arrays as Objects 3
Static Class Members
Static Variables
Static Methods
Static Block
Example: Static 1
Static Member Usage 1
Static Member Usage 2
Nested Classes
Types of Nested Classes
Example: Inner Classes 1
Example: Inner Classes 2
Inner Members Visibility 1
Inner Members Visibility 2
Inner Members Visibility 3
Inner Class Declaration
Example: Inner Class Declaration 1
Example: Inner Class Declaration 2
Exercise: Classes 1
Exercise: Classes 2
Inheritance Syntax
Example: Super-Class
Example: Sub-Class
Example: Testing Class
Inheritance and Private Members 1
Inheritance and Private Members 2
Example: Box Class
Example: BoxWeightSub-Class
Example: BoxWeightDemo
Another Sub-Class
Referencing Sub-Class Objects
Example: Sub-Class Objects 1
Super-Class Variable Access
Super as a Constructor
Example: Super Constructor 1
Example: Super Constructor 2
Uses of Super
Super and Hiding
Example: Super and Hiding 1
Example: Super and Hiding 2
Multi-Level Class Hierarchy 1
Multi-Level Class Hierarchy 2
Multi-Level Class Hierarchy 3
Multi-Level Class Hierarchy 4
Multi-Level Class Hierarchy 5
Constructor Call-Order
Example: Constructor Call-Order 1
Example: Constructor Call-Order 2
Exercise: Inheritance 1
Exercise: Inheritance 2
Inheritance and Reuse
Polymorphism: Definition
Polymorphism: Behavior
Method Overriding
Example: Hiding with Overriding 1
Example: Hiding with Overriding 2
Example: Hiding with Overriding 3
Super and Method Overriding
Overriding versus Overloading 1
Overriding versus Overloading 2
Overriding versus Overloading 3
Dynamic Method Invocation
Example: Dynamic Invocation 1
Example: Dynamic Invocation 2
Example: Dynamic Invocation 3
Polymorphism Again
Example: Polymorphism 1
Example: Polymorphism 2
Example: Polymorphism 3
Example: Polymorphism 4
Abstract Method
Example: Abstract Method
Abstract Class
Abstract Sub-Class
Abstract and Concrete Classes 1
Abstract and Concrete Classes 2
Example: Abstract Class 1
Example: Abstract Class 2
Example: Abstract Class 3
Example: Abstract Class 4
Abstract Class References
Uses of final
Preventing Overriding with final
final and Early Binding
Preventing Inheritance with final
Object Class
Object Class Methods 1
Object Class Methods 2
Overriding Object Class Methods
Exercise: Polymorphism
Name Space Management
Package
Package Definition
Multiple Source Files
Packages and Directories
Package Hierarchy
CLASSPATH Variable
Example: Package 1
Example: Package 2
Example: Package 3
Importing of Packages
Access Control
Access Control: Classes
Access Control Summary
Table: Access Control
Example: Access 1
Example: Access 2
Example: Access 3
Example: Access 4
Example: Access 5
Example: Access 6
Example: Access 7
Example: Access 8
Import Statement
Name Conflict 1
Name Conflict 2
Short versus Full References
Example: Packages 1
Example: Packages 2
Java Source File
Exercise: Access
Run-Time Method Binding
Interface and Abstract Class
Example: Stack Interface
Example: FixedStack1
Example: FixedStack2
Example: FixedStack3
Example: FixedStack4
Example: DynStack1
Example: DynStack2
Example: DynStack3
Example: DynStack4
Example: DynStack5
Example: Two Stacks 1
Example: Two Stacks 2
Interface Variables
Example: Interface Variables 1
Example: Interface Variables 2
Example: Interface Variables 3
Example: Interface Variables 4
Interface Inheritance
Inheritance and Implementation
Example: Interface Inheritance 1
Example: Interface Inheritance 2
Example: Interface Inheritance 3
Exercise: Interface
Exceptions
Exception Handling
Exception Sources
Exception Constructs
Exception-Handling Block
Exception Hierarchy
Uncaught Exception
Default Exception Handler
Stack Trace Display
Own Exception Handling
Try and Catch 1
Method Calls and Nested try 3
Throwing Exceptions
throw Follow-up
Creating Exceptions
Example: throw 1
Example: throw 2
throws Declaration
Example: throws 1
Example: throws 2
Motivating finally
finally Clause
Example: finally 1
Example: finally 2
Example: finally 3
Example: finally 4
Java Built-In Exceptions
Unchecked Built-In Exceptions 1
Unchecked Built-In Exceptions 2
Checked Built-In Exceptions
Creating Own Exception Classes
ThrowableClass 1
ThrowableClass 2
Example: Own Exceptions 1
Example: Own Exceptions 2
Example: Own Exceptions 3
Chained Exceptions 1
Chained Exceptions 2
Example: Chained Exceptions 1
Example: Chained Exceptions 2
Exceptions Usage
Exercise: Exception-Handling
Multi-Tasking
Thread-Based Multi-Tasking
Reasons for Multi-Threading
Single-Threading
Threads: Model
Threads: Priorities
Threads: Synchronization
Thread Class
Thread Methods
The Main Thread
Example: Main Thread 1
Example: Main Thread 2
Example: Thread Methods
Creating a Thread
New Thread: Runnable
Example: New Thread 1
Example: New Thread 2
Example: New Thread 3
Example: New Thread 4
New Thread: Extend Thread
New Thread: Which Approach?
Example: Multiple Threads 1
Example: Multiple Threads 2
Example: Multiple Threads 3
Using isAliveand join Methods
Example: isAliveand join 1
Example: isAliveand join 2
Example: isAliveand join 3
Example: isAliveand join 4
Example: isAliveand join 5
Thread Priorities
Setting and Checking Priorities
Example: Priorities 1
Example: Priorities 2
Example: Priorities 3
Example: Priorities 4
Example: Priorities 5
Volatile Variable
Synchronization
Synchronized Method
Example: No Synchronization 1
Example: No Synchronization 2
Example: No Synchronization 3
Example: No Synchronization 4
Example: No Synchronization 5
No Synchronization
Synchronized Statement
Example: Synchronized 1
Example: Synchronized 2
Example: Synchronized 3
Example: Synchronized 4
Inter-Thread Communication
Queuing Problem
Example: Incorrect Queue 1
Example: Incorrect Queue 2
Example: Incorrect Queue 3
Example: Incorrect Queue 4
Why Incorrect?
Example: Corrected Queue 1
Example: Corrected Queue 2
Example: Corrected Queue 3
Example: Corrected Queue 4
Example: Corrected Queue 5
Example: Corrected Queue 6
Example: Corrected Queue 7
Example: Corrected Queue 8
Deadlock
Example: Deadlock 1
Example: Deadlock 2
Example: Deadlock 3
Example: Deadlock 4
Example: Deadlock 5
Example: Deadlock 6
Example: Deadlock 7
Deadlock Reached
Suspending/Resuming Threads
Example: Suspending/Resuming 1
Example: Suspending/Resuming 2
Example: Suspending/Resuming 3
Example: Suspending/Resuming 4
Example: Suspending/Resuming 5
Example: Suspending/Resuming 6
Example: Suspending/Resuming 7
The Last Word on Multi-Threading
Exercise: Multi-Threading 1
Exercise: Multi-Threading 2
Exercise: Multi-Threading 3
Horizontal Libraries
String Object
String is Immutable
String Constructors 1
String Constructors 2
String Constructors 3
String Length
String Operations
String Literals
String Concatenation
Concatenation Usage
Concatenation & Other Data Type
Conversion and toString() Method
Example: toString() Method 1
Example: toString() Method 2
Example: toString() Method 3
Character Extraction
charAt()
getBytes()
toCharArray()
String Comparison
equals()
equalsIgnoreCase()
equals and equalsIgnoreCase() 1
equals and equalsIgnoreCase() 2
regionMatches() 1
regionMatches() 2
startsWith() and endsWith() 1
startsWith() and endsWith() 2
startsWith() and endsWith() 3
equals() Versus ==
Example: equals() Versus ==
compareTo() 1
compareTo() 2
Example: compareTo()
Searching String 1
Searching String 2
Searching String 3
Example: Searching String 1
Example: Searching String 2
Modifying a String
subString() 1
subString() 2
concat()
replace()
trim()
Example: trim() 1
Example: trim() 2
Data Conversion Using valueOf()
Case of Characters
Example: Case of Characters
StringBuffer
StringBufferConstructors
Length() and capacity()
Example: Length() and capacity()
ensureCapacity()
setLength()
charAt() and setCharAt()
Example:charAt() and setCharAt()
getChars()
append()
Example: append()
insert()
Example: insert()
reverse()
Example: replace()
substring()
Exercise: String Handling
Event Handling
Complexity vs. Power
Event Handling Components 1
Event Handling Process 1
Event Handling Process 2
Event Handling Process 3
ActionEventHandling Example
Event and Listener Objects
Example: JButton
Example: JButton Event 1
Example: JButton Event 2
Example: JButton Event 3
Event Hierarchy 1
Event Hierarchy 2
Example: AWT Event Objects
Example: AWT Listener Interfaces
Adapter Classes
Event Types
Event Handling Summary
Exercise: Event Handling
Overview 1
Overview 2
What Is a Collection?
Collection Framework 1
Collection Framework 2
Collection Framework 3
Benefits 1
Benefits 2
Core Collection Interfaces 1
Core Collection Interfaces 2
Core Collection Interfaces 3
Collection
Collection Methods 1
Collection Methods 2
Set 1
Set 2
Set Methods 1
Set Methods 2
Example: Set
List 1
List 2
Example: List
Exampe: List
Iterator
Example: Iterator
Map 1
Map 2
Example: Map 1
Example: Map 2
SortedSetInterface
SortedMapInterface
Implementations
General Purpose Implementations
Older Implementations
Algorithms 1
Algorithms 2
Algorithms 3
Exercise: Object Collection
A Quick Start Guide
Overview of Swing API 1
Overview of Swing API 2
Overview of Swing API 3
Overview of Swing API 4
Overview of Swing API 5
Overview of Swing API 6
Overview of Swing API 8
First Swing Application 1
First Swing Application 2
First Swing Application 3
First Swing Application 4
First Swing Application 5
Basic Features
Example: SwingApplication1
Example: SwingApplication2
Example: SwingApplication3
Example: SwingApplication4
Look and Feel 1
Buttons and Labels
Example: CelsiusConverter3
Example: CelsiusConverter4
Example: CelsiusConverter5
Example: CelsiusConverter6
Example: CelsiusConverter7
Example: CelsiusConverter2
Adding HTML
Adding Icon
Example: LunarPhrases1
Example: LunarPhrases
Compound Border
Combo Boxes 1
Combo Box Event
Multiple Images 1
Multiple Images 2
Layout Management
Using Layout Managers 1
Using Layout Managers 2
Using Layout Managers 3
BorderLayout1
Example: BorderLayout2
BorderLayout3
BoxLayout 1
Example: BoxLayout2
Example: FlowLayout
Example: GridLayout
Containment Hierarchy 3
Containment Hierarchy 4
Containment Hierarchy 5
Containment Hierarchy 6
Containment Hierarchy 7
Containment Hierarchy 8
What is an Applet?
The Hierarchy
What does an applet do?
What to override?
Where to put stuff
Applet Lifecycle 1
Applet Lifecycle 2
Applet Methods to Override
Init and Paint Methods
Skeleton of a Java Applet
HTML to Run Applet
class Font
Methods of the class Font
class Color
Constructors of the class Color
Color Constants
class Graphics
GUI Components and Applets
GUI Application vs. Applet
System.out.printand Applets
Applets and Security
Sandbox Security?
The SecurityManager
What can applets do?
0 of .
Results for:
No results containing your search query
P. 1
Slides 1

Slides 1

Ratings: (0)|Views: 19 |Likes:
Published by ramchalumuri

More info:

Published by: ramchalumuri on Oct 03, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/02/2012

pdf

text

original

You're Reading a Free Preview
Pages 19 to 128 are not shown in this preview.
You're Reading a Free Preview
Pages 147 to 447 are not shown in this preview.
You're Reading a Free Preview
Pages 466 to 502 are not shown in this preview.
You're Reading a Free Preview
Pages 521 to 849 are not shown in this preview.
You're Reading a Free Preview
Pages 868 to 907 are not shown in this preview.

Activity (4)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
virtualmoreno liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->