Bitwise AND of all the odd numbers from 1 to N | Java implementation of the approach ; Function to return the bitwise AND of all the odd integers from the range [ 1 , n ] ; Driver code
class GFG { static int bitwiseAndOdd ( int n ) { return 1 ; } public static void main ( String [ ] args ) { int n = 10 ; System . out . println ( bitwiseAndOdd ( n ) ) ; } }