Skip to content

Commit

Permalink
Fix grammar and clarity in reference types explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
armanh3k authored Nov 5, 2024
1 parent f37d6a8 commit 50f3a3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/concept/tim-from-marketing/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ In Java, the `null` literal is used to denote the absence of a value.
Primitive data types in java all have a default value and therefore can never be `null`.
By convention, they start with a lowercase letter e.g `int`.

Reference types contain the memory address of an object can have a value of null.
These variables usually start with an uppercase e.g `String`.
Reference types contain the memory address of an object and can have a value of null.
These variables usually start with an uppercase letter, e.g. `String`.

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.

Expand Down

0 comments on commit 50f3a3f

Please sign in to comment.