mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-09 08:16:58 +02:00
Improve comment about final modifier
This commit is contained in:
@@ -173,7 +173,7 @@ public class LearnJava {
|
|||||||
// Char - A single 16-bit Unicode character
|
// Char - A single 16-bit Unicode character
|
||||||
char fooChar = 'A';
|
char fooChar = 'A';
|
||||||
|
|
||||||
// final variables can't be reassigned to another object,
|
// final variables can't be reassigned,
|
||||||
final int HOURS_I_WORK_PER_WEEK = 9001;
|
final int HOURS_I_WORK_PER_WEEK = 9001;
|
||||||
// but they can be initialized later.
|
// but they can be initialized later.
|
||||||
final double E;
|
final double E;
|
||||||
|
Reference in New Issue
Block a user