Meaning of Zero Before Number in Java -
this question has answer here:
- integer leading zeroes 8 answers
i have code this, don't know why result variable have false value after execution code
int x = 234; boolean result = (x<0250); and why following code doesn't work properly?
system.out.println(0250); it prints 168 !! why?!
integer literals starting 0 octal (base 8) not decimal (base 10).
your options are
hexadecimal = 0x0c; decimal = 12; octal = 014; binary = 0b1100;
Comments
Post a Comment