Professional Documents
Culture Documents
lkat_is JAYA O
JAVA is object mentedl class bajed proqrominq anquna
lanquaag
1
Rr buildn web and derktop pplicahonS
most populon prog ramin ctnuap and lantua4
and lantuá4
Annatatiom
Whti clats?
Class is nothinq but bluprint which includey al dah
to dycibe
ClasS Comtaung voiahlesind methody
t beha on objert.
0
Clas u a 6luepnot.or Set dDshuctiony to
built a epeciic type dobjeet.
Is object mientee progsaming
be heue and
Uals cdeitnnino hoo an objeet i
what objeet wi Con teun.
Cla í qrou objech that shaney common
ropetie andhehavicu.
11 is Creatd by wing elals keqwt
PAGE No
OATE
What isobject
0bject isan instone clas
-Obfect i Sep.anat copydmo moy,
-Dbject io 00PS is gelf-Con taned COmponent which
Consist d method and ropenties to malce puiewn
fyn elauta wefl
An 0bjectisTeal-wold entity, Eveay object haj huu thiy
)Shate and ) behavioua.
T4is mectd win ne luyword
lhat i JUM
JVM à (JAVA Vintual mcLLhine) avitual maching
that end bles Computen to unJAVA
ieediom .prran,
t pTovd
pTOvicle Tun time envion nment in which JAVA
bytecede CA be executed.
is allso run those proqrams which au wittet
0 oth landua42
JMM Peafons i)loads code Ri Eexeuuty Code
Venihes tode v) Provide Yunhime
enmyn ment.
ype d vaniable
0 Ins tanee vauiables
Local wwuable
StaHc vouucabley
DATE
No-avg Conguctor
Conshructer with no agument Caded no-ag Comsuctur
OR atonshut
tor does not derept an paanatn,
i t iCalled no-anq Coms uror.
-Ex-publíc Demo )
T 1 Creadtel by proammen viible to proqmman
Wh is
Inheitante io OPP Concept
1nhenitanee is the proceis dk acquáring hehovidu
and propetie Panent (lar) to thild (cau).
The tlass na which pro puhy iohenits is Sun n iuà
The
The clas 1o
which_propety delivened is Sub UY child do
Foy in henitance extends keyword is yed
lypedInhuitunce
Single level 4pheri tantel- A --
- B
Propentienhettu fom ingle pACnt to Single da.
Multi level Inhenitance 1 CA-- --> C )
-ropentie in hesitefim panent jp child then child
to anothu child. Grand futhu fatun 3 Child
- Minimu) wo child elas auyequired
Chan 3 cCI'h', h
Shn ned
CLL Awo w 0ject
Stinq litual
Creattdb wing clouwble quet
9tin edeome 1
By ne keyword
Stnin ( " Weltome ");_
hi
Crtats two objet 4_ r n u niasle
PAGE
DATE
immutable
S
Sti ela immutable beccuse Cmce
ente
iotante dastinq object Creafed
it Cannot be modiffed.
OATE
What is Awaus
is set e l e
elements which anL Same dlalahuu
cleclancuion Areay
int aC]-new int[]; Sinqle Dimensinal h
i o t al: 1o,to, s0. T store valus ui hnd
Ex
iot al1 =
hed iot ( i0
Stiny s :new aE ShmngliJ;- sing aua
chan clJ - nd chns1 (Chan C
Object clas
Hd to store set dk element with difeunt daahpa
Huad
by win object a Class.
0bject alj ned 0bjeet Cr]
)Two dimons imal Aoray
Ojot aliTj =ne int B ;
( LWhad is ditfunce behwenn his kwor and upen lkd
this ywm
ThA lorad vai able neame anal10ance
Vwuab le
Vuuaslename in Sam clas
Same then ths
ley word wed to USIn local vaniable yuluu
to instan vCiabl
upu eword
Supru ky d ajslqn loceu vaiable valuu
i0stanu aisle in diffenenut cloLss and
yuable ndmes Same jo both clau
GE
AE
Polymsphis m
4 h t Mthod / (oneuct ovenloali na Compkile. time polirg
T A clout Containg move theln on methrd th
the Same ndme is Called o mekod o loadird
ThL Some Tuly foY mehod loadind
Ctuls Shondd be Same
()numbu d peuAdmetus
Ordn dpwna meten Shonudd be ditfntr
daa hyu punamata J
W Can oveuload main method bu tumei
shoul be difeaunt itu io no seaulnu r dhoreun.
e Can @ventoc Static mehods.
Hhad is na eese
inad isaayawd wth veuiablo,wethod 4 cls.
Aina vaviable -valu Vaniable Cannot_be chanyed.
ind method methau Cannot be oveAidebut Can
beoveload
o elas clas Caonotioheit 4 ovtwsude.
PAGE N
DATE
applicahionm
Viytual Machine-Ot _ on ty prodran.
JVM Javo
prorm s.
executin java
-Responsible e
(2)hat i Intaace
- It is blue print dclals
Intuface Contens only sttuic dnd fina vauiables.
methocds CUl public.
In iottntau by deraudt
In 1otukace methods a by olefeuult abshaet
le Cannot sttutiale iteaface
en
ghin eny essentíaljojermdtin to -tha
and ghoine
yAtm seice.
We Can achve abshactm by hdo tys
O By Abshoact claus 0-1007, itrochion)
-Abrtract cleLss Cn be Cread by lucleanna
abtract keyword to cla.
Abhact clau huve abstact method( doesbt
Cox
e t me hod huve bo dy
have bod)
- l huve to implement AN abshact method in
chonld e_ claus by io iohei tunce
y Intatace 1007. abshacio
Intenfate ony
have OC hie v
abshac mehod une
we lan nche" UD bacho.
By Tntnleate we Can arckiave mulhplu jphei tance.
PACF N
Automatim rameworsk rATE 9%/11/21
->6xtentspune Reporten (
--ExttntRepoy ts ( Ennnmonk
Erent_Tut (b pravid og)
Listenes--s Implements 1Tutirtanu
SYe main/Tesouucey
0 YC /teut/ java
6com.Batthts- ru.Tut
veilyTeyt_001-3 Test
vity fest -002
re/tut/vuouces
maven ole1pendencie -- all ib
pom.x ml -- JC
Conhqpropentieg eey value
Conhq
Tet Data-- data. xlsx Extel ile)
Index .htm
Repurts-
testG x ml