Lesson 8 - Activity 3 - How does the final keyword work in Java?

Time: 10 minutes

Purpose: Explore the final keyword on your own

Introduction: You’re used the final keyword in your code to date, but why do we need it?

Task: Investigate how the final word works with variable declaration.

This is used when you have a declaration which will never change – there will always be 360 degrees in a circle, PI will always be 3.14

More than just looking up the answer, have a go at playing with using it and seeing how it changes behaviour.