class Test
{
double a[];
Test()
{
a=new double[1000000];
double a1[]=new double[3000000];
}
protected void finalize() throws Throwable
{
System.out.println("hai");
super.finalize();
}
public static void main(String[] args) throws Throwable
{
Test ob=new Test();
ob.finalize();
new Test().finalize();
System.gc();
System.out.println("Hello World!"+ob.a);
}
}
{
double a[];
Test()
{
a=new double[1000000];
double a1[]=new double[3000000];
}
protected void finalize() throws Throwable
{
System.out.println("hai");
super.finalize();
}
public static void main(String[] args) throws Throwable
{
Test ob=new Test();
ob.finalize();
new Test().finalize();
System.gc();
System.out.println("Hello World!"+ob.a);
}
}