Hi All,
As we all know
java load classes when they are really needed. But I have seen an exception to this rule
public class A{
public void method1(){
try{
//some code
}catch(MyException e){
}
}
So whenever the "A" is loaded the "MyException" is also loaded even if it is not required in the code path.
I wanted to find out why the special consideration for the classes in the catch block at the time of loading