lava
Java Was dlwelgpo by Tames Çosbing,oko i
knotn as fahen of Tawa, n 1995. Tomu Gsing
ike Sheuidan e Patick Naghton initaed hs ase
Lamguage Proeet in Tun 199/.he amal kam 8y
Bum mgines callel Than. Fiasty t calhd
ymbot ef Shergth choostn
alooy a hedmask by Oak
Tstrolagis.
Java s am
Laay progamdng language.
Rick Jawa os tth
inelusty . Most of He govelmnd, helheau dylent,
Lolucation netor cebik applieaion are skll wsing
Towa gybu na
Ke Tawa Coheh ophon hen also 9t cbn
Jaa csa Caneh
truke paks.
y belawo.
oof data both
Kat obet tpes diffnend combinahone
Objiat-Orintd
mans
ie
.Objet
an dva nKing eny Ointal
alachon GaskageAutomatic
Tava nnpneecl tonove to
beeaust 0b,e a
ishere
orenlsaelng opehab painen,-eapliit
Noek. emove ctt.
94
t 2rauly.
ustd complieahon
ased tand, wnclo b
-avais
*Diatibkel
peyosmanee igh |*
Dynamic *
Arckikehre *
+Robust
inolapenalt +Plotfosm
Orikd
en Obict
ava feotvse
spailic machines shie jovoa is a wik onee un
bosel plater s Hat n on
bond plaom.t kad hoo componenk Run biml
Çovosmant , Application Bog aming Snkyjel
taLcut n lin,Haeles . et.Tava Code is
. 3
Compibel by He Compiles e lorvest into by kCaole.
Secuted Tawa sith Hu help ey His wt
e ayskm. Tava is seoured boause No apliit
poinlh, TaNa pgn inie a wiykal mahin
Hanage. one applicaion oelapes enpliiky
thogh ssL, lryphag pky ek.
Robust- English mianing Robust a.
yobust ecaun' e stong mmeymanagiment. there Koe
lact y pointes Hat oweid ewshy problems.9t
poevioles aulomahic garsaq collrchion okcl
irhal Hacline .aauphon
meohaisn.
Architet -nhal-hee implemenhbl
Pantabla faeilitaks you to cay hu Tava
byde cook o
pmen ation.
ony m
fasks Han okes
olsHonal inteprto pgrmmi anguaga
bcawt yawa bytcsed is
ç shel aeHU bit alosen Han a
lompikol kang uoag
CeC)Tawa i am Sntorpun kod lang uoge hat is
why it is slonses han Compilhd
C,t.
Mti-heeole- Athreacled is ltea panale
mumory or each huca: J+ okares a comhen
memoy ea .
Oppliehn .
Dynamic-4 he
class.94 muams clas dynamis lonl'ng
are loelhd on olmamo
94 also
anguags, ie C, ct.
Vrinel beksen e*g Tava
JAVA
94 can aen in anu 0s
henee SF is pes fable
9+a both Compile baseel 9t a Complin
and ntrpko baseol
Languge
9# dos not suppod mltple 9+ supped both
9hkentane muthip Singd
9nhevnce
3+ suppeth meko oloadling
but not opsads Onedoali 3+ suppen bott.
mehsdoloaeb
9+ haslmhel suppet ovenlondin:
Jor poinkrs 3snhengy appoh
9+ cloes nat
kaywotd kujoond.
9+ aloesnt sppont stut 9t uppes kshuchire
anel lmen ana emin.
an;et-oitntd ragmmig
spael.
Objct acgu'sall ppenis
pslumaphsm.
bnachieni- thusl'ng entenal dek'ls e akocsrng
abstet lan inke
ei' abs tach'on:
Fncanalahini- binling Cocli e dta ogtes
Cneanilah'on
ing n
m-1
(los abc
Pablie otake Void main('sting ago )
Syp krn. Dutpoinln ("Hllo Jaa");
clas
2publi akahe void main (ting g c3)
sys kem abc
Dut paint (Tam in
ob' hs abe c;
amanpagn);
am inman
peg
Hello jova
2 Clons 20bj.
Prgram-2
Clas add
Syokom out prinka ("243- 5);
clas yz
publie atahie void main (shingay 3)
Syakem .sut. printen (" aollhin Qsubshrochisn);
Okj fun)j
Sub obc= nu subO;
ably funCo)
3
Clas sub
veid funl)
Syotm. out prin k (3-J=4);
3
Adal''on Baubstraeh'on
93-5
-3
ale (ita)
ayakmot pintn ('aia efagua.4 ato );
ted aa (int a,intb)
ved aLa ( ceubla)
susten outpiak('aia iel 3 /4 *r );
publ'e shah'e vod na'nsming gco)
oby'aa (20); oiadonliya;
obj aa lio, 5)
obyj asa (1 o);
lfoult Constwedo.
id id;
Voicl display)
Syntn od printlm (d -" "4nam);
fuLeie skh'e vood man (shning agr )
nes studnt l);
Dukput
Prorram -6
ode:
obxtct clas .Skapt
void odu) ()
Sykm.oudprnte("drausinq etorga");
3
Otput.
deat (0)
Dutpti
sping
baing*
aing
Pogam-7
bjechae: 4AP to cxote
Lneac A
vord al );
void b ();
abshat clax Bimplimnh A
i publ' Void
ec)
Clas etnol B
pube'e vd ac)
Ss kn tprin C'lama:
Syskm out pinkn ("l anb);
hane
TusHahui
2
3
..
); pihd- wee
seep( voicd
Dog hrols daPog Bal, Clan
3
...") Snkmot
()
bast Vord
drinal crtnds Dog las (
): printn Out knSya
at) Void
Aumal (las
fone Tahei mellaue at c tAoP
to
Prog hue.
om
pulli
Sys tem ot.
rer'cl Yun (
Syskm Otp n (" un mehad ):
pull'e Shath'e vore
maiah'ng CQarg)
y7 a
Hy Thuoadc);
Fant hod
meho
Drtpt prclucd hy only main ycod.
3
siing, Colo"Black
vecl pntcoe ()
Sykn outprt lcoler):
Sys kmoutprinn (Supei.(alo
3
pusl'e Skh'e vad mga (shing gs 1)
Dutput'
Black
C,tbve AP to wn of
final Keycoonda
(as Bike
Syakm'out printn l"runn'ng ")i
as tonla
ltols Bike
Voic nc
lookmphy;
Pusl'e Stahe vaid main (sboig )
tlonda hanelaa eu.
honda, vny
yonola
3
Owput
thyada
publie void inc)
fo (int i- o;ie to ;
i**)
Sykn
Clay Thhed emo
putl'e Satie vadod main CSnbg C) wgs)
nu
wheat n
Thxad ( )
Reemnabe. t Stat;
fonlinticor)i )
Systm-owhpim("man thrad "):
Sas kom Out print ("lam d")
3
lan st 5
plli'e SSJrh'e vod maln (s triny ag C3)
Dutput.
/am a
|am