Java code, due to its C heritage, has traditionally forced programmers to represent numbers in only decimal, octal, or hexadecimal.
As quite a few domains are bit orientated, this restriction can introduce errors. You can now create binary numbers using an 0b prefix.
int binary = 0b1001_1001;
just like that.
hi.............gowthaman September 17, 2011 at 1:07 PM
how do use your website?
Binary LiteralsNiks December 12, 2011 at 11:43 AM
NA
Binary literalArshad khan January 7, 2012 at 11:41 AM
Java code, due to its C heritage, has traditionally forced programmers to represent numbers in only decimal, octal, or hexadecimal. As quite a few domains are bit orientated, this restriction can introduce errors. You can now create binary numbers using an 0b prefix. int binary = 0b1001_1001; just like that.
Post your Comment