What is the purpose of the 'final' keyword in Java?
To indicate the last variable in a class
To declare a constant
To mark the end of a loop
To finalize a method