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