Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit 8f6487b

Browse files
author
Ram swaroop
committed
added content
1 parent 54f489c commit 8f6487b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_posts/2015-05-14-variables-and-literals.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ Array (initialized) | Default values of their respective types as discussed abov
472472

473473
#### Default values for Local (also called Stack or Automatic) variables (Primitive and Non-primitive):
474474

475-
475+
Local variables, including primitives, always, always, always must be initialized before you attempt to use them
476+
(though not necessarily on the same line of code). Java does not give local variables a default value, you must
477+
explicitly initialize them with a value.
476478

477479

478480

0 commit comments

Comments
 (0)