Online Java Compiler By
JavaTpoint.com
public class ExpExample4 { public static void main(String[] args) { double a = 1.0 / 0; // Input positive Infinity, Output positive Infinity System.out.println(Math.exp(a)); } }
Output