Class in java

Class is a keyword is used to declare class and it represents blueprint for creating Objects  
1.    Class  contains properties and behaviors.
·         Properties are also called as variablesor fields
·         Behavior means logic used  to execute operations can be defined in method.
2.    Class has members of fields and variables.
3.    Class  also contains constructors,nested classes,static block,instance block.

class contains field & methods.

syntax:
<access modifier> class <class_name>{

//fields
//methods
}
access modifier will describes the visibility of the class.we can use any one of below access modifiers.
Access modifiers for  Class:
  i)public
 ii)protected
 iii)default
 iv)private
class:
class is a keyword used to declare the class.
Naming class:
class name should start with capital letter. That means first character of word should be capitalized.if there is any multipe word name first letter of the every word should be capitalized.
Example
Person
Employee_Personal_Details
ClientTest
Example:
public class Calculator{
int x;//field declaration
int y;//field declaration
public void add(){
System.out.println("Sum of numbers is "+(x+y));

}
}