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