Answer the following statements true (T) or false (F)

1. If a class has a method named finalize, it is called automatically just before an instance of the class is destroyed by the garbage collector.
2. If a class has a method named finalize, it is called automatically just before an instance of the class is destroyed by the garbage collector.
3. If you write a toString method for a class, Java will automatically call the method any time you concatenate an object of the class with a string.
4. When an object is passed as an argument, it is actually a reference to the object that is passed.


1. TRUE
2. FALSE
3. TRUE
4. TRUE

Computer Science & Information Technology

You might also like to view...

A Microsoft Access database has a file extension of ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

Discuss how to correct errors after entering data into a cell using in-cell editing.

What will be an ideal response?

Computer Science & Information Technology

What two special actions can users take on AD objects with the Full Control permission that no other permission gives them?

What will be an ideal response?

Computer Science & Information Technology

An area to which access is controlled by retina scan is protected by which of the following security measure types?

A. Two-factor authentication B. Biometric C. Cipher locks D. Optical reader E. Proximity reader

Computer Science & Information Technology