I can code like this
try{
public amethod()
{
int j=45/0;// Here code will throw runtime exception
system.out.println("Hi");
}
} catch(Exception ex)
{
}
but I cant put try- catch like this
public amethod()
{
try{
int j=45/0;// Here code will throw runtime exception
catch(Exception ex)
{
}