answersLogoWhite

0


Best Answer

The idea of the finalizer method was to do clean up stuff, like releasing IO resource to a database

or a file, as this method is called just before the garbage collector removes the object from memory.

The problem is that you cannot influence when or IF the garbage collector will clean up your object,

so you have no guarantee that the finalize method is ever called.

There are even more issues with the finalizer method, the shorty story is to just avoid it

and use a "try finally" block instead - closing the resources in the finally block will guarantee that

the resources will be released.

If you want to know more, I have a free video both about the finalizer method as well as exception handling on my blog (just Google for "Marcus Biel Clean Code Course")

User Avatar

Wiki User

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is finalize and finalize-and finalized?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering
Related questions

What did the gadsden purchase finalize?

finalized the southern boundary of the continental United States


How long does it take to finalize a divorce in Arkansas after the final court date?

It's finalized the day you go for your final court hearing.


What is finalized DVD?

A burned DVD will not work in most DVD players until it's finalized. You can still view the DVD in a computer's DVD burner. When creating movies, home videos, and slide shows, you will want to finalize the DVD in order to play it on any DVD player. Finalizing a DVD means you won't be able to change or add anything else to the disk. All DVD creation programs allow you to finalize DVDs with the click of a button.


What words start with the word final?

Final Exam, Final answer, Final jeopardy, Final Score, Final Words, Final chapter, Final Draft , Finally,Finale, Finalize, Finalized, Finals


What is the verb of final?

Finalize


A sentence for the word finalize?

I had to check my work and finalize my answers.


Name somthing that starts with the word final?

Lots of options: Finalising Finalities Finalizers Finalizing Finalised Finalises Finalisms Finalists Finalized Finalizer Finalizes Finalise Finalism Finalist Finality Finalize Finales Finalis Finally Finale Finals


What were the circumstances surrounding the writing of the star Spangeled Banner?

Francis Scott Key went to the British fleet located in Chesapeake Bay to finalize the release of Dr. William Beanes. Mr. Key was detained on the ship after the release was finalized due to the shelling of Fort McHenry.


Can you stop the divorce after it has been finalized?

No. That's why it's called 'finalized'.


How do you spell finalise?

"Finalize" is spelled with a "z" in American English and with an "s" in British English: "finalize" and "finalise," respectively.


What is the past participle of finalize?

Finalised.


Why do you write a conclusion?

to finalize your data