Why are there no binary literals in Java?

后端 未结 6 955
花落未央
花落未央 2020-12-17 09:15

Is there any particular reason why this kind of literal is not included whereas hex and octal formats are allowed?

6条回答
  •  醉酒成梦
    2020-12-17 09:58

    actually, it is. in java7.

    http://code.joejag.com/2009/new-language-features-in-java-7/

提交回复
热议问题