Java tutorial
public class Main { public static void main(String[] args) { Double double1 = new Double(1 / 0.0); System.out.println(Double.isInfinite(double1)); } }