What is null in c#, java?

后端 未结 9 1194
挽巷
挽巷 2020-12-15 23:09

Like... is it 0 like in C++? Or is it some \"special\" object? Or maybe something totally different?

-- EDIT --

I do know what it is, the

9条回答
  •  庸人自扰
    2020-12-15 23:58

    From Microsoft MDSN:

    The null keyword is a literal that represents a null reference, one that does not refer to any object. null is the default value of reference-type variables. Ordinary value types cannot be null. However, C# 2.0 introduced nullable value types. See Nullable Types (C# Programming Guide).

提交回复
热议问题