Re: Class destructors
~kurt wrote:
mlw <mlw@xxxxxxxxxxxxxx> wrote:
Could someone explain why there is no destructor in Java classes?
The explanation I remember is destructors are generally used to free
memory, and Java has garbage collection. Doesn't make it right, but that
is the way it is.
That's one of the things that bothers me about Java. So many newbe CompSci
people think it is wonderful, but it has so many glaring omissions and all
too often it falls short of a real and useful programing language. Like
Windows, skill in Java comes from knowing the trivia of Java, and not from
the theory and science of your algorithms.
.
Relevant Pages
- Re: forth and virtual memory
... too, maybe even the same order, so ordering the blocks by allocation ... on systems with too little memory ... What Java is known for, and what it actually does, are two distinct ... My measurements indicate that some of the benchmarks (from SpecJVM98, ... (comp.lang.forth) - Re: Heap and Memory Footprint
... If you have any mixed language objects (i.e. Java objects which have underlying native memory associated), when the object is created memory is allocated in both the Java heap and the C native heap. ... It is important to explicitly call close- otherwise if the object gets promoted to the old area, the memory will not be freed until the object gets garbage collected from the old area which can take a very, very long time (and in the worst case you may have the process hit a memory limit without a garbage collection occurring as only the Java heap's behaviour will trigger garbage collection). ... (comp.lang.java.machine) - Re: What is the fastest method of parsing scheme?
... These issues can be eliminated by the use of custom memory allocators ... Any other ideas why Scheme would be faster than C++ and Java for heap ... For example, in my compiler, the procedure ) ... (comp.lang.scheme) - Re: JVM/Java memory footprint
... I found that if I use Java for developing the CLI ... application I will be exhausting the memory of our Application Server ... Just to mention the architecture,users use ... what WHAT specific REASON do you have to make ... (comp.lang.java.programmer) - Re: Function pointers (Callback functions) in Java ?
... > allocate a memory pool from which I can request memory slices as and ... Java however, does not support structures like C does. ... This is a data centric solution, ... So for a callback, you cannot use anything other than ... (comp.lang.java.programmer) |
|