Meaning of Zero Before Number in Java -


this question has answer here:

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

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -