You are on page 1of 7

Page No

Assignment-2 Date

1.Ezplain a) TVM b) JDk Byte cale


Saln JVM (Java vrtual mahine)
JYM a_viytua madinethat cam baule
4ama bytcode dE u _a _ode vaautn component
4asa AO{huwe plaljonm._onept of wnk once Na iun
amwhuu u ed.

yanu codeC.jana)
Jnac

Compiler

Bye code (clan)

JVM JVM VM

Window CUindos windos

JDk CJava developmenk kit)


u ib havie no.4 tooh for um deuslaprent 1uchu
AppleVviuwen Enabls lo 2un jasa aplet
awaGi 4aKaompiln
3. va i4Na inEeyprln
4jaNahipmdues headu file for we of headt methal.
aNa pijana duaMunbl
6. ANadse naka HTML doumtei fp J a AUCA Cod fhilk
1jdh Jaua duhuggn hilpt o find evon.
Page No
Date

Byltvade
Byk code in jana u the namon Java upotypm
independent , a 100n JaNa propam u compiled
bykodu Genenatd. To be morepreue a j a
byltmde hacine_al Kin form cadanfl .

A bytod in yana t h e ihderhetion Ct for jana


viytualmauhire_Cmd ad Aame a mblun

2wiheaample, briy all datatypes ef Jaa laguga


Soba
Datatype
PYutive On pnmiie

Stnng
Boodtun Numeu aUlay
etc

chanculeer Tnken val

Tnkgu floaking pain

Poplean Chan byte Short ii long float duble

Boolean:Tana Lesdatatype Boolean_tor logial vabe


whie auput_can be uthen t u el puie.

Charaka Jan uws han datetyge to stor chanadeu.har dakalyze


e JaxaE uusthat
uicade
a
to napiewnt chanaderuEm chan i l6-62.
Page No
Dale

Byte:Srnallust intqer_type u eye. Thi u Aignd e-bit


datatype byts ane usfuilfor uwoRing ulh Atram
datu b ~ilh.
Ex :byte

Shot:t u a Aighed lb -bt yp. Ths_datypt u uedin.


6_bE_Compukenu ud veY aiuly _Und.
EziJh0ntah

angT 4 lit_kyp b uetul in_all hot ocasn


whee ivntu not_nough: 7he Mange _ long u lagt,
Ex :wng a

floatSeapis Aing preusinVakw thak W 3a bit


atorag ZE_u ued to ddare loaking pank_ vauiable
Ex fleat a l
Doubl T wes 64 bE valuu.
EX deuble ao

3Mention_andbely enplum the (ontral_atakrerb in


gohm Lovtrat Atalemets
diape if statemenbr
aAtatanent
3 ehei stalemernts
4.Neitrd i he_staknents
5Suitdh skaemuutes
PageNo
Date

. Aateomune

Syntra: f Clst condition Ez; iE (a=3)

Sattmet yttm.out.pmBh a u ewn

dstatrnut
Syndax: Fltt conditin) Ex ia<b2
L
A6atmnts;
3
he ehe

stakmun Sy1em. ouk phnthal bu lhan


3

3. Fe salment

Dyntar I F EA Cordition) ELpeantuge >75 bKpoantege


K=l00
Kakmenla4
yltm uk.prnlba ( "diutintin "2
ehe ieClet ondtio) ehu iflpeenk age >=35)

tatenent DyAkm.but Dhnthapan")

ye ele

tatcmunk Syim. eukprinthfail ); |


Page No.
Data

4 Nutd il-da stakment


Synkar t Lt condHon)

El adinon)

daenen Sftan 0t.prithnlralitej "+ nuum


3
else

Jtakunend OyttmnuA.pinkendus >1 D;

ehe ehe

Akakmunb Sugtemnu-pnintn (valu >10 9;


3

5. Suwitdh Akalements
Ex

Syntazsuith lezppin) Swalntnum)

CuL 1Makenenbrak CaRL Syskten.ut.printnl'one)


CM Rdlatanui; breat bak
CaeoiSyIkm.out.pnintauo".
break
detault:dyalt hakeut dyaut : 5yran aukpnmkh("am
brak breek
Page No

Date

4. Wih iustrobjon apun teum bira_and continue,


Gpn Break_dtdlerment
The
he brtak talenent in jara u hed to terminalz
trom the oop imzdiaely. ahena brak dtekeane v
emomtevd hdide a loop, the laop itenatiom op thene,
amd dntol_uturvu ton the loop imvdiakly to the
fiyat Atatmine atin thi loop. BuiLally, bréak Atakerurt
ale e d in situalh n when we ale not Aw aat_
he actuul mwotl ituauha for the loop.cN We
wamt to tenminate the lop r d om doeLOrdutgn.
ue_an e bnas toeanea oop.
ing btak _u a fom of qoto
uing break_to koininake a gune in dEh talvs.

Suakarc bitak,-
COnkinae Maktment
The onknuu Atakeent in jara u und to_Akp_th
LAnyDnEittnukin_ga oop,_u Can cotirue_dtakmet
indide any type qLoo 1udh fowhilk dnd dowhe
po.Bunically ointinu stakenant wl Ud in dtuatos
uhn w umt to_Lonttne the loop bu do not umk ha
emauning dtakement alton the ontimu alcmunt
Lhing Conktmu t Conkrmu a_loop.
Minq
Ming conkinu as a laltled orntinue dtalennt:
2ytax Conkinuu
PageNo.
Date

5. Menaon all the yama bur4 woch.


SolJaa Busguwrdu
LSimple
20bjeet oiukd
3 Dubribuled
4Tnwprked
RobustE
6Seun
rdhutetunal neual
rab
hah pezkotmanna
1oMalkithitded
LLDynaic

You might also like