Online Java Compiler By
JavaTpoint.com
public class IntegerNumberOfTrailingZerosExample4 { public static void main(String[] args) { int num = -15; System.out.print("Input Number = " + num); // Returns the number of zero bits following the Lowest rightmost one-bit System.out.print("\nNumber of Trailing Zeros = "+Integer.numberOfTrailingZeros(num)); } }
Output