Which of the following are true ? Select six answers?
1. The signature of finalize() method is, protected void finalize() throws Throwable{}
2. The signature of finalize() method is, public void finalize() throws Throwable {}
3.The signature of finalize() method is, void finalize() throws Throwable {}
4.The signature of finalize() method is, private void finalize() throws Throwable {}
5.The finalize() method can be Overloaded.
6.The throws clause of the finalize() method can be defined with any exception.
7.The finalize() method is guaranteed to be called on any object to be GC'ed.
8.The finalize() method is called only once on any object to be GC'ed.
9.There is no restriction on the number of times the finalize() method is called on an object to be GC'ed.
test says that 1,2,5,6,7,8 is correct answers. Why 2 is correct?
thanx to all.