Home Page Icon
Home Page
Table of Contents for
Forcing the Garbage Collector to Run
Close
Forcing the Garbage Collector to Run
by Eben Hewitt
Java Garage
Copyright
Acknowledgments
About The Author
What is the Java Garage
Java Buzz
Java Editions and Platforms
Compiling and Running Java Applications
Installing the SDK
Compiling Source Code
Compiling into a Directory Other Than Your Source Directory
Running Programs
Setting the Classpath
Setting the Classpath at Compile Time
Setting the Path
Where to Write Code
Integrated Development Environments
Primitive Types
About Java Primitives
Integer Types
Real Numbers
Characters
Logical Representations
Operators
Operator Precedence
Arithmetic Operators
Incrementing and Decrementing Operators
Relational Operators
Conditional Operators
Ternary Operator
Binary Numbers and Logical Operators
Shift Operators
Control Statements
If/Else
Classes
What Is a Class?
Fridge: Mmm-Mmm Lamb Chops and a Manhattan
Classes Reloaded
Using External Code in Your Programs: import
Constructing Objects
Using Enums
Methods Allow Variable-Length Parameter Lists
Wrapper Classes
Autoboxing
The Class Named Class
Inheritance
PsychoMan PsychoMan PsychoMan
Getting Your Inheritance
Strings
Creating String Objects
String References and Immutability
Doing Stuff with Strings
Character Data Encoding
Useful String Methods
Better Efficiency with StringBuffers
Arrays
Creating Arrays
Using Arrays
Using Stacks
ArrayLists and toArray
Documenting Your Code with Javadoc
Writing Javadoc Comments
Using Javadoc Tags
Using the Javadoc Tool
Changing Javadoc Styles
Generating Javadoc in Eclipse
Generating Javadoc with Ant
Abstract Classes
Dude, Where's My Implementation?
What Is an Abstract Class?
Using Exceptions with Abstract Classes
Using an Abstract Class Polymorphically
Interfaces
Let's Get One Thing Straight
Some Reasons Why Interfaces Are Very Cool
How to Write an Interface
Interfaces Versus Abstract Classes
Constants
Interface Inheritance
Implementing Interfaces
Casting and Type Conversions
Casting
Casting Between Primitives and Wrappers
Casting with Reference Types
Inner Classes
Regular Inner Classes
Using Method Local Inner Classes
Using Anonymous Inner Classes
Static Inner Class
Blog: Inner Classes and Event Handlers
Handling Exceptions
Exceptions
What an Exception Is
Dealing with Exceptions
Built-in Exceptions
Throwing Exceptions
Catching Exceptions
Using Finally
Different Ways of Handling Exceptions
Wrapping an Exception
Toolkit: A Custom Exception
Exceptions and Inheritance
Exception Handling Pretty Good Practices
File Input/Output
Files and Directories
Files
File IO: Reading and Writing Stream Data
Readers and Writers
Fridge: Guacamole
Using Regular Expressions
Purpose of Regex
Creating Guis with Swing
Anatomy of a Swing App: Stuff You Typically Need to Do in Swing
Adding User Controls
User Controls.stepInto()
Spacing and Aligning Components
JEditorPane
JTabbedPane
LayoutManagers Overview
Switch (LAYOUT_MANAGERS) {
Handling Action Events
Creating Menus
A Note About Mixing Swing and AWT Components
Blog Entry: Software Development Black Market
Dates and Times
Dates
Time
Using Timer Tasks
Using TimerTask to Do Stuff at Intervals
Stopping a Timer Thread
Creating a Timer for a Swing GUI Application
Applets
Not-Applet Technologies
Applet Basics
Differences Between Extending JApplet and Applet
Writing an Applet
A Few Applet Tricks
Fridge: Big Daddy Flapjacks
Using System and Runtime
Using the System
Forcing the Garbage Collector to Run
Suggesting Kindly That the Garbage Collector Run
Executing an External Application in Java
Interacting with the User
Toolkit: A Simple Calculator
Determine Number of Processors on the Current Machine
Determine When Your Application Is About to Exit
System Properties
Using the Java Development Tools
Using Common SDK Tools
Discovering Other SDK Tools
FAQ
Setting the CLASSPATH
Setting JAVA_HOME in Windows
Setting the PATH in Windows
Checking Current Java Version
Compiling and Running Programs
Primitive Data Types
Declaring and Initializing Variables
Class Definition
Package Declaration
Import Declaration
Inheritance
Defining and Implementing an Interface
Exceptions
Working with JAR Files
What Is the Java Virtual Machine?
What's In the SDK?
Packaging & Deploying Java Applications
Herding Cats
Creating JAR Files with Eclipse
Creating an Icon for Your Java Application on Windows
Toolkit
A Name Data Class
Credit Card Validator
Application: SimpleTextEditor: Garage Pad
Application: RSS Aggregator
Application: DrawingPad: Garage Doodler
System.Exit…
Java Glossary on Steroids
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
R
S
T
U
V
W
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Using the System
Next
Next Chapter
Suggesting Kindly That the Garbage Collector Run
Forcing the Garbage Collector to Run
You can't.
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset