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