摘要:public class TestException{
    public static void main(String[]args){
        try{
            float result=new Devide().devide(3,0);  
   
public class TestException{
    public static void main(String[]args){
        try{
            float result=new Devide().devide(3,0);  
            System.out.println("the result is"  +result);          
            }
         catch(Exception e){
            System.out.println(e.getMessage()); 
         }
     }
}