|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Exercise4_11
Exercise 4.11 from the book.
Field Summary | |
(package private) java.lang.String |
name
The name |
Constructor Summary | |
Exercise4_11()
Default constructor. |
|
Exercise4_11(java.lang.String name)
Constructor that takes a single string argument. |
Method Summary | |
void |
finalize()
The finalize method. |
static void |
main(java.lang.String[] args)
Main method that creates a lot of objects and call the garbage collector once in a while |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.lang.String name
Constructor Detail |
public Exercise4_11()
public Exercise4_11(java.lang.String name)
name
- the nameMethod Detail |
public void finalize()
Object.finalize()
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |