Home  >  Q&A  >  body text

Java, the difference between byte with 0 in front and without 0

Why are the output results different if there is a 0 in front and if there is no 0?

给我你的怀抱给我你的怀抱2662 days ago1012

reply all(1)I'll reply

  • 滿天的星座

    滿天的星座2017-06-12 09:27:04

    The beginning of 0 means octal, the beginning of 0x means hexadecimal

    reply
    0
  • Cancelreply