0% found this document useful (0 votes)
11 views24 pages

Book 20-Sep-2023

Uploaded by

Ankit Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views24 pages

Book 20-Sep-2023

Uploaded by

Ankit Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

attack

we
when That's head
his pets and dog his feed
comes
to Rahul dinner.
Before Habusa!

ontochargec
and warriors his led Germy
Shadow, peting wos Fahul While

sick Rahul Jit le


make finally we
we
thday tois
day
(2pes,e My

his onOg Shadow. dog,


we3re
pet Rahul's camped
on tribesmen
his and Germy Chief Tribal Once
isCklasi (click)
oneof diseases.
iaThis spreat
to
plots craziest live
ndessureto ermIives acros plagues
spread have known
to forefathers
are Jr.s Bimarkar Germy

(VS)
Java Selen1n lava sEr
ie

pulte statc oid main ( Shing argt)

ava c will

Soure filt ( jaa ) jdk


Crpiler (Tavae )
ench
Byk cucda cclon
cla) ) c lar

Java vral maehino exewe

Clas Loade

(odo
JIT
the OS.
Comple

Com a

Instd
that
the comgled.
ts ha both
comyir
Jave
" out Linux MAC
(exewtale
S cteeh
Qyenators 1the owand
cmeotemah n
ht Smatm
Method vamaler ohoMc caml cau iMny

’ 2

ehat decimal
Value.

Thy Ele

Detaratims
nan
statemt Casee:
theGrte
that statemend
veak cnmdihg) switn(I:(are
To
Comdihm
Clrtshittf
jtt
Smt
(ett
sma th
3
ieS) milec
l
ot
\ogeO0-mle
Onet ottea m will
fr
nme
-tatie add (int x,in)
P t add = X

hm asto,
3
To cneat o
mkdir name

jawa mgm
java gemnone Veluel ue 2

Kn ar
6x422r;
Jvm cmpiley hs bytecodo, comenb e
natie
JVm
then exeutey t.
Flbat Can acumlt
will not be h )

rcaue (ot ill comeA layn oxprmi


OCJECIS
object Comibte to the state

Dláje commatt with each oty


n tho pmn methoclr
Can become
to at
exanga

brplogeos(o] . sea9;
Local vaiae S will not han va

an

ABsTRACTION and ho to olce

Sne behabwAwht t knai methol bs


a
eryect a behano
how Ue]

INTERFACE

ínterach m blw 2 al

UETTER& SETTC

rirat int vare l0,


pulíc int Brl()itmv

bliC wid setat (it vo) varleVr.7


Ati but metow
rreible within

AssTrACTION
the ere
dota kncn an the nn
dotail m ths
the
peptr he
ENAPSVATy
1S th olata Qnd
Snge m thmit amt
hidng intenad statt outia

thot all iteraton


an obcot method.
( no diect aey)

Voymorvnsm h othr
will

emment
Tu Jeae that alows
Nmbe

olyhim
he
emy th
callad

3tahe mam ( soyorgc)


add (I, 3)

stahe add

pahc stahi adol

Stane poyrohin
wll talke the docirim anl
The comgt>Jm ( hunce stahe)
the
an
atmbte
ConstKCTUR'-c nitvct cinhali
Consttr
The commpl shuuld hane the
A cangwch
the class
clau Smp'lyu {
pblhc oid
Svem )

meat
Cople
Cmith must

Cons(h USed to nihal2e qy athbte

empid e id,
epname nami

3
Wn an qtibt i Cmmon lor all
Cordctr

o acerr salay
thy. nau nam. vau

3
anont Vue
Stato
íNHERITAN CE

Child an hae acers


thodt
h pont clay
Bivat atist Ca cannot be aceset

child

eg yJblc c(as Traines cxteno

G2
Jana lamath!
faag-140

clap
fotg
the Comm clar

in dmo racko

rstecked d1fautmiat
Sam clqs

Same X

gockages
Al clayre In

fackoys
al

(oUN
vrale

clan nome

Llh

loadod

tahe

will nt ac
clas dot!
DoN etti
ong
StaBi
(ortrt.
intumplsts

abstvc)

abibact od eat ,

entmd Aimal
blie clar

Cormmic ato 4

Qaemde
Syshem +lal" ea
fütnt claw camot acCU tor fm child
thild t
osibie
MIIPLE HEKITAIE

J
We can ae a nu Itae melateol
clas.
them to
that
Commn cotegey
Java ghermder he to
flare
it.

Thiy That cany ineaict


morsi20 S
mareiga;

hm ev rluce vttrgeta vanase


mdi this awtonahcally com
Stathe

We Can (Sntar) a

Can inmplemt .

elatt

cloy lumun entemdy imal ipmus


t tox-Yate = 0) yuaie stathi
bid abhe(

cvblie onel
Ereny mthod an

abshat. o he
the

hart he wll hane ntefae


clasrer (chilcl)
Jo muhre Mh
ooyned this a is call
t l e H e g new hment)

Torlugr Ainall0;
con plugn
Alvunta , Sineya
kind
oehmos
mehodr
to be
ecomr
an intare clayer whe

puhe clas Funon


new m hod
Whn erer
h he c e ea le.

-Tongag

al the clasre

daBat etmilet?13
3.
a
onylemntat
nutnle Anherita te Bnglemtatin
iteao ha muthod nam
plmhtahn
both

Ovemde th metmd.

oid

We Ca stahe v menod
We can han as
mhol in

Cam

the metms

(qm extend h n anoh olas GY abrart


One clas
cla
CLas
Clas Can

ghuld han attibtu


We claw whm it
and Cycotys cond.
jnrtaneS.
Aosoract
Dnot

vhnee ole

to lack inmatron
ciarr chd e iNherted extonded & competea.
Bnteace 7
dteare can be intahsed (-e Camnt
tneato oaject jwt ike abrhra cA
Can extendoato mutiple n e .
&ntertaces
extenals

class

ha big dll intelaco caact


abirat clar atiter to
otorrgttonttde
Stute
e tue ,

thn cbjoract lassec


sbcot want to
dont
an obicet thm
(orie n0- 22S1,

that need
Set mes thas
ConthbAe to th
Ahe clas d hat doenot
state Ahe ohieet.
VARIAOLE ARaLevg
p e tathe i t add( intoer nmber)

Sin

3
eh S

var aA

Can

aray
an

staic t ada(int.. . nm,


wil) hmw an
nt xwí|! Come any
md int. .. nu
stube nt add (

add ( t x, int... ng becawset will


hih one

wih
ont
EnumERATIONs (Em)
Gondr
There att claifeatn
fnal

Enm do claratiny

poli

hondr
noed to cheate
hurt is no'

Objc+
and on
icy

Gend valus( 3
(hendor
iat char asri

hu abbr abbr

reta to (char abor)5

withut are culed


dead oject and
Collectn and th Obcct t1th
-ferene
Calad
NULL it will

no
hase the

NuL OI NTER ExECTI ON


to we that doeinot eNJh)
ALL loCal vamable, loral2 e s
notatm
an stoeo in
within an osjcet
ane al0 Jhred In hey)
Collecty
Caornba
84 wlll hat
automahi cally dr allocatoy The mmy
co Vechm
an elligse
When dhe ano3ject
hull.
Whm he
meoj )
|ocal to smo mthod
ghe tuck
mehd ) exeet.

a cona the addrro


frodo"
nam2 -Sh frodo")
shig
aldr)

nam |
fvodo
n\

the sam

1. a valu
naml. eyals (namy2)

Shin clay a lierl oo) ich


in
Carhe
tepst
Objtrt ocatd in

He?

rodo"

Heap
"fdo
J

it will cheek hemo 2

Sam a

Hone namy

Mare
ngmå 2
namy l ram2
Sne vale
inernt) chly he
tr pel nt plac that veh in
(mcatnat

S Immtable. (Canhot be chamgea)


L
|Quactu
Cheatiy ob,ec
which

hut-thacliy
Sune JDUre

So
make chay'
Dead
lock anomy
Akhil10oo

rand)
lovo S

fmt eudr rea and .checlc the


and thead tnN
qmet and

hn it cheac
Qnd
qetve, Wh
Tm agan trogoy thsant to

Dbi t

thread Qch: he and

Akhel-S

Tho nconnfny be mre


olead loclk.
thn
34 oanay n Akhi.
acquned Aalo
ne islet
and
hen elevey he lock.
hea come achi.
blok he

'hhead

(Loc)

o lue
Cannt choch ol

Theat4 clesi

Loct

freed achu
(hecte

nmA"
er' i nan- (mcat ("
")

ynn (nam.
|l-2//
split (" dalinite").

join(" dslinitenyar
an

nau join( "#", 'a","b"


namy2 nam|=
noe)" 1
Concat() narm3
etd wiCoileor
l
methodonly
a
"clc"', Ja nome2
hsen ctevawatd be Can
ne
vde
othe be to
Whote
("shig") (ortains "
Index
toig)l
faAeo wndt(h ends
ern

You might also like