|
|
|
1000 Java Tips ebook
|
|
 

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!. |
|
Java Lessons by Jon Huhtala: Update
|
JavaFAQ Home » Java Lessons by Jon Huhtala

Java lessons (for beginners) are updated! We got a lot of suggestions how we
can improve our site. One of them was to add contents pages to number of our
publications. It makes navigation much easier. First step is the content page
for Java Lessons by Jon Huhtala. Soon all the Java lessons will be updated also
- we are going to add more navigation links to every Java lesson.
The contents page for the Java Lessons by
Jon Huhtala
What is Java?
Java
history
Benefits of Java
How Java works
Disadvantages of Java
Benefits of Java far out-weigh its disadvantages
Java programmers
What does it take to become a certified Java programmer?
Anatomy of a simple Java program
A sample Java program
Testing the sample program
Program analysis
Comments in Java
The program's class
Statement blocks
The main method
Writing to the system output device (the console)
Identifiers and primitive data types
Uses of identifiers
Rules for identifiers
Examples of valid identifiers
Programming conventions
Primitive data types
What about strings?
What is Unicode?
Integer data format
Floating-point (decimal) types
More information
Variables, constants, and literals
Variables
"Automatic" or "method local" variables
Literals
boolean literals
char literals
Integer literals
Floating-point literals
String literals
Constants
Arithmetic operations, conversions, and casts
Basic arithmetic operations
Addition, subtraction, and multiplication
Division
Modulo (remainder)
Arithmetic assignment operations
Increment and decrement operations
Conversions
Casts
Some thoughts on arithmetic expressions
Boolean expressions and operations
Boolean expressions
Comparison operators
Logical operators
A warning about comparing strings
Certain logical operators can be combined with assignment
Bitwise operations
Logical bitwise operations
The complement operator
Bitwise shift operations
Bitwise assignment operations
More practice
Flow control with if and else
The if statement
The else statement
Nesting
The switch statement
The for statement
The while statement
The do-while statement
Using break and continue
The break statement
The continue statement
Class methods and how they are called
Methods
Calling a class method
A sample program
Looking ahead
Using the Math class
Using pre-written Java code
The Math class
Sample programs
Creating and calling custom class methods
Custom class methods
Creating and calling custom class methods
Custom class methods
Sample program
Overloading class methods
Overloaded class methods
Sample program
An introduction to objects and object references
An instantiable class
An object
Overview
The String class
Sample program
The StringBuffer class
The StringBuffer class
Sample program
Initializing and processing arrays of primitives
Java arrays
Sample program
Looking ahead
Initializing and processing arrays of objects
Object arrays
Sample program
The Java Lesson 21
The Java Lesson 22
Inheritance and overriding inherited methods
Extending a class
Overriding an inherited method
abstract classes and polymorphism
Polymorphism
More information
Interfaces, instanceof, and object conversion and
casting
The instanceof operator
Object conversion and casting
Interfaces
Introduction to graphical programming and the
java.awt package
Graphical programming
Event-driven programs
The Abstract Windows Toolkit (AWT)
Anatomy of a small windows program
The Component class
Controlling position and size
Controlling appearance
Controlling user access and component visibility
Rendering (drawing) the component
Containers and simple layout managers
The Container class
Layout managers
BorderLayout
FlowLayout
GridLayout
Satisfying complex GUI requirements
The Color and Font classes
The Color class
The Font class
rawing geometric shapes
Drawing overview
The Graphics class
Choice, List, and Checkbox controls
The Choice class
The List class
The Checkbox class
Using the Scrollbar graphical control
The Scrollbar class
Menus and submenus
The MenuComponent class
The MenuBar class
The Menu class
The MenuItem class
The CheckboxMenuItem class
An introduction to applets and the Applet class
The Applet class
The life cycle of a Web page applet
A sample applet
Essential HTML to launch an applet and pass it
parameters
Web pages
HyperText Markup Language (HTML)
Launching an applet in an HTML document
A sample applet that receives a parameter
Posting a Web page that launches a custom applet
Mouse event processing
The MouseEvent class
The MouseListener interface
The MouseMotionListener interface
The MouseAdapter and the MouseMotionAdapter classes
A sample applet that uses mouse events
Menus and submenus
The MenuComponent class
The MenuBar class
The Menu class
The MenuItem class
The CheckboxMenuItem class
The WindowListener interface and the WindowAdapter
class
The WindowListener interface
The WindowAdapter class
An introduction to GridBagLayout
GridBagLayout
The GridBagConstraints class
A sample applet that uses GridBagLayout
A sample windows program that uses GridBagLayout
An introduction to the Java Collections API (List,
Set, and SortedSet)
The Java Collections API
The Collection interface
The Iterator interface
The ListIterator interface
The Set interface
The SortedSet interface
The List interface
Exception handling with try, catch, and finally
blocks
Errors
Exceptions
The exception handling technique
Special considerations
Claiming and throwing exceptions
The throws keyword
The throw keyword
Overriding a method that throws an exception
Efficiency considerations
Multithreading, the Thread class, and the Runnable
interface
Multithreading
The life of a thread
The Thread class
The Runnable interface
An introduction to I/O and the File and FileDialog
classes
The File class
The FileDialog class
Low-level and high-level stream classes
The FileOutputStream class
The FileInputStream class
The DataOutputStream class
The DataInputStream class
The ObjectOutputStream class
The ObjectInputStream class
Using the RandomAccessFile class
The RandomAccessFile class
Limitations and solutions Printer Friendly Page
Send to a Friend
Search here again if you need more info!
|
|
|