You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: concepts/nullability/about.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
In Java, the [`null` literal][null-keyword] is used to denote the absence of a value.
4
4
5
-
[Primitive variables][primitive-data-types] in java all have a default value and therefore can never be `null`.
5
+
[Primitive variables][primitive-data-types] in Java all have a default value and therefore can never be `null`.
6
6
By convention, they start with a lowercase letter e.g `int`.
7
7
8
-
[Reference variables][reference-data-types] contain the memory address of an object and can have a value of null.
9
-
These variables usually start with an uppercase e.g `String`.
8
+
[Reference variables][reference-data-types] contain the memory address of an object and can have a value of `null`.
9
+
They generally start with an uppercase letter, e.g.`String`.
10
10
11
11
Attempting to assign a primitive variable a value of `null` will result in a compile time error as the variable always holds a default value of the type assigned.
0 commit comments