What is the purpose of finalization in java programming?



What is the purpose of finalization in java programming?..

Answer / Narendra Singh Selal

Finalization is a process by which an object's cleanup code is executed before it is garbage collected. It allows for resources like files or network connections to be properly closed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How to Sort Strings which are given in List and display in ascending order without using java api.

2 Answers   LIC,


Why are the methods of the Math class are static?

1 Answers  


What is a "pure virtual" member function?

1 Answers   Amazon,


Why Java is not purely object oriented?

50 Answers   Elitecore, Persistent, Reliance, Wipro,


Does any tag exists in HTML to upload and download files ?

3 Answers  


Can we declare a static variable inside a method?

1 Answers  


What are the legal operands of the instanceof operator?

1 Answers  


Why is the type for real numbers called double?

1 Answers  


What is difference between an object and a class?

1 Answers   Amdocs,


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1 Answers   TCS,


How to initialize an Applet ?

9 Answers   TCS,


Explain importance of finally block in java?

1 Answers  


Categories