62,634
社区成员




static boolean method()
{
boolean b = false;
try
{
some code here
b = true;
}catch(Exception e)
{
b =false;
throw new Exception();
}finally
{
return b;
}
}
static boolean method(){
boolean b = false;
try{
some code here
b = true;
}catch(Exception e){
b =false;
throw new Exception();
}
return b;
}
static boolean b = false;
static void method() throws Exception
{
try{
//some code here
b = true;
}catch(Exception e){
b =false;
throw new Exception();
}finally{
b = true; //or b = false;
}
}
static boolean method() throws Exception {
boolean b = false;
try {
int i = 1/0;
System.out.println(i);
b = true;
} catch(Exception e) {
b =false;
throw new Exception();
}
return b;
}
static boolean method()
{
boolean b = false;
try
{
some code here
b = true;
}catch(Exception e)
{
b =false;
throw new Exception();
}finally
{
return b;
}
}