Sponsered Links
Categories
Sponsered Links

What is Java Class?

 

Classes are the fundamental building blocks of a Java program. You can define an Employee class as follows:

class Employee {
  int age;

  double salary;
}


   1. By convention, class names capitalize the initial of each word.
   2. For example: Employee, Boss, DateUtility, PostOffice, RegularRateCalculator.
   3. This type of naming convention is known as Pascal naming convention.
   4. The other convention, the camel naming convention, capitalize the initial of each word, except the first word.
   5. Method and field names use the camel naming convention.

 
 
Sponsered Links
Latest Updates
 
All Content of this site is for learning only. We do not warrant the correctness of its content. The risk from using it lies entirely with the user. While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright © 2009 JSPSERVLETTUTORIAL.INFO All Right Reserved