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
This change fixes the grammar and updates in the nullability concept and related exercise to improve consistency.
Co-authored-by: Kah Goh <villastar@yahoo.com.au>
Copy file name to clipboardExpand all lines: concepts/nullability/about.md
+3-3Lines changed: 3 additions & 3 deletions
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 data types][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 types][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.
Copy file name to clipboardExpand all lines: concepts/nullability/introduction.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,11 @@
2
2
3
3
In Java, the `null` literal is used to denote the absence of a value.
4
4
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`.
6
6
By convention, they start with a lowercase letter e.g `int`.
7
7
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`.
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 primitive value of the type assigned.
Copy file name to clipboardExpand all lines: exercises/concept/tim-from-marketing/.docs/introduction.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,11 @@
4
4
5
5
In Java, the `null` literal is used to denote the absence of a value.
6
6
7
-
Primitive data types in java all have a default value and therefore can never be `null`.
7
+
Primitive data types in Java all have a default value and therefore can never be `null`.
8
8
By convention, they start with a lowercase letter e.g `int`.
9
9
10
-
Reference types contain the memory address of an object can have a value of null.
11
-
These variables usually start with an uppercase e.g `String`.
10
+
Reference types contain the memory address of an object and can have a value of `null`.
11
+
They generally start with an uppercase letter, e.g.`String`.
12
12
13
13
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.
0 commit comments