• 转到主导航栏
  • 转到内容
  • 转到底部
listcomp Pro listcomp Pro 温故而知新
    • Posts
    • Categories
    • Tags
    • About

    Java: primitive type 可以为 null

    July 22, 2013 少于 1 分钟阅读

    Boolean b = null; 
    boolean b2 = b;
    
    System.out.println(b2); // null
    

    所以不要以为 boolean 是非黑即白;int/Integer 等 primitive type 同理

    分类: Java

    更新时间: July 22, 2013

    分享

    X Facebook LinkedIn Bluesky
    上一页 下一页

    留下评论

    猜您还喜欢

    LL(1) Parsing

    June 30, 2025 12 分钟阅读

    0. Vocabulary

    Top-Down Parsers: Recursive Descent, Predictive, and More

    June 26, 2025 2 分钟阅读

    1. “Recursive Descent” and “Predictive” are just 2 implementation mechanisims of top-down parsers

    Appetizers Before Parsing: Serving Order

    June 24, 2025 少于 1 分钟阅读

    Serving Order

    Appetizer #4 Before Parsing: Left Factoring

    June 24, 2025 少于 1 分钟阅读

    Why factor?

    • 关注:
    • GitHub
    • Feed
    © 2025 listcomp Pro. 技术来自于 Jekyll & Minimal Mistakes.