The Java language specification allows the dummy gc () method. What for?

I find it difficult to understand the following:

"The Java language specification allows the dummy gc () method."

Why should the standard do this?
Effectively creating an important java function is optional.
It also means that my program will behave differently on two different JVM implementations !!! Something completely against Java is an important portability feature.

+5
source share
6 answers

Its efficient creation of an important java function is optional.

GC Java. , , - , gc(). , .

+13

gc , Java , , , . , Java , .

gc() . . .

" ", , " ".

+6

- JVM!!! - Java .

JVM - . , . - , JVM , . Sun , gc() , , JVM.

+4

- gc() , , .

"" , . gc() - ,

+2

JVM, , , . , Java , , Java , , , .

( ) Java, System.gc(): http://www.ibm.com/developerworks/library/j-jtp01274.html

+2

System.gc(), , .
- vm, vm .

, System.gc(). , .

+1

All Articles