Java Class Naming Convention

In this post, we will discuss the Java classes naming conventions with examples.

Read complete Java naming conventions at https://www.javaguides.net/2018/08/java-standard-naming-conventions.html.

Classes naming conventions

Class names should be nouns in UpperCamelCase (in mixed case with the first letter of each internal word capitalized). Try to keep your class names simple and descriptive.
Example:
class Employee
class Student
class EmployeeDao
class CompanyService
The class naming convention used by Oracle for the Java core packages.
class String
class Color
class Button
class System
class Thread
class Character
class Compiler
class Number
Few more examples:
public class ArrayList {}
 
public class Employee {}
 
public class Record {}
 
public class Identity {}

Reference


Comments