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