Online Java Compiler By
JavaTpoint.com
public class MultiplyExactExample3 { public static void main(String[] args) { int x = Integer.MIN_VALUE; int y= 33; // return Airthmetic Exception System.out.println(Math.multiplyExact(x, y)); } }
Output