0% found this document useful (0 votes)
23 views

Java Questions

Uploaded by

A Ks
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
23 views

Java Questions

Uploaded by

A Ks
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 17
Q wen TW fronds for . Java \ittuel Madine Makird, ts & vatudl Machine thot Crder ie sunk — Java byecodek- >» Lshen ou Compile Jove poygron toa Suspot Ub .Uae fle OI Contour bye Colt 3 IW enderdgond bye Codes ond Con Cheat] the «daw Jour fle @ me one yava - lai fie Con ba Torn FF OY of ee Juet Jonplemenstatonk - , is ib hod Jove propromming Joapape © plostown independent moxkes The Jaye Propoms por table jie bisife Onceh , 301 Orgy USAR @ ARE Jove Rontime Gruivenmert , prev kb on implemersesioa tha qe, Aappor rrp Lbrari 2 adron — Compone ih nepted to Yen Java Progroms- @ yok-- Java Developmen AL, Cavtoink tha IRE plik fookk kuch oh Compilers cleluggas de © rr Jub in TIME Compile wb oO Campon ent 4 42 Wnts envifoament thal innfroveA ths Paxfornence ova applicadind by Compiling byte Codes fo gave machine Code ab Sum time. he jxT Compikn polps improve Ths Poxferonone gf Jara PROVO by compilp oyte Coded ude name —machira cole at Seon time. nloyve (ott 5 Hap Con be ekecused asifvoot ta need @ fo¥ PADI @ ® Why — JoV0 Wy nat Jongeoge 9 Oo pars abjed enki avo Sappore pumisie dake Typth - ope, ae chon Abad , int, float, Jorg. ¢ + heat l * rien! longing a a wshy doch ave nok meke ube 7 poirsid 7 Polnsns ade FS Lomplicoded onbeje T° ube by beginner proprammae- : Tova focuneh On OH Kiel dy yond Fo Ue GY Poinavs Con eke it chalteny"g- poner utilization Gon allo Cauhe Posentiok Compoom ded q Poin ans bed —becoule to* UNA Can LIB, accel msmoly wih tte nebb 7 poised, ence OH xt (==) Java epee | his marod cubed fo nn cry Ff Contenth — b/A ADO 2 he operasn is Ubed day Comparing a addieb (ob seychenteh ) . requ 0% AM SGamert ofan asnota) ; 9 value te ony votdabta. 4b ched ts ot 51 (6) Cons see Two pps o Confsvugart:- @ d¢foust Contrada: 70 argument Conder cite ek be Created by oSgfeult + porpose dy piSTOU RE na inktone elgpausls volueh: gore The Conryae USbsch verdables ath moin yorsabeos ous poromed nized Cont capable jnipraliging tox inbionte Gstn the Poovided yaluck - of Conrrudar slik tekoh te Dupin ent ‘one. cabled poramssriged Cony urs: Ci) wssepber dlalbes pepber clahes Comet WS Jove Poimisived jo tHe yepmren€ types Cobjed). (B) Singleton alk Sige” co jx dak cshohe only ont inbtone Con B& Creosed Of WY ven time in ort uM a ow abjes created by @ SME caleed si Cledk: « . t+ con be done by mover iph Cont Faden pyiak. @ eploin- Public fedro yor = main CS3 ing CF ong ) « publict- Publ meonh thos thus matnod —aaitt ke acepible eg ony dap. * Segic I= main) ww made Atotic 17 JON" do dhor it con be aceed castor Caeating He objed ya. evoid > Ty fh the Jahn Tbe Noid — deprad tha mained calidad OF aman: ts iW the nome of 1% matrod GWA is hearched oy zuM ake Rrerding point fot on applicatin sth a perdtaten — signote + Sing DACI: Uh the | Pm = Pubtd to toa main msthod: @ aifrrence bx arrays & vedor- Avie Lie vetor ® Awygeiss p aoe GC Vedar ww Agndyyroriztd sqnosoniaed / @ vers w Nod ah ib @® arayes # fe iA dhreod Ree 6) increcte WA AMT @ doubling Aye a ih Size by Sov arty @ oy ule orate OP a aN ae Eromanahort df tYehode © ofr] 2 Stucx aes f< He ‘ > _S3aK'- Beh omey- 2 Sak memoy, L oly A hed only by Ok tdxead gf eke cston = Fallows LIFo manner to thee MImty . Bults Crt tee end of exeosion gf Ha thvea 2 Sak mmoly Cotoink Jove Primitwe £ oynence yavableh to abjed nh heah spate 2 Stas mot cone actefh ay ahs jrreods Heep:- Heap mromory ib ubed by all toe pasts 7 W2 appliced on. abjed Bored in tH reap are globally OGM 2 Heap ment Loues from end of pplication exection pShenevs On objeuA created 1A aera Gso¥ed In tow Heap spre swlared daied AOL callesion F ogdom cages ib pan UMA art bored — m flasdZe foe Cole 2 oprrize vA Eas o hej in quolln' noms — ClaAheA- eahi ot acco Conttol on te Code (®) Tove chant ube port because HY ore Grkefe ince a Comblerity J We PEoprow UII, Be @ acon enol) H'- special Keycxord acer of Clalh , Comprar Ubed to suatid dee eh pedi ee ead ed) © Defeat — @) Privode O peal © pubtic CD pyre gave cls £ abjer 2 ~ A daw m ave be bh prit LAS induides alt you efobe A dab Corton frei (variable ) £ matroth +o Wedctibe tha = bebauiowt of O71 cobyed objet Ay abjed GH seta Soak _ cork! erty trot hah Byede F behavrar- - On abet LS inkFone claws - An eyed ts Cbeaged ubng tplend! Ke zooby> + Gee , Rebavioy £ idenhy hab PARE Comadaubicd objeuk (1) opps Conteh in eve’ LD Oph (bo Plopamny Model ox approach Gsade the plopwoms ahe ayoniyed oncund BbjedA Teta “thon Joye £ foadionh, ) Tnheritonte) wh avsone Ub a proleiw ays one daw gogut{eh Fh% PNofperdiek Gnotman am. te child dah agwre tee pobasy ¥ palert dabA. ® ECraaphatason'— 19 mechonikm — Lamapping Gp the daa ond Coda sfogadbon ah 2 Auge Ot tse metho sol oy Q) Absprosio Aprravien A of huchng Me. jmplemeniaso4 vlad fyon, nt Use £ oy Provides Aa doa sionclity +o HL Uso te phil - pSiymetbiln ha alién, ee © polymeathitet’- Pigwoapiiln is tos bik yoriable , fondion oF ce oe ability ya dorms FoR pry Wiple aypaente bho matrot £ Corbsvusoy soprchent tor bebaviov a on objec: manos used to 2 mut have sens = tybe - peedd +o be jnvoKked opty . We efaht marot paovicted by com pihn. _ mrods Moms may oY may 07 bx Aone ah Claw 0k. Contin dot! bed to spiralige tox MOte af on Hyer. Do nor hove oy seh type invoked by imply WON povicad bY Carppiled A oefas Conturol Conta nome rust elo Se fox Aom ak toh Ua nome & Fined kegoord !— special Kegenord wed ab & monn acces mm o0uif I coord 2 ube cau Fiaed, yordable * shen dink Key OO ee ned In jove thot LA ao \oriable ten oh Ontes ainigned Fined) enathod:= (he a mstnod 2 Lechned fired nen ix Cone OF ovdud dden & SHR inh Busey cla Fined do: 2 daw Lin eels by ny — buble bot » con epdent adhar Class Bs AedSoyand firoh in pve. GQ ws £ Sober im gave, Ly JAC) seprebents tre Curent inhine Ff a dah. - Uhed te call tha of ofa construdan of Hr2 Loma la fon ortert KM c uke to acces mesrod Ly Subenc): Sroprotents tae cored en 4 a Pertert / bak aK + ued fo Call tor Kaul CabtVuGen Ff to2 poreyt [bake Sat Ubed 4p aces mtnodh ¥ foo bare Says. Gwe, 7] tomar Cortin volish 0) Con Corb Volush of 4 aye t dove ips clipe ent dota Fyber- @ sie mult Sefined ® siz con & dgnomiceby os #2 7 efecPreon. chonged : @® Aswyh con Zortoin @ fArydisr Con Codan primigted far tyres only objed ah Well oh ahjed @3) Wher is Clkesion Aa qa caletin tb & fhomesoyk Hot adh aS On ardviedure fos Ato ting 4 monipesating oo Group yf aby eds. ubigy collecion gat Con Peyprm vadvous jodkh Like eo weg, Aol ing L rhotion , monipulation , cfeletron etc. 7” Java, (@) pened overloading — ¢ mathod’ fey Zs mutrod oveavtoadiag ou voi ling 9 Methods 7 Ha” home Sak Anord fun & nom2 bub €ath matnod mult hove o Ls, et nom GY — Panemstert - a pasonsor having cliffenent types & over «te Db Compile Hime palynorplise ty sood OV DTU! jna hablo hak fra Aams Bac Oe ae koma rome f exacdty tee hows rember £ typed ¥ paromaderd and era pee type ah e eprr dys « ee ee rca polymorphism / [eae Pobymoapridon slater cgmeng alk (BD alleciadion-- AMocasion ib 2 da ¢ HoR LS 10 objet hove tess OM Lye yg sgprgetinn fo Ope OS Asdociasion conse alt Okjes Apedatzd dorm hak fove OOF Myecgole bear Phere Es Obartip 4 dld objet Lon ner belouy doe Onoda PAT ert aj ed> ly ga Zonnot ovguudz Oo pouak ov Matic modired in Java- THe 7 poisoned: QD single mrbsni tonte © multitevel phot ®@ Lue wrdidol = DAwWHate © Hybesid —mhenitence @) wore Mb ruth ple pphotone 9 cA tt Supported : ao nhwiss To FP toplty ly ry & Aid — cfolb . Hom rrafipte tales a Kno" mubiple — /nheridonce - ; Ls Jour lack ngp abirr to adend pwd siple Sapa PL Psobbom ct, mubrple (nbsys tone gh toot tf mulyiple ponent abe hove TH2 De ei ee ee a ae it become’ Afpoust fot toa Conpilen te ushich menot te ekeuste ftom the eecide chid aM THeYoXe soya Aoebn't Acspbart qupriple Trhaw tence pa poobrlem D Commonly ouamed te ab Blamond__frobler- @ abihragio In Jor i- re ih tra procem F hide? toe — imblementatior pois freon te Ube ond aver Only the dontionehity te hem obstragin @ absrad dake C O-foo7 be adveved ob\yra gon Con BR adh ever J @ sseyacer (loo F @) G2) seine oo Ine aes Inddyface In Jove (iaepact gga nt As a th & Collecron o abyrxad mathods df otic — Onhjorts- Con be adveved in Ade oa gy abityachon an an INOPE | cach matnod As Posehe' bs & dod vot — COntoin eee OY Coripruden + BavicdlY a A Oo Proup J Hoted pajnodh sith «Pty — boli ch- C9 pub'ic — ini@face Aninol ¢ poblic void eat Ir Public Void 5 fasptly Pubic wit SUMO, 3 Absroe Suh O An abbey dal con QO An iwoyce Cannot prods Complse , chfoudt code provide “ony Cok oF OH, ox jul tHe detoilh thot hove ost fea AGATE abstr aasoyfoce ; a @o nh m7 eqend oly QA ae MY engin aan abhrved dam Severed FeeoYated Gonnot hove - jables /nkponte yorvable aa vo © An abyror Jam Con © An Woke Vit be. iy pove ory vai Bihity = muds be pabbs Cor) pullic, privet, PRE vions. 6) connot Censoin Conbhutorr @ @rtein canhy fo do @ a5) USbot is oP m pa? Mb aw on iie@ypece 7 gif, Porxage — UStv dh Ypd Urquez key +t abiroh key fo OV Hoh deen’? Certeun duplicode Key QD far key ton map ab mor one value. @) vshy Jou Shivg ore /mmedable in nakrre ? Shing Bbjecr one immufable ” Naka cr Aimbly meonh once the bbying abet “as Cheated th Mote — Connot he mod ed: lence ava sting an = immutable 6 D Sting — a sping ik an cchjech USK Serato a Seywnce ey charavenrs: by Since Styingh are immutable, Jaree Come Up osith 00 tility lake ! SxpingBailder 4 Ssvingibujpr Zo XS me Shig rreripulations — ealy - Shing dayor 4 Sirteg builder ome chet aber for Siting monifasayer - Thee gna mutable Shjeth , ine Inbetrd , dhe (J. yranodl — rec ah ScebAtring Srsing Bef Shing Bopper aperotind ore firread-Acfe 4 Agaronized. ; Shigaayn ibe ubed i onuctipla fiend Saal coovkigg on tee Fome SHG Spell = Srinpasildon SHEMIOA PI 7h tiead- hefe ond not - Ayadsoriged Sringnuiir ts ubed ina Ange- foxeoded Cr fonmers - SriggaiHen Poifotmence feb ak Conpforey to Shing Gadd — poor | Shing | sswinpepsn ere eee Shing Pool Swing Boiler ~~ Co heap perebiliy | Dnmukble pustabte et quad Soe Not ubed in ubed in ubed in Singh — Hhneaded eewirfonm rauti-qorended | frsreaded ervito amend envidonm ent poyourets| Slows a Eabsen thon Swing Aw. . ing peasld bob Sraing yp (BD) wipro He pow f red 7 G._ POM _jb_o_prpPrera La Che cation Usbsrea, a tse 4 pot of treat Seanninyg POCA. a Pwcess —_ Provide an _Envivenment fod Ts Sceution of _2__tySreedd © proces ~ baked multi tabeing C mestiprrocWig ) - Thread- bake! MATES (uh freading) in Threads = Abore ana home adder SPate Ls A fexead Lppruseges » os A Commoni cation btn fred a Sow: D muck toreading ts Specialized fain of multi tabi Noid Aor pw jp ubed to frort th. Geustion t of tha thread. ( . UeSIeod Noid Som) zy gh hed to % Kiatic void lesb : zr Mess 0 fn SPecfied omont fio. fiseod ve. an avian FF ead fot 1H Void doinc) zy caaiths fot a yoid Aro) zp jp Wied to Ame 8 ial zt det if 2 Hixeod Bb % Semon TAH Ed. Mui thxeodig koa propemmnnp Cortef mubiple — Felks in a Concurrent manner essitein Single Pen. G2 usry Runnable — Inddyoce Is hed In gra] Ronrable iniOYface a hed in gar dot (orplemenhig rush #eoded applicant Jove. Long. Runnable intQace tb implemented by a dam fo Suppor mult poreoding. ger islet om te te OY 7 aonblem evbigg mullr— HEAD ja Java? Ob wy couitigg JU th Noid th Daemon) to Jun ava. Long. Runnable induce at Bend Java log. Tb31€ad Clad @ a yy dona in Java ? ® Yo? nme ne yy net yysnented ony yp Obed audemati cally . a 1 mitted ot Runtint ged mod. _Sypem pee eT On mrush WI Codin hoe Con We kot eta wie a aa abd yuviple pred ee ee Oy) Jgnckror'zed Kegowtd , ble Ch oy ore. gued Con uke craved wah 7 Hak - @ won ve Condor ga das mote thon one for 00 9 NO bo ame Speope fet pockege — PtonCed @ 8 8 pequired om pecgron sok cferdopnert TF a fot cevelohner oy on a mars woes lo mporrarhe mM Jae va on thf aus arom ae fo be the tha. 0. lor. Conboenl® nse implemered bg a del ardor fo Comb aE ig ager. GMT 4 Collagen. BA? (@) whet a composes 7 Compares In I pon wee A” Contry dliporert ge i ne Lopparotax — irdofeCe in Jove aporonge 108 abyech A wer. opined haat compare (cher bt, objed +2 J J cpuald Ceo elemty!] method Used: method “ed. allo ubed to xt @ Becepsion — Gucepsion abnowmed CNtHor. On Etcopsror WU on evert toot Brupth TH normed — flo? oy tok p31gPor" - ti Ao ahyed Utin ts Fonoon af Suntioe cnovihnr Fo pondle_Jumtin, Biepin hondbag rt ib me ert Fach ah Claret fond PIO, FS Eecepron Salereprin te £pbe8'~ a ppobbm fot mainly ocean eae Jax yf Agen gsomeeh O04 oun Opitehion Chowld — ror Cac HR types 7 probboas a ucepen Pol ELD Tobeepion f > Sot Bkcepsin Cus of Hemoly Ev/o% : Chaps ne} Foon CCEPTON » Renprore Buceprion L prtamee EG IN Null pointer BxCepsten > NumberFob met Gicepsion prides os OF Locnd EXCH” Types af Jue Seat Lecepin Hondbay Hex ee sop ee a a : ! Le ‘cephon Oncreded BW Ysin — Evvek sLceprions foot axe Ly ofeepdTons yor are tr EXVeY “a ad lomprfa yoy checKed at iV ecovera bl Checked woe Compile time Liheked Glceperey ob Swen. here wt plow a by glcepion Cle OK — ushane Se iin ae We we Gale ube Hy bho fi Ahoutd place on aa Pty blow akK atone . ; 5 7 mu be fahred Se Lot Rited fy estan caf ov Cain US plows! ubed te hondle the _Gécshie? i meords ee q+ mubr be preceded bf 4 yeteded bf I4; 0 ehh we Cant whe “catch bloX an boos qt On be followed by final boos fod piedlly U5 i= Used to exeoste toa necMaty Coda SS prego ondled 0% nat cated stettan on eespiion Is dh Ee pon BB - " jroo" Ke word & Wed fo fosto2 ~— 7 “in Hee mrgnod ekcepsion. ured stl jprtows" kego0t 4 ab ured fo JeSPe Hook * ekceprionh . zx speupe tet pane oty_ cen 08 SER in ton mined / a lehn' xt? mn acceren- ignabine ole ~ abed wit sated geeks finaSign0) = fol ge pts rasiod “in_geva SW Jeon procenirg jubt GYHove oer & gabeg® colleued- 5 re Larfeteah te, doors agivaes csi _Ywhped fo owes 2AM ip depreusion - » Gtecwe jus ye abjey i2_Whhteyd fined s fines we Kequootd phir pp ubed +o apbly obvi

You might also like