public class Cat

{ String name;

Cat(String name) { this.name = name; } protected void finalize(String name) throws Throwable { System.out.println("the object" + name + "destroyed"); }

}

class Dog { String name;

Dog(String name) { this.name = name; } protected void finalize(String name) throws Throwable { System.out.println("the object" + name + "destroyed"); }

}

asked 05 Nov, 16:07

Anna315510's gravatar image

Anna315510
1
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×1

Asked: 05 Nov, 16:07

Seen: 25 times

Last updated: 05 Nov, 16:08

Related questions