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