Java:output Strange in printstream -
this question has reply here:
integer leading zeroes 7 answers java int 0 prefix? [duplicate] 2 answerswhy output unusual 0022 =18? hello day have test.the question "what output of
system.out.println(0022); i confuse why reply 18
explain needed
if first digit of int literal 0, java interprets number in octal (base 8).
java
No comments:
Post a Comment