Online Java Compiler By
JavaTpoint.com
public class FloorDivExample3 { public static void main(String[] args) { long x = 6754883; int y = 0; // Second argument is zero, Output is Airthmetic Exception System.out.println(Math.floorDiv(x, y)); } }
Output