Posts by user28265 • 265 points
2 posts
-
18
votes3
answers1132
viewsQ: When to use finalizers and garbage collection in Java?
When to use the methods System.gc() and finalize()? I read that it is very useful in object orientation to destroy memory objects that are not being referenced and to finish tasks, but I see few…
-
8
votes1
answer331
viewsQ: Java Point 2d code, does not display the distance correctly
package OrientacaoObjetos; public class Ponto2D { //campos publicos: nao existem restricoes p/ valores de x e y public double x, y; //constr. default: ponto definido na origem(0, 0) public Ponto2D()…