• 转到主导航栏
  • 转到内容
  • 转到底部
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
    上一页 下一页

    留下评论

    猜您还喜欢

    Mach-O Stitching #9: Relational Binaries – Modeling Symbols and Relocations as Database Tables

    February 3, 2026 1 分钟阅读

    ```mermaid config: themeVariables: fontFamily: ‘monospace’ fontSize: ‘14px’ —

    Mach-O Stitching #8: Static Linking – Who Does What?

    February 2, 2026 2 分钟阅读

    “Compiler Proper”

    Mach-O Stitching #7: How to Interpret Relocs (Relocation Entries)

    January 30, 2026 12 分钟阅读

    可参考 CSAPP $\rhd$ Chapter 7 – Linking $\rhd$ Sec. 7.7 – Relocation.

    Mach-O Stitching #6: How to Interpret Dysymtab

    January 30, 2026 1 分钟阅读

    Basic Structure of Dysymtab

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