Welcome Message

Hi, welcome to my website. This is a place where you can get all the questions, puzzles, algorithms asked in interviews and their solutions. Feel free to contact me if you have any queries / suggestions and please leave your valuable comments.. Thanks for visiting -Pragya.

March 4, 2011

Multiple catch blocks



Both

try{

     }catch(Error e){

     }catch(NullPointerException npe){

    }

and


           try{

}catch(NullPointerException npe){

}catch(Error e){

}

will compile.

No comments: