Online Java Compiler By
JavaTpoint.com
public class IntegerHighestOneBitExample1 { public static void main(String[] args) { System.out.println("Integer value in the position of the highest-order one-bit: "+Integer.highestOneBit(20)); } }
Output