Boolean b = new Boolean(“abcde”); 会编译错误码?

匿名网友 匿名网友 发布于: 2015-08-30 00:00:00
阅读 107 收藏 0 点赞 0 评论 0

答案:不会,在Boolean的构造函数中,除了”true”和”false”之外的字符串虽然不会造成编译错误,会返回false。

评论列表
文章目录