Merge pull request #2981 from adambard/bemusementpark-patch-1

Improve comment about final modifier
This commit is contained in:
Andrew Gallasch 2017-10-28 15:37:39 +10:30 committed by GitHub
commit d5ea29ce9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -173,7 +173,7 @@ public class LearnJava {
// Char - A single 16-bit Unicode character
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;
// but they can be initialized later.
final double E;