In Java, the final keyword is used to denote that a variable, method, or class cannot be further modified or extended. When applied to a variable, it makes it a constant, preventing its value from changing. When applied to a method, it prevents overriding, and when applied to a class, it prevents inheritance.