When finalize method is called?

Answer Posted / janet

finalize() method is used just before and object is
destroyed and can be called just prior to garbage
collection.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between final, finally and finalize() in java?

529


How do you do exponents in java?

560


What is toarray method in java?

568


What does index mean in java?

545


What is the final class modifier?

567






What is the difference between hashmap and hashtable? What is an interface?

528


What is difference between path and classpath?

573


What do you understand by copy constructor in java?

503


Write a program to check for a prime number in java?

568


Can we create constructor in abstract class ?

594


What is the difference between a window and a frame in java programming?

605


What are the uses of synchronized keyword?

564


Can a abstract class be declared final?

581


what happens when a thread cannot acquire a lock on an object? : Java thread

547


Why is java called the platform independent programming language?

591