You are on page 1of 20
q | Qo: IVM Tava Vistuel Machine) Aschitectiue ae Be ee ae ee DURGA SOFTWARE SOLUTIONS SCJP MATERIAL Viatual Machine i— at fe a coptware Simulction oF 2 machine which Can peif-orn Operations Like a physical machine. Thee one 2 types of viktunl mec A, Hovdwate based (A) Lytton bareal vittual machines R. Applicction bated Gt) Process bated vittudl machine techtere: based oh rCystem bated vitted machines! Eb provides sevetel legion syitents on th came Compal 01KT Strong feoketion from each olf, [Eat eve Cleetnel bated virkurl Mackice fol LINUX Cytteme) VWoke Keo Cloud Compuching ett 2 Apeiication Lated GB) Prous bated vittudl Mechines > aoe > Thee viata w machines act af rudhine engines wD un a portionlar _ \emquege applicctions, Tv acl os Rurtine Engine. to sun Tove applications. cexipling lerguege applications Like Pal @- cre Ccemmon Lamgucae Ruvctine) acti as Ructine engine te min 2Nek_appHostiont. @- Parrot Vidtuad Mochine alk os Rusctime Engine i zu ) avm i— wy Tk fe the part Of TREC Tove Rerbime Envi Senment). 3 Te ts sespensibte te Lood 6 Juin Tava application. PLOT NO.56, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 a DURGA SOFTWARE SOLUTIONS SCJP MATERIAL Chars Leoctr claws Files Galesegttom 7 ek ae we w one aor a we ee fades Memotiy Odeoc oh. VM 2) clas Lege £2 agetens > Chy tno Wonton, 2 feb system fe vesporei te fot the Following 3 aativiti, a Looding & Linke try 8. Dathintinabion @ Loli acting i — ieee) means, Acadling clay fius § stele Conespencing binary aake, in method ahea PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR,NEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE:9505905786 z DURGA SOFTWARE SOLUTIONS SCIP MATERIAL, (| Fet exch claw, file, Tum will Stole the _ Tnpetmation en Methnd ‘ten, A. Futly quelified name of component Cetars | Patixbare | enurn) Ro Faby quolified nome oh poh Coley [PrtetfpacJenum), Ts schon file relotid to clay | Petrifyase] encod a. Modifiers tbermation 5. Method infomation, 6 Vasiobtea | Felels information. | 4 Conttont el, fo tbe. Leoebing chow fie Ivin_evectin_om okjext fot thot loaded clues on “the Hosp menony tte tyme joven tengCletd: a — Metkocl Aren Hemp Memeny (| By malig THE clans object programma cam get corresponcling claw inporration Like fkr nome, Tee potent name, contructors infornation, methods impormnetion, fields Information ett: ai Staing se new String (Votasgat)s 8.0 pls. get Clan Je gptNamec)); 2 2 jeveteng. Ghatng. Ss PLOT NO.56, HARSHA CHAMBERS, SAI NAGAR,NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 3 DURGA SOFTWARE SOLUTIONS SCJP MATERIAL I I Fot. every loockeol tape only one Clay object wail be cre atin! , | ewentough we wating that cla multiple tires in cus application, | @Liokteg > _ consists of “the following 3 activities, \ Me 4. Vexibicction } 2. Pheparetion \ 3. Recobction, | A. Verifiections— > Tt fe He prow of ensuring Ural binary represectetion of « class fe chucks corvest of met fe, Tym will cheele Whether the cla File qoreratesl by voli compiua|mot omd whettig clay dil prsperly dora ch wot. > Eoternally Bytrcode verifier Te veipencilte fol this activ [> Bgicode Verifier fs the path of Clay Wader cub cyetem | Ef vertpietion fail thay we will get RE saigicg, Jove. dongs VerifyCrrd 2 Prep: a > Tn this phase, vm welll ebocate memory fot cheis tevel Shebic Voit alles omd attign olefanth values (buch not ctiginal values ausignect “ts tpt vedtnbtes), Netet~ OAtginal vabus werit be aigqed until fritialiettion phase 3. Reso babi . > Bt ic ta prom O replacing Symbobic nang vied by loacled teype wits Aiginel references. > Sambobic reperemus ove vesdlvecl frto clitect references 4 fentching Trough Method Aten te eco the reference oti. ear clay Teale rcv mCthinges aq) String £1 = new String Ciddy, & ante) OE PLOT NO.56, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR- 4 10034, MOBILE:9505905786 L [ DURGA SOFTWARE SOLUTIONS SCJP MATERIAL | FA the above clas, chats loacles Loacly Teshclas , rig.clan, Gtadentclats amd Objeck clan, |? The names Of There clanes are Steted fn Centtont pool | J Eo Reokiction Phase, thet nowes are Seplacee| wil attic referentes com Method aren. | © Tartitization:— > Pn this phase, a Static vorioles wail be ouignest ith ott Volar 4 thstic blocks vail be enecutid from parent te child, from bop to bottom a Test charg. heading Sh Saye lars { dete - Whi Peed inteing 4 Tnttitinetion vy any erred eccure they we wil ge RE faging, joven Linkage Evie. Tgp Of Clos Leoolere : j e loaderr, p> every class backer subsettens a ee Foltrrsing § ass rs, 4. Bootstrap | Prtmeteied Ans Leachr 4, Extension Claris Leacker : 2 Appticztion | Syston Clas Loacter [ Rechrap| Paimetetee) Ole Lev Thy claw Loacter fe responsite ok Loosking Core Tove APT clases the chawses preset fa 7h jad. i PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-S00034, MODILEOSOSDOSTOR s DURGA SOFTWARE SOLUTIONS |SCuP MATERIAL i H7 Thy Lecshion fe caltel GBeotehep clay patty ie., Reolctreap Clas Loader. 6 responsible for te Load clauses dom Rocktrap clan path > Borkttrap clan Loacler by cepomtt ovailable in gym & it TS Tnpempnted in native lamguoges Like 6, Ort preted) eign occa [> This clas Looser. fc the chit Of Bootstrap chars Leachet. | 9 This clars Loacler te -responibe fot to eS eles from cenit pet. C Te \sRe| 2) ent) [? This chars Loader ic Implorertecl iy, Tava @ the corees poncling sclaes File wowe fe Sun. mise-Launchel $ eatClau Looser. claws . 3. Appleation [Syste clots Loaded '— Bt Te HK chile of | Eatension clas Leacke. PH Ce epencsivu fA te bead clases from Application clwpth | TE Tademaltg uses envitenment varialle lari pei : [? Fh fs Trternally tmplementeal io Tenn bg CON pteple Sth, aera pncting relats Hla owe. 1 surmise, Launohut.§ fppClads Leodet «lacs How Claus beaker Works ? 7 > 14 Loolr follows Delegation there principle. PF WhenewrA Tym come acres a pastioulat cla -firtt tk will check the ceorresponcting clay fs clreacly heackel of not > ib tt x ctreedy loacled in Method area they tum wilt we Hal Joactect chars > Bh ie te met abveacly Rocoled they Ive requires claw loader setqetens te dood ne prtiedan. Ras iy clay Leccler subsystem handovers th sequest te Appkechion Clan Loacler, PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE:9505905786 6 4 as \o Bovkchap Clos beoclt seotohes iq Reskrtap clan path (Jor are J— eb the specified claw if avallale thy fe ein Le fooded 0.13, > Cohesion clay Loadet will ceateh th adomtion Clas pat Gror\ 4 Eb the vrequined clay is availble they ib wim Le doaclef, 0.00. > Application Clas Leacler it seatch tp applicction clan patty fol | zh the cpeeiftel clan te availtlte ths Hb OM be toadkd ow, DURGA SOFTWARE SOLUTIONS SCIP MATERIAL > Arpltestion clay Loader cleligats ~egusst $e entenctin Class Lowder] 4 eatenion Clan Loader fntem cllegats tial equate Reokctrap Clan Loader, BL we jad) Bovtetrap Claes Leader ddhgets th wyatt ts Extension Clas Losclit, sRe\ Lb\eat\a), Ertension clay Leads debgatis the vequat to Appticction clas Lowoaler. the wequised vclow File. we wil qt RE sayhag, Clade Famteuaption @) NeChaas Di Cweck. | Beokchap sestchs [eoctctrap claws ptr I Chass Lenola | “|csox\rrel titre ja) Deleg te Oda Delegate oie page Application — Eevee ool rae] Che Chass Leacter PLOT NO.56, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOI LES, MADHAPUR-S00034, MOBILE:9505905766, DURGA SOFTWARE SOLUTIONS. SCIP MATERIAL ea: claws Teel L ee ec) S.0-pl Ghaing. lads get clan Lom): Scop CGhulert dans. getClanlo aber): y Sop (Tutt, chars.getClars Loacler 3); 4 CAscume Gtucledkolan prevent both extemion 4 Applicetion clus pet wclere a4 Teth clans preset only fo Application claw ptt) FA Shaing ches 2 9 From Bootstrap clay path by Kooketrop Clas LoackA. olp t null. Pot “Stuclt clew , > Evem Entmuion clon path by Ertension Ray Leake. OP: sun.micc. Launchrd ExtClan Loader @ 1224 FA Tek, claw, ee Op cunsmige.Launcht4 App ClausLoacd G2 o6% No t@+Revtthap Clay Leal. fe not Teva age ond hone ne get fot the» Fins S.0.p ie malt, bu Entemsion 4 Appiction Clas Locoley ane Teva ckjell 4 hints ne ome getting th -propu olp ColmaName@ heractecimal Chiry of» hath cod). @ Clay Loads Sabeqetery vil give Night pAlorily for Keokctrap clan patti Wty Entenston claw path followed by Appkecbion dun patie What fe Iki need of Custornixert Clots Leaolit_? > Pefautt Clots Loactert ill Load sched File onty orte even thougly we ore uatng mebtipe tims thet claw in oul program, 3 TF Trt, Loncting Clas Loads Wer} Lead upolatic any > ] |S ue en define ont ow Customized! Claus Leader shi te cstomixe DURGA SOFTWARE SOLUTIONS SCIP MATERIAL Ty fe fe modified onktide Min chfaulh vlan File vertion o class file Cbecon «class tie olteccly there fo Methad o4ee). he com Aeache tKiy problem by dbfinirg owt oro clas Loach. Th main aclvortage Of- cuttomixed chats loackt fe ne Can contacl clatt leaching meshamitey bated en eur Aywitewmont, Wa com Loos clans file Separvattly every ctime. 0 thal- updatid vevetor, avoidable. «> Clons Leeoing Customized Clos Loaeling. Deg. cay ” Dog. tony "Dog clay Dog clot Cuortenized Clay Loackel 2— Hew te dovckep ou oxy Sottomized clno Lancet i oe Leaching mechontén, / > we Com difine ont own customined clo Lect, by ordemching jova. tang, ClavshoatrA lay. poblic chars CastomixedClaighoader ealinds Claileactr t , / poblic Chas Loasdclars Cotitig Crome) three ClasNotFaunel Exception Ly Read updalis) clos file ond tebitens fee ‘PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 q DURGA SOFTWARE SOLUTIONS SCJP MATERIAL chars Clemnt— eee ee Og dy anew Doges; Customized Claighoodks. cone Custornixed Clasloachs Us colood Chars C00g"); cs hood chang Coq"); ‘ [ 3 Note:~ Oruebly We Can alefine onsen customized clay locoler rohile pewelo ping heb cetvert ond epptication ceqvert [Qi What Ue the putpor of jowmtang. Classlencer class ? fost Thy ches ott ag baw clans dot cleaigning clots Leackeer, Every customized Clan Leader Ce Browd enctenel Jevrnetang Class “Lecce ely, ditestly A Mdisectly. Kaos Mowry ae Sh > Whenever vm suns a program ib needle memory to ere several things Ulee Ligtr cole, object, vatialles ete. > Total Ivm memory dganized ih the follewing & cdipetive. A. Methed Area 2. Heap Atew 3. Steck Asean 4 PC. Registers C Phagrrainy Countit) 5. Native Methed Choke +. Methad teat SF Matop Aten stotes Runtime contant role, variates 4 mettods information, stabi variates, bytecode OL clases 4 Trder Fetes Lonel eat bg ave. 'PLOT NO.56, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE:9505905766 10 a rrt—~—“—™r—*C—C—C—C—C—Cst—sssCC“‘C‘Er—s=SCCCCN J Heap Area will be Created ot te time of Tv Startup, DURGA SOFTWARE SOLUTIONS SCIP MATERIAL — Thy memory ken Will be chateot 44 all threads Cohated [glee mmemond > Thy memory when Need ne be cortinuens, 2. Hep Aten 2— > Bb i the main impottant eed ohea ty the prepemmn. —> Heap Aken “eed nok Le continuous PB il be choked by aU threaoly Cited | chatecl memetey ). PAN cbjecls § covrepenching instante variables will be Stoled. oy Ue exp mem = a dn Tava is an ae awd hente Arrays Will be ctoled cro every Avvay oa SD ——- pean rte gisele oeap Merony shabistio: SA Tova epplicction can communicate with) Tv by using Rewcttrne oj ety —> Ruvbime cha is a Singleton clad preset fn java, > We can creck Runtime object by wing getRudtimee) matted Rudtime r= Ruch. qt Runtionec)) ——————— PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE:9505905786 n do tke Heap memory DURGA SOFTWARE SOLUTIONS SCJP MATERIAL One we gob Ruchime olga ne Cam Calf Phe —follonsicg mettods on chek object. 4. monMemory CY; Tr veins no. of Lyla of mar. memony allecatie| te the tenp. 8. bokal Memory) Pt vallony nw. Of bytig of totol memory oltecatial “te “The Heap Cinitiod memory) 3. freMemory (5 Bb elie he no. op bytes Of tree memory presed in the Heap. clay HeapDeme L es vm) 7 feng rnb x Lage 10245 Rudtime vy Ruatime. getRunbinec); Sep (&moa Memong £ oho maaMemeng (fink): fe e a Tobel Menem eee botalMemery() | mb); OD (Y Free. Memong br druMenongt) nt); yor Clee! Memory LYE Cr hota Memanger—7 de Mernong (lent); a OUP Cin tems: of begta) > Mam Memory : 666502 total Memmng # Free Memory! 44457 60 supsag Certumed Memong ! 18136% Off (inter ot me|ls)t Mon Meow 1 63 Tetel Memory t 4. Free Memory: 4 Coneurmed Memory <0 , PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 ee DURGA SOFTWARE SOLUTIONS SCIP MATERIAL Neket— Oefartt Heap cixe 64 8 we Tai tow to seb man, and min. Heap size? | Ant Heap memory fc Fined memory 4 bated on our Aequizennrent ne cam tnovease. + decreate Heap cine We can ute the ellewing Atay oftk Teva Comm ancl, Y@ Xa: Te te maatmum Heap cine Tee» mae Memongc)~ Caz java, —Xomatzgm HenpOonees > Thy cmel WU cee I2EME od man. Heap Size. lp Mom Memory 112% Tote) Memory 4 Fees Memny ¢ & Gertuumesd Memon + 0 @® —Xmst To sek minimum Heap see fey Evtel Memory (2. | Ge java —Xmacaro HeapDemoel Co] > Thig emel Will Seb min. Heap sxe 24 64 MB. Jove —Xinasze —Xmseqm Heap Derod OLp + Man Memory 11+ Total Memung + 68 Fre Memory + 65 + Cortumed Mewrmy £0 3, Slack. Membhg: A> Ft every thyeed IvM will Create 9 separete Strole, Ruchine 1 Stee voi be eve ated aattom abicabhy af the Bre of thteacl erection, SAI metkod cold ane correfpancting boca vartalss, Trteime diate Aesulls will be Sthed by “tye © Stoke, PLOT NO.56 HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBIL 1 9505905786 DURGA SOFTWARE SOLUTIONS SCJP MATERIAL ' PF Fot every method col a separate entry wr be adhe to lhe stack od the entry fs cath Gleck Exams, | p> Abt Compiling Hol” method the covreponclit dro th stack wil) be removed. ¢ ~y [> Abt Completing ott metkad calls just Lefote terminating the thread auatime stack will be destroyed by the 3vM. } J? The cléte, stelecl fy the throk it privet. ty the _ thread e) te kn Steele L | Freee time. Rustin Rubin Steck Staak Stoel Stave Mernoty Stack Frame Steuctiure, ARN A ARAN I> Gack Stack Frame certain 2 paste, a. Leced vartobe aa Cperand Stack 3 Feime Dake Stack Frome Boel vexteble eg > Bt contains all partomelo ond local vartablis of I method. I> ook Slot in the atta te of bys. “ 9 Valuer eb type Int, Heat ancl meference ocup, — one enchrye to PLOT NOS, HARSHA CHAMBERS, SAI NAGARNEAR IGC MOBILES, MADHAPUR-500034, MOBILE9505905706, Me DURGA SOFTWARE SOLUTIONS. SCJP MATERIAL, Oe Vala of type Leng ome cleute occupy 2 conseccbive enbries bo onray. 2 byte, Short and char valuer voi) be Converted “to Tat type lefete oy Stehing ond eecnpy, one. Stet. He Wag of atching. beolean values is vaste doom vm lu pric vet wd (ats 4, mg L, Chyat 0, bye b, outs A) a J > Gut most ef th TUM felts ewe tet fot berlas value. Cpanel OS am wees epand Shack as woikspace. > Some. Inthrustions can push the valu to tke operancl steele owd seme Inebucbiery pop wthe values from operand Stack amd 0 Stole. vuull onee ape bey te opecanal Skeet, Preqrens Kefde Charbing ei ta o Mita teoel~| ¢ “e tec! ol te vostella {) a@ Pe et Abts fod: Att, fethe 2 Leco} of tee eo vonieMe Wag ae pores 7 Peel FS — PLOT NO.56, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-SO003#, MOBILE:9S05905766 t is DURGA SOFTWARE SOLUTIONS. 8) Frame Data SS Frme Dats, containn oll Symbclic mperentes Contact pool) Belatil to “thal metixad > Pt also contains a referents -ty enception tale rohich provicles the corresponding enkh Leck trpernahion fn the cave of enceplions, A £0 C Propper Court) Regittve > Fo way threo 4 seperti pe egietee Will be Crentid atthe Tine of threes! eveaction, I> Fe ietexs contain addver of current” erecting inshrakton . One trubrachion creection comphtig outornsbicniy pe wgictet, wit be frevennentect “le Roll ccletwen of neak theleudkion, Sbishie. Mathed Spud <— > Fo every threat Iv Will cvecte a Sepatote native metbeel Stock > Au native method cally trwoked by the thread wilh be SteRenl bo he Corres porting native metho Stack, SCJP MATERIAL, Nets O©:— Method Arca, heap $ Stack ave Corufolered as majet memory atead WAt pregrammerls view ©, Metksd atea and heap ater ere dot tym whe as shack, Fe veqicters ancl nstive methad Stack are fel read fey one Sepatote heap fot Ivm, ore sepatott mettiod tea. for even Tum, one Steck fot every thread, ene separate pe wegistes. fot eweng thread and om sepata native method stack for oemy tread, @ stetic varially will be Stoted im method usa Whe as Protonce vortables wil be sited in heap Mica avel Aoeot Nortelly win le ctted th stack nlea, ed | PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR,NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE.9505905786 16 e = Jo This ite contral Component” co, rv. | [PR erecution enyine te reapenible te excerte Tava clas files, iP nection engine mately covtatns 2 componente fot cnc cocking extemal got compiles maintaln a Separate cour dot (YP Whenever, JvM come aero omy method Col pitt hap methoel “Jo Thy proan wil be continued fot over Bomedi. i 7 \7 mi oda ty , THT compilr Compils the metheal amel | DURGA SOFTWARE SOLUTIONS SCIP MATERIAL 3 Excotbion Engine Towa claves. AL Tntupre RQ SIT Compihs 4) Catupreter | Sey te wapenita ty teed bytr code ond intupret foto mechine cede Cristie code) ond execcde Pit” machine code Line. dine. 2 The proton vorus fnterpreber fs fe Prterprelt every time ern sane melhed frwoked mattipte “ims, which wpe chutes PUfernante. of the System, : >To overcerne “thy problem sun peopl. frtvoolucecl SET Compiler fo tel version, ae : Te main puapote ef TET compile fe te Improve pupormance| melnod. win be fatupretel nenn the interpret. ond TOT compiles. fnevementy tae “4 ie Corres ponaling count variable. method. One if ony | metioet cae reach) tyreshad value then TET compte Tloatlhin that method ie wepectidly teal method ( Het ~cpot) the comresperaling native cocte. eee TLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 IF DURGA SOFTWARE SOLUTIONS SCuP MATERIAL i Newt time, Jvm come acvots that method call thy, IVM Aivedtly wie native code ane enecutii it Fritend of interpreBing onte. mgatn. Co thnk pethemmance of the syste | wry be Improvect | ~The Threshel} counl- varrzi from tym te vm, Some advanced FET compiles wil recompile genni nate cade of counk i Aesks treshelel valve Seeero} “Lime. So thal mote optimined machine cole wit be qeveretd, 7? Profiler vohicty Te ty pat ce TET compike fs ou penile te ldectby Hot— spate, PAM interpret tote preqran Line by Hine attest once > TET compile fe appli cal al fob Aepentiolly Trek ep mnetkocy but not fot. ewery methad. Kzecttion Soe, — TOT FLA Dnteaymectiatze Entinp eke INE CTova Nabive Fetapeee) > gyn alt brictge Cmectint) ot Tava method cll and covapenctiog native. Libraries, PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 18 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL Chocks Memory PC Registexs Nakive Method Checks PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905706 ie, DURGA SOFTWARE SOLUTIONS 20 SCIP MATERIAL | PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786

You might also like