I'm stumped can you help answer the question
You usually do not need to delete a String, since when the program no longer refers to it, the garbage collector will clean it up.
yes they should be because since the rubbish collector only comes at the end of the week then by that day the bins would be full so yes the local government should make the garbage bins bigger Thx
A call to System.gc() will tell Java that you want it to run the garbage collector. Use of this method is discouraged, especially since Java can simply choose to ignore the call if it's not necessary.
AMIT KUMAR3th Nov , 2014Java does not support destructors, since java supports the concept of garbage collection,hence the garbage collector is used to automatically free the space which has occupied by the program while running.Garbage collector calls the finalize() method which is defined in the object class. finalize() method is called once for each object.
That depends on the programming language. In Java - since you posted the question in the Java category - an array is treated like an object. That means that you usually don't need to do anything: as soon as there are no more variables that point to the array - and that usually happens when the method that declares the array finishes running - it will become available to be destroyed automatically by the garbage collector. The programmer doesn't have much control over WHEN exactly this happens; the Java Virtual Machine decides when it's convenient to run the garbage collector.
. Garbage collection cannot be forced. Calling System.gc() or Runtime.gc() is not 100 percent reliable, since the garbage-collection thread might defer to a thread of higher priority
Since a year has about 52 weeks, you can divide the yearly salary by this number.
since when have you been asking questions!
Most rich people don't have a salary, since they are too rich to need to work.
$400,000/yr, just like every other president since that salary was inacted.
Salary for the candidate would not be an expense since the candidate does not receive a salary.
Salary for the candidate would not be an expense since the candidate does not receive a salary.