answersLogoWhite

0

Finalizes variables so they can't be changed after being initialized.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.


Small Java-based programs are called?

Java applets


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


What is finalize and finalize-and finalized?

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")

Related Questions

What do you mean by finalizer method?

In C++ you have object constructors and object destructors. Both are called by the developer. In Java and C# you have constructors and finalizer methods, so Java and C# both have support for finalizer methods (also known simply as finalizer). So the finalizer methods are similar to the destructors of C++ with a very important twist, the finalizer method is called by the garbage collector when an object is freed and not by the programmer (like the destructors in C++). Both finalizers in Java, C# and destructors in C++ can be used to free resources such as sockets or file handles that the method is using. However, because the finalizer methods are called by the garbage collector the programmer has no control of when the finalizer method will be called. As such it is NOT A GOOD IDEA to use finalizer methods. One can write the methods of an object in such a way as to clean up after themselves.


When did Finalizer - video game - happen?

Finalizer - video game - happened in 1985.


When was Finalizer - video game - created?

Finalizer - video game - was created in 1985.


What Indonesian island is Jakarta on?

java


Does Visual Java plus plus and Java Builder is different from the Java language?

Yes!Visual Java plus plus and Java Builder is different from the Java language?


What are the different java technologies?

There are several types of Java technology. Some examples of Java software are Java ME, Java EE, Java SE, and Java Card. Java made the JAVA development kit for those that develop in Java. There is also Java Virtual machine and some class libraries. Java is also famous for its languages like Clojure, Beanshell, Groovy, Gosu, Rhino, Kotlin, JRuby, Scala, and Jython.


Small Java-based programs are called?

Java applets


Differences between Java Applet and Java Beans?

Java applet is a program used to run java applications while beans is a compiler used to design java programs (IDE, GUI) :-) GilbertC


Supermost package of java?

The supermost package of Java is the "java" package.


Who create Java and when?

Who create Java & when? Why he create java ? What are mane functions of it?


What do you call java and javascript?

Well you get java as java and javascript as iava.


What country is known for its java coffee in the Java sea?

Java coffee is made in Java, which is an island - part of INDONESIA

Trending Questions
What is being measured by voltage? Which nation is a world leader in desalination projects? What kva generator delivers 500 amps? How do you implement c program for conditional compilation? Cell phones washing machines and door knobs are examples of which human accomplishment? Where can you find design spec for electromagnetic piston engines? What is difference between the metric system and the imperial unit? What is the difference between overriding overloading and shadowing as well as hiding while using inheritance? How do you write an if-else statement that increments the value of count by 1 if the value of total is evenly divisible by four or five and increments the value of count by 2 otherwise? Select the ePolicy Orchestrator component that provides the UI of the System tree sorting of nodes tags and policies? How do you couple DC motor to alternator? Can Paper can be recycled an infinite number of times without losing its strength? The IEE standared 32 bit floating point representation of the binary number 19.5 is? What is the difference between the structure tag and structure variable? Can a cracked non leaky concrete basement foundation wall be repaired from inside the basement and if so with what kind of materials? DMM test lead resistance should never excced? What steps do schools go through to change their uniform? Why do natural gas lines have to break ground before entering a building? What of these writings relies mostly on logic? Which invention helped fuel the Renaissance Era?