STATIC KEYWORD
In a class we can have 2 types of members.
i. Instance
members – represents attributes and behavior of individual
objects.
ii.
Class members – represents attributes and behavior of the whole
class.
To understand where we need to use static, see the diagram below-

v By default all the members of a class are instance
members. In order to associate a member of a class static keyword is
used.
v static denotes execution of whole class.
Syntax of compiling –
javac NameOfSourceFile
example -


8F0FEC06
ReplyDeleteAfyon
Ordu
Antep
Bingöl
Rize
Çankırı
Erzincan
Niğde
Bayburt
63B11707
ReplyDeleteAdıyaman
Çanakkale
Urfa
Kırşehir
Malatya
Muş
Çorum
Antep
Düzce
E7630AC7
ReplyDeleteKumluca
İslahiye
Erbaa
Şile
Gebze
Payas
Ayvalık
Gümbet
Pursaklar
5377E850
ReplyDeleteAkseki
Elvankent
Alpu
Söke
Yenişehir
Canik
Ünye
Dilovası
Kulu