public static void main ( string [] args)
This is a main method…..
public static void main ( string [] args)
{
method body (or)
method definition….
}
What is static keyword ?
- Static is a class behaviour
- Static refers to class level memory.
- Data will be store only once.
- It is not at all constant
Methods ——> behaviour
Methods are also called behaviour.
Sequence of instruction with a name.
e.g program.
int tamil=90; english;
total = tamil+english;
System.out.println(total);
Error occurred in above program..
total cannot be resolved to a variable.
int tamil = 85; // initialization
int english; // declaration
Note: If type mismatch error comes, change or add datatype.
Console – – – – – – > displaying output
***Static keyword iruntha main method la irunthu start agum. program execution um anga irunthu than start agum…***