Table of Contents
Basic Level day 2 Part A
Aims
Exceptions
Exceptions
try - catch - finally Statement
Exception Handling Example
RuntimeExceptions
Errors
Creating Exception Types
"throw" an Exception
Java’s Packages
Java’s Source Files
Accessing classes in other packages
Packages and the CLASSPATH
Name spaces
Modifiers for Class Name-space
Modifiers for Methods and Field name-space
Final Modifier
Design Classes for Extension
Summary
Quiz
Exercises
Basic Level day 2 Part B
Aims
Using Java’s Packages
Java’s Packages
java.lang
Example 1: Time Counter for a key press
2. java.io
Example 2 :Write a String to a File
java.util
Example 3: Using a Vector
java.net
Example 4: Fetch and print the first 30 lines of an HTML page
java.awt
PPT Slide
PPT Slide
Summary
Quiz
Exercises
Basic Level day 2 Part C
Aims
Applets - Applications
Applets Basics
HTML containing Applets
Applets Apps and the JVM
Applet : Important methods
Applet : A first Example
Applet : A first Example
Painting into Graphics
Painting into Graphics Example
Painting into Graphics Example
Event Handling Simply
Mouse Events
Keyboard Events
A Scribble Example
A Scribble Applet Example
Passing Values from HTML
Security Restrictions for Applets
Placing an Applet in an Application
Summary
Quiz
Exercises
PPT Slide
Basic Level day 2 Part D
Aims
Difficulties Learning Java
How to improve
The 10 most common bugs
Where to find info
What to use :
How to troubleshoot
Summary
Exercise
PPT Slide
PPT Slide
|