java中只有两种“除”:取余与除法

1、Java取余操作:

 

  操作数: 

         

int x
            int y
            x%y, 如果y=0, 则抛出arithmeticException异常:
           
            int x

           

          

          

2、Java除法

     

         int 

         x/y 抛出异常;