Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

why are there no destructors in java?

Because Java is a garbage collected language you cannot predict when (or even if) an object will be destroyed. Hence there is no direct equivalent of a destructor.
Comment

PREVIOUS NEXT
Code Example
Java :: java image draw 
Java :: java Modulo 10^9+7 (1000000007) 
Java :: how to import math lib in java 
Java :: comparable on a generic class java 
Java :: convert fahrenheit to celsius 
Java :: Problem adding rectangle in javaFX 
Java :: java home mac 
Java :: how to send a byte array in socket java 
Java :: printing prime numbers in java 
Java :: linux command to see all the java version installed 
Java :: how to add 2 numbers in java 
Java :: java singleton implementation 
Java :: instantiate optinal java 8 
Java :: java distinct by key 
Java :: double quotes in string java 
Java :: iterable interface in java 
Java :: awk print second 
Java :: java convert java.util.Date to LocalDate 
Java :: java date format with timezone 
Java :: spring.jpa.properties.hibernate 
Java :: Java Converting int to double 
Java :: copy elements of array in java 
Java :: Instant class java 
Java :: java subscript numbers 
Java :: fill two dimensional array columns by columns java 
Java :: javafx start 
Java :: java enum length 
Java :: max and min value in array 
Java :: java string not equal 
Java :: setbackground java 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =