You declare a class in Java using the ‘class’ keyword, followed by the name of the class, and a pair of curly braces {}. For example: public class MyClass {}. You can add fields and methods within the curly braces as needed.