This is the best Way I can think off, if U want all the methods to be executed what ever the case may be..
Simply
Catch the exception.. Ignore it...
private void go()
{
try
{
method1();
}
catch(Exception ignore1)
{
System.out.println("Exception in Method1"+e)
System.out.println("Continuing with Method2");
}
try
{
method2();
}
catch(Exception ignore2)
{
System.out.println("Exception in Method2"+e)
System.out.println("Continuing with Method3");
}
try
{
method3();
}
catch(Exception ignore3)
{
System.out.println("Exception in Method3"+e)
System.out.println("Continuing with Method4");
}
try
{
method4();
}
catch(Exception ignore4)
{
System.out.println("Exception in Method4"+e)
System.out.println("Continuing ...");
}
}
------------------