Question : Question about garbage collection - Which object is elligable for GC

Given:
class Bowie {}
class Ape {
    static Bowie b1;
    Bowie b2;
}
public class Test {
public static  void main(String [] args) {
  Bowie b1=new Bowie();
  Bowie b2=new Bowie();
  Ape a1=new Ape();
  Ape a2=new Ape();
  a1.b1=b1;
  a1.b2=b1;
  a2.b2=b2;
a1=null;
b1=null;
b2=null;
// What happens here? Which object is eligible for garbage collection? Why?

}

}

Answer : Question about garbage collection - Which object is elligable for GC

>> <cfif FORM["seminars_beginner"& Row] AND FORM["seminars_intermediate"& Row] >

.... This is a shorter way of saying:

   <cfif  FORM.TheFirstCheckboxValue NEQ  0 AND FORM.TheSecondCheckBoxValue NEQ 0>

It takes advantage of the fact that numbers can be evaluated as boolean. 0 evaluates to FALSE, and other numbers to TRUE.
Random Solutions  
 
programming4us programming4us