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


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


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

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


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


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


Who create Java and when?

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


Supermost package of java?

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


What do you call java and javascript?

Well you get java as java and javascript as iava.