Professional Documents
Culture Documents
JAVA Notes
JAVA Notes
JAVA
Data types
1)Primitive :-
* non- primitive :-
datatype
variable name
Assignment operator
1) a+=b = a= a+b
2) a-=b = a= a-b
3) a*=b = a= a*b
4) a/=b = a= a/b
5) a%=b = a= a%b
OPERATOR
ARETHMATI
C
L0GICAL
BITWIS
Types of method
If condition
If-else condition
If condition :- if(condition)
{
Statement|block of code|body
}
Types of method
1. Instance variable declared in class body outside of
the main body.
2. We can call instance variable in only non static
method.
3. We can call instance variable in main method with
the help of (Object variable name.variablename).
4. We cant call instance method in static methos.
*local/instance/stati
Method
Business/
Types of method
regular
method
Main method
(public static void main (String[]args)
static
non-
static