Class Exercise4_11

java.lang.Object
  extended byExercise4_11

public class Exercise4_11
extends java.lang.Object

Exercise 4.11 from the book.

Version:
1.0
Author:
Kristian Torp, torp (at) cs (dot) aau (dot) dk

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

name

java.lang.String name
The name

Constructor Detail

Exercise4_11

public Exercise4_11()
Default constructor.


Exercise4_11

public Exercise4_11(java.lang.String name)
Constructor that takes a single string argument.

Parameters:
name - the name
Method Detail

finalize

public void finalize()
The finalize method.

See Also:
Object.finalize()

main

public static void main(java.lang.String[] args)
Main method that creates a lot of objects and call the garbage collector once in a while