Skip to content

Commit 3b31a93

Browse files
authored
Update introduction.md
1 parent d0bb56d commit 3b31a93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

concepts/nullability/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
In Java, the `null` literal is used to denote the absence of a value.
44

5-
Primitive data types in java all have a default value and therefore can never be `null`.
5+
Primitive data types in Java all have a default value and therefore can never be `null`.
66
By convention, they start with a lowercase letter e.g `int`.
77

8-
Reference types contain the memory address of an object can have a value of null.
9-
These variables usually start with an uppercase e.g `String`.
8+
Reference 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`.
1010

1111
Attempting to assign a primitive variable a value of `null` will result in a compile time error as the variable always holds a primitive value of the type assigned.
1212

0 commit comments

Comments
 (0)