Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


neelam
finalization in java
1 Answer(s)      3 years and 9 months ago
Posted in : Java Interview Questions


What is the purpose of finalization?

Advertisement
View Answers

October 19, 2010 at 4:55 PM


Hi,

Here is the answer.

Finalization is a function in Java which works on the object to perform the clearing process automatically.This is a built-in function and works in many tasks where it is needed to finish the processing. This means that if in Java coding provides the facility that one can assign value to the object so that the object clears the working area.

Java provides a method called finalize( ) that you can define for your class. Here s how it s supposed to work. When the garbage collector is ready to release the storage used for your object it will first call finalize( ) and only on the next garbage-collection pass will it reclaim the object s memory. So if you choose to use finalize( ) it gives you the ability to perform some important cleanup at the time of garbage collection.

Thanks.



Related Tutorials/Questions & Answers:
Java finalization
Java finalization  What is the purpose of finalization
finalization in java
finalization in java  What is the purpose of finalization
Advertisements
Java Exception
Java Exception  What is the purpose of finalization
Servlet Finalization
Servlet Finalization In this tutorial you will learn about what happens when a servlet is going to be finalize. A servlet container can calls the destroy() method of Servlet interface when it found that the servlet should be deleted
java - Java Interview Questions
then add these Object in the JVM's finalization queue.Unreachable Object are retained... information : http://www.roseindia.net/java/example/java/util/ Thanks
Core java Interview Questions
to software developers going for Java developer Interviews. Q 1. Difference... development. Q 2. What is an interface in java? Interface in Java is the collection.... Q 3. What is the Purpose of finalization? Finalization() method cleans up
Core Java Interview Question, Interview Question
Core Java Interview Question Page 14  ... that is implemented in a language other than Java. Question: Can a for statement loop... of finalization? Answer: The purpose of finalization is to give an unreachable
How to supress displaying username and password in Java Web Start 10.21.2.11 Using JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM
How to supress displaying username and password in Java Web Start 10.21.2.11 Using JRE version 1.7.0_21-b11 Java HotSpot(TM) Client VM  I have installed Java 1.7.21 from java 1.6. I am observing username and password (match
java
java  diff bt core java and java
java
java  what is java
Java
Java   Whether Java is pure object oriented Language
java
java  different between java & core java
java
java   why iterator in java if we for loop
JAVA
JAVA  how the name came for java language as "JAVA
java
java  explain technologies are used in java now days and structure java
java
java  what is java reflection
java
java  is java open source
java
what is the size of array in java ?  what is the size of array in java ? what is the mean of finalize in java
java
java   in java does not pointers concept but what is nullpointers in java?   nullpointer is a runtime Exception
java
java   difference between class and interface
java
java  explain object oriented concept in java
java
java  is java purely object oriented language
Java
Java   Whether Java is Programming Language or it is SOftware
java
java  why to set classpath in java
java
java  Does java allows multiline comments
java
java  sample code for RARP using java
java
java  write a java program using filenotfoundexception
Java
Java  how to draw class diagrams in java
java
java  why multiple inheritance is not possible in java
java
java  what are JAVA applications development tools
java
java  how use java method
java
java  send me java interview questions
java
java  write a program in java to acess the email
java
java  Write a java code to print "ABABBABCABABBA
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  why to set classpath in java
java
java  give a simple example for inheritance in java
java
java  give a simple example for inheritance in java
Java
Java  how to do java in command prompt
java
java  RARP implementation using java socket
java
java   What is ?static? keyword
Java Interview Questions
Java Interview Questions - Page 7   .... Question: What is the purpose of finalization? Answer: The purpose of finalization is to give an unreachable object
java
java  different between java & core java print("code sample
java
java online telephone directory  i need coding for online telephone directory..by using java....pls help me
java
java code to search the nodes  how to write the java code to search the nodes using routers
java
java  why methods in java raise exceptions   Have a look at the following link: Java Exceptions
java
java  create java program for delete and update the details,without using database, just a normal java program
java
java  dear, i want a field for date picker using java/java script
java
java pattern code for a given words  java pattern code for a given words pattern
Advertisements
 

 

 

DMCA.com