Core Java theorytheory 0/50 · 0%
Fundamentals · easy

3. Variables and Constants

Declaring variables and using final for constants.

Variables store data. Use 'final' to create constants that cannot be reassigned after initialization.

Check your understanding

  1. 1. How do you declare a constant?

  2. 2. Can a final variable be initialized in a constructor?