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

    留下评论

    猜您还喜欢

    Left recursion is not a problem for LR parsing

    October 10, 2025 少于 1 分钟阅读

    See discussion here: Left recursion in LR(1) parsers. Note that templatetypedef wrote:

    Packrat Parsing: Left Recursion Handling with Seed Parsing

    October 3, 2025 6 分钟阅读

    1. Overview

    How to Read Inference Rules: PEG Semantics as an Example

    October 3, 2025 1 分钟阅读

    O. Intro

    Python: Function Signatures in Decorator Design

    August 28, 2025 1 分钟阅读

    其实在 Fluent Python: Chapter 7 - Function Decorators and Closures 有讲,但没有专注在 signature 上。

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