class Fizz
{
int[] nums = {1,2,3};
int[] arr;
}
class Main
{
public static void main(String[] args)
{
Fizz[] fs = new Fizz[3];
Fizz fizz = new Fizz();
fs[1] = fizz;
fizz = null;
System.out.println("End of Logic");
}
}
How many objects will be created during executing of this code?
how many will be ready for a Garbage Collector when it reach System.out.println (“End of Logic”);
? and why?