Variables store data. Use 'final' to create constants that cannot be reassigned after initialization.
← Core Java theorytheory 0/50 · 0%
Fundamentals · easy
3. Variables and Constants
Declaring variables and using final for constants.
Check your understanding
1. How do you declare a constant?
2. Can a final variable be initialized in a constructor?