Rules and Regulations The class name should start with a capital letter. This is not compulsory but it is a conventional rule. Java is a case sensitive. All keywords in Java are written in small letters. As a convention, anything that starts with a capital letter is treated as the name of a class in…