You are on page 1of 59
a CU nest over | AE "waite once : “ antyidheht "Meduce > once, UN ciny where.” nebunt lich ieved AB bypecede ome) Ive Cqnva vinduel Mathing), coda i¢ comfiled int? platform «inde censlent wetede, which Cad eum on amy Apvice ot platform Hos ce compub ble Jum: : ve nn oxcarnple ‘of orenadon— pverfoading in Jove y exempia of ofenaden avenlecding in jane the + in being uted ea. both adtition [fx runbecd) concatenation [-r skurgs) Me os Gy ve D ghaing gp“ Hello "2 ME CAOtk, : Chaing ae” lee: (Maaiven) Ghaing 69 = SV 452) ‘ Cooncatencton) Pointer? curd piiminated|’ from’ jove = because. —_— @ pointer leu)” for contusion fore & Peajeaennes © ringer ee cragh te oaagawe cous © fointecs peeak setunitty + 2° LAAN ne cbove : @ pssume clowble CIE x: Length ond x C97. Length 7 wf, x. Length neters to, Le Jex = ned double tuts), het ant fame of Ait, der: A which Se xb a7, Longe elon Hf ere fungih of tht inner a Dak indox 2 of Ae ude Dara whith 1S 5 ; © wor one tre defautt values foe-dala Field bov2an type and objay tyPe- 7 i ®. The olefault value fon dub fielol of & boo i> false «The defadt value. fon dot £ ra — nw’ ld ef & 2 Me Ane peagrn e nested See” spulement @ bat is 4 studie moto 2 i fh J Gower, static meted eens wo tte luk cxethon Ham "ww omy Specific melante. of rt cleat «These rntthals an we called dinechly wsing tne clade none wwitnoud Ye need qo insluntiahe cm objeck of 4h _y Belongs yo class ra “a wo imsbunee. pe penden Of = camit acces! qun-stakic members clinec HY —y commonly vseq for. VELEY Tadles - what wit be The oukped class Test § y usc. sate. vord main(String anys) ant Xo Cont) 198-95 5 d byte a= (eye) x Suystem « Dud: print Lalo); or elas. | tae ' Unit 2 | @ wnt clo you mend ky ¢ constaurtor coded 2 tah Basel MW Jove iS Co Special type of ae On obseck of w class , Tk het | : We class one clued not Wave ga ee oy ang, Calo} implicit when an obje t 1S Creates} hy ‘now’ key won) : qwhen it is ® what is inkenttance guy it a 3 Tnheaianee is 0c Fundamental, concept o obj ed ft ; Pragrnmmming Wha’ otiows G mew? class oe. child clutt fo inherit all the Proreahtes , be howi ount om Vr Fem Ane Pruner Cust a ee Used by Prognemment ! os G) code Reucobility — Gu ticaaachy and Gs) Exjension cmd specialization , GY Polyatenphitm O® erplein widening cing owo wing of Paimitive basic) a dokadypes - k @Be widening (implicit) Conyensi¢n’ This type of convension Occrins when » & gmmallea da bye 8 eenverted mito tm tanger: ‘lode ie eo} Fon- use| by & i onganizadion Th huppens curtormnti cally without the ne explicit casbind - < Ge int. & = 10; eae a Bo acy [Cnt +0 Song ) ‘ (Y Noanoving( ex lid) conversion’: “Mis conversion OCCUMs i jon Ockuak “When! fonjen dare +yee i conventes| into G Smaller date yee | TH nee 4 explick caste | ax, Jorg a = 10005 iat beCintvas N° hong Jo int) elk cen E iba een Gk ee aie cea \ea| multilevel dinheaitance, class Af 3 class & entensl Af ote ¢ extend 8 f v 4 ; cleuts ¢ i Hierarchical Inheritance " y a single let fonmini phen muitiple, classes inhenit from O hiecachy wheat mull clewivec| electtes chane Une Same fPanent cless ea fe less Animal ~ Le lass Animal § Biss Dog extends Anime 4 7 = 3 \ fre test ra] cae toms | 2 i GY Multiple Sabeniten ce => Tove does not sucyort wnat <2 6 static block 9 wen sk is being casted > A stakic block in java if & blok oF code which enclosee| on twely yaccer('§ 7) and Paece de 44 Bese, keyword) « 1 Is pont of o& lass, cmd 4 © Rae purer] when “wt elaae iis Voosted nto , $e a ual Machine COV). shalre’ ptoeler ouae || mMAVIle inheni Hine + I evten.. clogs membens class Tnnenc lus 4 Hrwnca alert membent po 3 % Public cles mains pubhic siabic vord main(Caingtd angs)f Ordercc less ouberObjeet = new Outen class C75 Outertless-Taneaclats tmneaobject = Old eadhyert= ; ned Tnnenk lease) 5 3 6 Explain method overnicling . AwyOvernidiny 1S a Lensant- Vnot, ellos te cubeloas on, chile] lore 0 Provide Ch speti tic tmplementation of smedred Avot «5 oleae Orovieled. bY one. oF 14s fone classes. when a raed ho an thilel clay hod Same. ‘narme, ; AL. Seng, Mount-metent anol the. came rebut Rey ae G method on es parent class - yy it also! enon ot eum Time Polly morphism » ® uy Jove door out Suptont mullet inheaitonce vor mulliple petit i vrsplem en fy but does con implement mali ple enter ge fom of mul ight mnhea| ee ate ag Veid medrol AU: anienace § , void mobnee| 8 C1) else MYyeluss implements A, af =>) Syalen a Pubsic. void. perectat i ‘ a I code : “ Pubsic Void medveds CIS Mevdt F ae “antent 3 } es @]) design o class 40 overtone A fimction volumet ) ad dtl + @edouke vetumec cure a) —with cadiad,*e? at On aegumen Rekunns | ene volume of ¢| pheed wgin » ve et ne. 5 dhe. fonmulle + @aoume veiume(clourie h, double a) - with height thts ae te ot the arguments, eokwunh fhe cuboid uA he formula. : ye. £05 Fee Pubic > Fien allows Ce mem bee W TRE t public’ access speci fe Class ,nedrod , youiahle 21) 4° be accessible fer Piirohone wah utara See * Somes: PO ge one) oom 5) outside tre package - : os WY) classes ,metnods cind svouiables ees of ‘public ~ ton be accestes| bY any otnen- clalf Om (alee a Privake-> (UATheS private” access Of Ht member WO within te sone & (6) erhode, Versiahles On innea classes moankedl Och private end pot axeceasile. From oubside mma cleus Hey are. debinaf om owen within the Saw oe Whok ant He Hyped “of ora 5 an » Jowes am ae ung. Gadtegucized] specifier mestricht » tht. access tly cleus only. ace Mud One. + Unchackes| £xcceplions One 2xe ; checked ot cumeiter me» “ese Pucaplions 6 wally, Occ due. #6 erLegreestm on ing gan s or cont aa beyond (Vt, control of We priogreomn | : 2 uilpoimeneacep hon, Rruthmoli Ce xce pon, Arenarptadee Dudes Bowed Exee sto? - © why cubstrntt eluts Wt Constamtton oven Yhough wu an cneote whject 2 fot) Construcer 'S awry calles} by i class: Nome im oo clus! tole OA congrmcton 4S wed 40 mibelie an onjet not te build Ant. object + —) Apsicact classes elfo do have & confnucten + 66 Tf we do nok dering any constuutwen insid@, te | absmurk clear Aven JVM will give defoult constuntore. to We. abidnatt cluss - GD can T smpont tnt some package, | class Awice 7 ened Sve low) Me parkage gute gif untime 2 os ypu con imyont Are Same. package. on pei oustiele imu without @ousing — cinty, issued e Howden , We = ved Cove Vieut Tare wi) not Yous ae, geckege or cluts mulliple Ae et : a sounte ile contain enone. than on FE AS Possible to hove mone. Yhon one cl no single sounee. FIC But eath “eosnt shoul ol contain. onlly one public class a Of Hod Pubsic cleus should be Similan 1 of Me Concer File. Toe coete ims: Nor comment, AEG Dw Using equal) method * A (Y Using equals nome lose ©) pe ot Ge) com pone Tol) CY) com ponecTo 1enone Case) b WY c=’ ogenaton Q) hut i¢ multi tracasting 2 Mubkithageding cefent %0 We. conctunnent execu! fwo on mone Maaco? within Wnt Same Process A pede Aasks {0 enrecube, con curently - : MA dread iG ime émalle unt OF execute % tracers one smmultinhacialing enables. o Peafoon multiple o precautions BS euliines AE te exveution of mud Ole i we Mut dey access shone ee CA eat aboot pe Code. 0a, ON Otel eoslya ME as a freeventing, claju Connuytion , Cale cone tions. 9 : mamtaining consistenty in & mul tiph aeod ee environment * D unite Uefenentes behueen sleep ce) and wolt (7 ene bhers wait) “sleep d ® wait metro delongt | O sleep) mnstnd belongs to object clots - do. theeoad cleat ® wait CL) method ne lenses | eleeed) metned eet et Lock, duain 9 Syn dicen rab neleare tne Lock on object duaing ~Synchrwnizatien - ® wer 0 grow) be coded |@ tenes nd ned go col ony Fav Syne hnorized leop- (0) spore aegecemael a content cord ert i wat) if net a static [GD sleept) is stetic medheg, mmernod @) Sleep() htt hue es ® wid has Maniee. oventen} m0 howl?! ; : meothedS <5 hah} . sleep (Jorg, mie) + init, -nat (So dime out) «weit ( Jong Hime ved, Ink + mie paioarty —” ye sm mae RORY Sink tay raieatty 12 “The? Her Pasonityy mouthed rutnivel We prionity of We Ahased ne + Tt actus an Inte gen vol Pireac| 16 Prsoreity , which omy fron) Thacad. MIn-PRIERTY +O ane acl MAX. PRIORITY: ue re presenti 04) Mae” + ae — Thaeoo{ cunnent Three} = Theta Curnent Mhaeed OF dnt paionity = Cunnent Thaeee| + 4h prionity Oj Onume snes cx ceotion caised while tnvoring steep lb @in Saute, the Sleep i) meted from Ane 'qpnced Cledt Cun noice, an InJer_nupledé xcepHon * - Praows when a thecal # sleeping 3 This OXceptun is (ntearupte it by awicng Ane Ond anchor Vhneod intennuglt) meYred on tHe sleeping Annee d ‘ D what one dre Hendon Stacams ane ovailablé in JOVva ® itm jon, Mint ane Meee Slane arsel Strcens — — AVai\WAe qt el W sterrchaane}: Svpte crecesses] Hhreough syster ©) Stendond Ourgut acttessed thaowyh igystem: Stand onal ‘ se) on juve ee @ uhect do you veo? ¥4 wate Pe nome of WO ¢ CNanacdea. sree Sh 2), dracaden gdnenm? In Jove ane uufed foe heard fing Foye tiee vied OU and Oudput, «Thess > ane spocitically designed 4° handle _ choaacteal qubleble for text _tecefes). lotta ohana them ; Crensions , Suth 2s nealing canal: wend, ee Oles. > Two classer tet suppont chaakelen Streame 1 Jove, acct Rendon and waiter - Reeder. is ures) fon. input and? totter is used 407 ubpud - what do Know bYy geadelization oo java 2 )) Soni alization mm hove nefent 40 Me priacess of conteahg ony object's state Into a byte Stream , which Con be. peagisted 40 O FIG, Sent over Ce network Unit -S- a a vat $6 09 aprled Program 9 = Ao apoed is a Smal) ,embeddaled eagnom toad ] vipa eure, il casi, tO OR Fira, me chal ae 46, Seth cs inleaouive. coment 4 peed From ow @® fn areli : b gag “Ont Weibel $04 @ Acolets con watt fo wnt Files on tht floca} Comput on : Ges on Pre Fecal Come ) it cloeg 04 naquiee GUL: ; : 1 con commun iced with Whee Senedd on Ye G@) Te nequines tacopnicel vsew jmeakate. (Vt) @ tt can’t communi cote with|@) 1 on the a oben seavent neue - nehwonk- thot sol event in Sova > 3 gn ovo am event ss capend’ FO. Gin 200 AA OLE aida hee pening Knot can be detected and hondled YY a Program « Event Can be gene nated by sen nica oper countes witha & Sutter Noel cabo On Preogrenn + xPluin Ywuter cles with ecample, 2 te & pant of Pre AWT € 3 Tm jove jee Budton class Covstratk word ov Fool vit) Muckoge cond) ie Used fe carck % push-button component Xnnk Jaap gens an ke On choked TE batic 4am GUT component -ayod oS lent Jo imtenatd “With Graphic) “| | pplicedion$ ‘ es : i Cl ielaing, vRe boNten Frome -odd (button, Bonsleday ack | Fraverd « sek Si2e-( 400, lev) Erowme CeAVisibIe.( LoUre) ; ° frome» od fwiadoedLishensal ned windowed plea 4 Qudlic veid wiadowelosing(windodevent Oe : System. @xV4 (e); 4 3): ee what t the use oF faint) method mn avt > ey JIn Aw T( Ad Strack window Teo|key) 19 jove Ane Point fel nr Oe method 1S & fundamental meer) or. Painting Sraphretel campemenrs onto be grepric) Cuaface, uch OS tb windgW on & Conves 7 Tmis metre] if inenited from Ane. com pono, class ond. is Overerdden bub lasces . 40 Qentonm custom danwiag on Paiating openations. wit is Pr need of Adaptor cluster for: event Wncan dbing 9 = 5 cule ee G7 Momier,. clestses 7 Jove provide clo fer} ‘ Text erat at is a Single Line text npr Field thod callous gerd FO input & single Gine of text ® Tt is qenensal'} omelle dn cite amd intended fore ging icf int mput > © 1p aves not treevidle serebed 3) 1t can melucle beth pecause vt os jimited 42 aX single fina of in put @) x 1S tee| Fon Situations neguining chead , Single fine apts suth emtening a Username , a3 \@ 1b ig @ mulls capud anes Sheet allo seas to in pla Pines of AOKe- @ a soles ord cd} 4d wlend fu en ken multiple Jinet “of $ext honizonted and. vents ce) scme}|bounrs yx tnd content exceeds He wviciblG ange of te component ®D 3h is uretel Yor ccemaaiod whenl seat Need fo ertea’ on. View longer. jext suth — POLS wWond on. seanch Auee4 as commen , deteniphens, | LA meaerges On. Powceqreuph of | AeXt- » guenSuim += num > Use § _ adel elicaaun co num 5 Suen. out prs atfin("” Sum of even nvemberts +91 System owl: trate" mudbielicalion of odel nurbéas 7 sod dmultiels 4 ue BY idnak ag mys coatings Exelon dinfenent tyes hype Costing with exornyl, My jovn, CRAT 40 Pet ee of (> 7K costing converting 0. volun, -rom ond. dots +ype 49 ome Aaa: egmvensionncan Se Ckelick: on apni depending on Yt comoputibihity of the cloth syed myo) ved - Fthene ont two mam 4ypeS oF sash cea Jove: ss exeict Pye cashing AC peatonmed | programme t— when donventing & Vilue of OM date type fo gmattons dhe tye © ed + Explicit eatin, is done by elncng sa, dartin yyie in. poten ee 54 Lefont ine. Vile ie be. cash eye clube a = 23. 5b; : : oe ont ob = Ciel) @) ‘ oe Gapsrem cok: eriat hn (" syeduel of) be Ma b)y 3 ® Buiekly erinin vonout fool ot eee Ow Simple ond Easy 4° Leann a > Jove wrt Ak signed yo be Coty $0 Jaan ond hte TL gymian is; Similan 40 C44 - Tt aodued crreplann es such oS exelicit pointed, of —&) Secunt 2 Jorn host Yuilt tn ecunahy System, dren) rowemead aLavi and majword « (QY erattonm- mdopencent Libanies Cov Re 2 Tova AP) offer, O worl eeeunge, . classes “and | waned! far. yoaiouk HATS” <6 my Lig ing Ord } clevelopment by provi hing pn built fumcsunal het oe Yr es, sudh on (VD suki Thacading > Jovan Supronte multic th aeecling ou iowing con cena gxecmson oF mulbele Yyneeds within a single Preveynsom s TwiS Fecdient If teu) for Mhemdkeng mudi Ple foks $ Simultaneously improving reo. ethiciemery , (id Dynamics Jove. Cugpoets clynamie se preg AS We of dye. heap Ma. | objects o ash ea Jove’s JIT cimeilen. reek high et te conventing | sf ol? cF( num ya a= | Sg paime, = fal se, ‘ 3 7) © ye CisPaione) § Syston oud prim (num +" "Ys } * 3 © Write program 40 Ace epling them Wing import Jove Wi! Scomnen 5 Pubic clots sump £ Public shake Void main(Staingt J ongs){ Ccannea sc = new Stabneal gysten: wn}; System -od - print Gnten. value of bist variable 4 9; mt Ac S¢-noxtInt 0); sup value of fw variable by ccannen. cleds » System. out: eaint (Menten, Vole. of eecond vane ee ant b= 6c. nexr Tet); e System bud: Pantha" value, before Suen ) System. our: Prieitn( value, of finst yareebtle: System. out: (rant tel vale: ef Second Vou Fake ond tre. Fettowtng Convension fone Ch Smponk Gavdc «wel. Scanner 5” = Public cleus Tempenoturre, |) wwihe, G ‘Jove Mognom yo Cneet] ena Aisemy a donk matuy of Site 4. Pak Pydfic lous Unidmodnix § Public static void main (Samar 4 ons) Scannen $¢ = nad Seemnen (Sy them nee! my Thread (); mt. CHumd 1% f inten Ce fs “ Fayl Eretmpurdinam fA = neue) Filet qudStncen int dott; : udsite(Cdexe = (4 een ty) 13-14 5 System out-Yriettn{"erl of FL reeechesl "D5 z 4 cubch( Fie not Found Exception ef System One Prinhe( “Ale net found 5 engneag car LOE xcepion ef Sypten. exut- Prin| Ln “Grunva aced tng me wae ss aang £4, 4,6, &) 10 “nd Ahnead 1 = new Faery ( | ord =n) Hea Pniveke me C45 e Public Ponton() £ Pri cg. name = Sauna Ais age - 3 Public genson (okies, name) 4 Mis Aame Sn ame 5 ce {his O9@ © o. 3 PubLre Gengon(Saiy Aame, o ime, Ut 4Wi 5. nowng, = ies m4 Enis OL = 290 5 3 pubgic Void diseloy O § Syftem. OW Prin} Mn( Names” 4 name.) ; y Sypters: Ou faded n( Ages!" oe): cescer| rt) meted “meena. te Stake mexhod) Which Wil) eek of manks of dese tate ene imfonk java «WH |« CConnen, pubic clase Chulent f : Private int rly * eo. Pavate Chring Nome. 5 Crivore int ABU 5 Priveke doyhie mule } Public void inpus UF Gcannen. & = new Scanner (Sytem « ° ; Suyflem out. Prin( Jnl" Enter. Run wumber ss ro = SO NK Int: sypem- Out twiatlnlEnien names )s nome. = SC-nextLine ( 75 ii Sipe 0% ¢rinilal " age. = Sem OX In Anis “peasatnede. = fakes ssi a 5 a parent Date); 2 Class chid extends portnt { Privode nt cht Dake. 5 public Chited (int Aatet, int oder) Seopen Colevke 1) 5 Wiig. chitd Date. = totog } Syaler -ouk- patala( chad slags invoke with data + child Data d; 3 < Publee eloss maint oe Pombic slave vord main(Steinge 4 args) { che C4 SUM Wh)? Pruvid ea, ub hig aiaiear Ge MeO wrile(Ce= fam is-omd OY 12 “| os wud (Cc); toe close.Cyy os close (77 ? coach ( Toexcedion &)4 @- Print Searle Te ote. C oF

You might also like