DEV Community

Kandasami T
Kandasami T

Posted on

Java Class definition

Java provides a reserved keyword class to define a class.
The keyword must be followed by the class name.
Inside the class we declare variables and methods.
A class can be a logical entity to create the object that shares the common properties and methods.

Top comments (0)