You are on page 1of 60
A Longuage Funcomortels DURGA SOFTWARE SOLUTIONS

Aname tn Tava program is cleat Tobati bie 4 > Frean be a clay rrame ot melted name ot vatialle name ob Lebel nome. Jear clan Tut t eddie stabic void main (Stating r rere int aslo; @ @ ® 3 L I 6 Ruts fot Tetewtitpiers 2 AK Rae 4. The onty ablewes! chawacltis in Towa Plewtibiens ote a-¥, Abez, 0% 4, —Lurderscore) ond 4 (dollar). Th we are beging to ure omy othin, chavackh, ty we wil gol Compile time exc: bakek_craraleet. botalte xX e TLOTNOS6 TIARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 J DURGA SOFTWARE SOLUTIONS sparen, | 2. Tdectifiors Ghentd rok chat with — oligite, | €2: betaling — | (oatotal X 3. Java tdectibéen are Caw Senuitive- Ofeourte Tava domquoge iteelf i censiclerest os Cote censitbie programming hemquace. ex bet Tea TS fat numbet =107 we con differentiate int NOMBER =26; L WE Case AE Member =50; Jt 4: There fc no Demat, Limit fot Tana ftdedtifierr, but fe te Never aecomrmencted to take fame thay idectifiers beeox it Aedace aeadatitilg of the code, % We cant ute Aeserved worebs 04 Tdentifiers, Ee int a nty Xia 4 210; 9 ce Resetved ore + 6 AU preckfined Tava clas names £ fnterfpace names ne Com ue 4 folectibiors a claws Test 4 Psov mC) It Stringmio, | fat Runnatt «20; , S.0 p(Grirg), | S.0-p (Runmatte); Ea €& ‘PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:950S905786 ra DURGA SOFTWARE SOLUTIONS ‘SCJP MATERIAL > Eanttough fe ic Aegat he ute precktineel Tava class names 4 Titerpoce’ names lng Ielecbifiers, ie ig met a yes yeni prackice. Ee gerd programming | @: wohick te sfollooing Ase valid Fave identibier 2 FE cath © +44 B® total number KO me RO Yeloncds - ® Frgochare Oo —@® Fehger ®) Reservesl_wescls 2— [> Br Taw come wordy are rueved be veprment forme meaning ob Functionality such bype Of werels ote Collet Reseed worels Reserved Nevets (53) Key woos Ceo) Reserved Literate (2) ‘PLOT NO.56, HARSHA CHAMBE! ‘SAI NAGARNEAR BIG C MOBILES, MADHAPl 500034, MOBILE:9505905786 DURGA SOFTWARE SOLUTIONS scpmarena | Und bxprose (a8) \ tiple espe vege bel tapers ne oe & : dot da dot velatid relate) Ve | Atctgpy Hou ceordvol modifiers — Exeaphion eenbling Keponely be 2 ote bagi 4 pablec by clay neo Shoal hie privale coke, Reterpae super “@ toy suite protected Hinatly package this fined How impotl- inttomcat, pam oe Stesble threnas extent @ ‘ ee i abthook ousattiey) implements beaten fob ee 7 © © beat Tak Continne . transient” “@ Shikpowy @ L FH 2 meted wert seliive fthing Win ue Should cteatere hake meted wilh void ., aelten beype- [an I 7 te * teaptin velinn type fe meme peat” inc baweunge veltin type cred amd clefantt Lier tegpe Cruseat lenigronrets t— ‘ A. get ¢ lessees oh WF crete sevetel prolleme fy otal Lamgusges, 1? Henee SOs peopl Lamned thie keyword fh ava. &. Const 3— I> Use final Instead Of Const. Notei- By mistake i we ove brgirg Bee gate and cont I we wit gel compl time errot. 4 PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL Reserved Literate eee ee trae vobues Levlean dete type fee ie null = ctefoule volue fel objec reference. enum (sv) 2 Up we wont te represent a qroup Of named comitanti Wein Shela ge fet enum. enum Meni enum Beer L TAN, FEB, - Dec; KF, Ko, Re, FO; 3 Conclusions 7— A. Ay weseved weoets ty Teve contain only bower case ophabt” Sqrobdls, 2. The new keywords fo eve mie strichtp —> vw amat — > bav enum —— 9 (sv) 3. En Tara, we have ony new keywove , but nok dette Keigeoewel becon dechustion of wieleyy objectt fe th repensibitihy of Gostngs Cohecie- 4: sticttp bub net chick Fp Fratomceof bat mot Tnctance Of tynchrenixes| bub not Synetronize, ertends but net extend Tmplemnenti bute nat implement import but net imposter cent bub net — comutenty PLOT NO\S6, HARSHA CHAMBERS, SAI NAGAR,NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 = DURGA SOFTWARE SOLUTIONS SCIP MATERIAL @: Whew ‘the fellorieg Lick Contains ole Tava Tu evedl Werte? SO ne, debete K@ gato, conctant- KO dreate, Cortinus, retire KO dined, finally, finlixe KO tro, throws, teronn X® retity, watcty a X®@ implements, extents, Fmpevts xe Slee, Trutomeecty K@ trttoma Ok, terete p A@ byte, Shot, Date None OL the above eal Qi ehh Of the Feliosing ane Valid Tava Lesoved werele? —O public S_ static wid X® main xe cat eae 3) Dest, Teyper s— >In Fave. , every variate hos a Maps, $ every enprenion has a type 4 every type is Strongly checked, > Cah 4 exon aidiqrmet — theutd be checked by the compil- FA bye compatible. | Heme Tava Language fe considered 05 Shromgly typed programming bey PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 6 ae DURGA SOFTWARE SOLUTIONS Soe MATERA Fava it wot considered os Ruse object iented Propramming Laguna becoz severol COP feabrrey (Like Mullipte Enhutitbance, Opeth ovtsleacting JE) ane nel cupported by ava. AS Mcteowr we are. depending on paimibie debe types rohich ate hon object. Primitive Data Type C8) manent ones clade. types Cat J cin litte types boolean, Chas — > —> Enegt benlean cmd chat fhe Lemnaining bite bypy ote Considered a4 Signed tate, bypa becom we Can represent botts fn ve ve number, 2) er integrate types ?— eo or cq 2) babes mos Size t 4 byte Ce bits) ( Ms Max Vale 2 He “ yt ty el] { MIN VALUE: —12@ £ 2° af oF ah al 2° \ Range tote te Heb a 64 Br Hl6 Feds tHe le Tet = Sign bit I Eett as} Sign BIE o> ve d—> —ve. oe toll — > The MSB actt ay Sign 'e. > 0 means +ve ntimber 4 1 means —ve numba. —— PLOT NOS6 HARSHA CHAMBERS, SAI NACARNEAR BIG C MODILES, MADHAPUR-S00084, NOBILE 9S0S905706 I ca DURGA SOFTWARE SOLUTIONS ‘SCJP MATERIAL > He reanbers will be aepresented dive: ty the memory where Se cornbere Will be represented th ale complement” form. ex: byte b= to; bye b= 28; X byte b= i2@;. X bye b= toss K byte b= bau; Kbyte be “duagas; > bate tate tegpe fe beak cu tbabe Gf we want bo hamelle alatir in term of Streams ecIRA drom the file ct from thi nebwook, 4) Sher 2 Po The mack otely weed Act type in Tova ts Shett dite type. Size ta byt Cee ci] Range s—segee tp sotet [2't 221) eu Biot 2 = ater: Kehr < = says, PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 € 7 DURGA SOFTWARE SOLUTIONS, SCIP MATERIAL Kebort seto.s; Rohe Sa tre; J cheat date type fe bet suitable fot We bAe procuscrs Like 8086, bet Hee precerscls ave Completihy outdid ome hence VRC cerresponcling — Shobt Aste, Te alee cut-dnted checta type 43) tet M5 The mek commer ved clita type Tove fe tnt olactay type. ) Sine 2 4 betty Ler —bite] Range to! de Sl, Enarecsae 2470036 49) KL | ink he 214448264 Kat we aaq eae a8, —s Es thet nummer tee deh Kine a erraresse gers Kink ae tes; ce: pup counsel : heute required t tnt i : ce: i il Kink ae tees CE: incompatible types found i boolian wequived ¢ iwk —— PLOT NO.SE HARSHA CHAMBERS, SAT NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9S05905766 q DURGA SOFTWARE SOLUTIONS SCIP MATERIAL > Sometime int amy at erveaghy to hold big velaes dhan we Sheutel go fot long bite Lype E2WTe beth aroucd of distante travellecl by Light in revo dass fnck mag net enough than ne shoutel go fo long ctatx bape. ley Le 1,26,00 X60X60 X24 xt6TD miles; QB: To held ne 4 chavaclire Pret in a big efile fet oy nek enough Thy ne shold go for borg clits egg Size + 8 byte (64-bits] Roman t 28 te oy Noti:— Ai{ thi above do typ (hyte, thet fuk, tong) meant fA be representing fntepral values Ap we wart te represent HHocting petat- valu ty we Shewld ge fot Hating potnk dict. types, 4th wa wank 5 te 6 decimod la plates of aerunate this ne Should | places Of accumasg Ikty we Should qo fot float, yp fot toute. le. float follews eingls. precésion, |e. dows follows cteuble precision, 3 Stee: 4 bia 3, Sixe te byl Remap: ~3.qe3¢ be 3-4e3¢ Range Tatesog te 1.4303 PLOT NO.56, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL | bolton date bype Sine: Not Applicalte C VM ctepondont:) | Ranp 1 Alt Applicelie: Cel onky allen) voles ofthe bron otf) Ce: Trcompabille kepes cfounsl 5 int | ea Coten bo brews OX booltan b=o; x boolean b= True: Bi ink a =05 a i on 36 op Cue), Soo pele » he : 3 L Sop CH) Chat. data, type? bated amd the no, eld bengueges Like ©, Crt ave ASCEL cole OL ASCEE chotackins ave less trary of equel be 256, -to represent Beye choraclins shits ave eronghe: yor the size of char fs At kyle. He But Taw fs Unit twcle base and the no Of UNE code Chotarlins awe > 256 Y < 65536, ——— PLOT NOSe HARSHA CHAMBERS, SAI NAGARNEAR BIGC MOBILES, MADHAPUR-S00038, MOBILE:9505905786 u DURGA SOFTWARE SOLUTIONS SCP MATERIAL To represent thixe cheteclint 8 bite may nat enough — | Wan we cheuld geo fol 6 bits, |? Hew thi cine of chat fo ‘ewe fe -¢ byfad. Sixe 1 2 bytes C16 bits) Ramet o te 6csas. Summary ef. Taye Poimithie Dat. Types ¢— 4 Cam sbi 7a deta type | Size Range cme Defantt value | byte aby |-2e tae Cette 4) Bgbe ° Shot a byl [saree & sx46t Cal 2'2y)| Shoat - | inte aby |-2iataesces teiaisescat| Intqa ° Cate 2 | tome Skye] 264, 262, Long ° Hot | ely | -s.gese te aaese Float on rb: Aoulle | & byl | —1.¢esoe te |.Fes0g Double cual boven NA NIA (ablowed voluy raf Bevlean- Folge char | etyta | 0 & cosas Chrractor | spats chenaclEt Neti The fawt value fol object weferenee fe null, 4) Literals xo fry comskant” Vales which ean be attignedt toe Verto cect Literal, ent Dac tgpe] tame vaatable] Constant velo | eecioctd Thecti fier Likret ~ PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 Ie DURGA SOFTWARE SOLUTIONS SCIP MATERIAL | Lategrat |? Ft Satepret date types Coyle, Shot, tat, beng) we can speethy Ukrat value io the following mys. 1) Decimal Literals (base —10) 7 — > Atterseot oligite ose ote FZ eu ther ae; 2) Octal Literals Chase —s) -— > Likerat voluu Sheutd Ge prefined oil 0 amel atlewed digits as ote +. ent ink a = 010; | 2) Heraclecémat Literals (bare)? > Allowed digits are ot 4, a te F. > Fob eabra digits we can use beth lowet case amd appr Cone -| ABS A at P). PP This 4 ome op very cfm ctent where Tava fe met care sensitive. > Liktslvele chews be prefiacd with 02 A OX, Jeat int a= oxto; > The are tha only possible ways te pretty Litrot value. Gi Which of the following are valid declarchons ? GS int ante; K@ ine = OF 86; >. oO Mt acosss; GD fob 22 oxFaces © tet reoxBeof: <) tt X= OX Beer; > ce nheger number too PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE.9505905786 13 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL Ext clang Tet t Poo ov me) Cro). = CP, | Pak a =to; soxe+ixel= optag ie pooso; Pak x OxAOS Ce) = CP jy a ' Lople* tty" tz); = ox Ht xib!a Otf6 ote r vi Ve 3 1p: to e 4 By efautt every ietegral Liturcl 4 con speethg enplicitty os beng Type: bg SUM ato; LetoL; "2 of int type, but we | sffined wire La Lb. t x10; tat actor; —> (Et PLE [There fe me direct wag to petty byte ond chett titearal 2 Whiner we are aastgning iekegrod Uteral te the byte variate mol a the value Buofthin “the vewee Of belt then compiler, eonnaticatig dest te og byte volume, > “4 ehoth Literal alo, ex: byte b =00; Bye bends byte b= ing, —>/ce+ pir TC TLOTNOSe HARSHA CHAMBERS SATNACARNEAR O1GC MODILES NADITAFUR 300034 MOBILES0S905706 14 — DURGA SOFTWARE SOLUTIONS SCIP MATERIAL | Both sa s246H3 Flostiy ‘ fe Mkunol doula tape, > clefantt every octivg pe tak co ‘ F St we Can speethy enplreitty, as float type by seffined fle ACE. Se Heat f 2t2, 4562 —> |\cer rp Plot fa irs. g5cf: He can specity englicitty Hosting port Literal a5 clout Oe een af Wl oo ejecurre They corwenkion Fe rok wrequited Er: —deutle de 123.456 07 Font f= 346 Ds 5 ke We can sign t tabegrel Aiberel clitectly te tte Heating pefar clita. types omc that fttyral Litetad can be —9 (ee? PLE [9 We can cpecthy Hoang petat dikerals ewn fy enporenttint Fong bho (scientific netabion). 3 e2: Aout te ties lees e122 x6 con So ped; 9 @eied) = 1260.0 Het Fetzer, tounel : dowtle wequirecl teak Font fe trezf: PLOT NOS6 HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 = ent lookan Liketal ¢— —P The only alowed valuis fot Lenleawn cate type ane treet fate, | K boolean b= “tes ehok Litetel (— Jue We con repreen” Mingle quel, en DURGA SOFTWARE SOLUTIONS. SCIP MATERIAL Aeckan betme; X beotien b= o} Xbooten be Tw, Symbol Voriialde True boection: chats ‘Tette Get incompatible types shuns jt. Stang ink 220; waht le yo an ) oep(*Hette') ! Yo tae) : teen y few: incompati le. bypet ele cfowmel # fal £ Lop (Hi reqtrect : boolean a chat bkeral as a Single chatetin within cher Che'aly Kerr chea; PLOT NO.S6, HARSIIA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 la DURGA SOFTWARE SOLUTIONS SCJP MATERIAL Kora cheats ‘ee We cam mpruent a chat Liktal 4 integral tikral which | rrpruents — Unit cede value of thak chatacter. | The inbgral fikual con be cpeeified either in cleeimal of octal ob \ heradectmal, ee range fe Sthat che 4q45 Sep Cob); =dolpra ot sssss. Chak che 09993 ina chak ch = oxFace 5 char oh = OX Beep 5 Chat_eh = 65535; —— Xho ch = 65536>. eguised ¢ chat We can present a chart tikwal fn UME code aepreserttaction hick Te nething bub U\exxxx'] exiChar ch = "\usosss 4 Agit here decimal numb. S.0.p Cob)s => opr Kehr ch = \ucoss; Koch ch ='Vifex That cho ‘Vu boop; PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 I 1g DURGA SOFTWARE SOLUTIONS SCIP MATERIAL > Gvery ctcape chatocl tn Java fe valid char Likual. EB chen! Char, ch = '\e's X thee oh tl; Geog op neal) Ocseripiton In [2 New Line \e 12 Horizontal tab \y [2 Cxrriage relitrn \e > Back cpace \F > foro fend \——, Single quote Vibe tentte quot \\— Fe beck slaty String Litered t— A Sequence oF chevactirs within dowd quetia Te called Sting Literal. rr Sting S = “Teva's Fix wee chencemerts softs veupeet to hiketele :— A) Binany Liban: > Until 4.6 souien se spectty — Bitetal value fo the tateqral ete, tyre im the followir 2 0, A. deci) Lady < Literols PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905706 4 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL > Bak from tz version enniarcls we Can speeiby Likerel value even th btn alee. Lote tikuat vale cheuld be prepiced wilt ob A of. > Aimed Atgite are o amd. jen? fot ae oun: uo Sopla); => opis” 2) Ulege of Gy unctarccons syrbel fo Nemec Liketelt 7 ete J From a version onwards we on ute (—) symbol fy num adie tibet, en: deutle de 23456. 4845 Y Aout A= 1-23-46. 4_%&-15 Aeule de 12245. 48 See ame cages > The mata add OG this approach fe Renda bilil wih be tenprovedt, . > Hee obter compitation the above Lins will become double da inzase.aeq; Sacle Js We can waite ony number Of underscore ambos Hos the Aigits 225 dows Ax \_a-_ 8.4 56-84; UE Ie com wie urolevsce Sipmbol only Mw the alfgits. 22: Aowte de Los _4ac6.4_e6; Aowte hi= 2346. tee; deve t= | 22456, TLOT NO Se, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-50003+, MOBILE:9S05905786 20 DURGA SOFTWARE SOLUTIONS SCJP MATERIAL byte—s choth. = Tao dong —> Honk > aloe Cho ar Even thougy fe ehylig we com orsign ite value “to a byl Hoot vorfolle Lecow Prbuamedly Wy follow Libgerent memory meprevstections, et thal feels Seplt=) lp 100 on A. Dntroductien 2 fore Declaration creation Array Paitivicetion Airrag Declaration, Creation Znthinlization in a Stings tire cee ve bay face alae ees Array Elmont Aakgrmenlc Arve wortoe Acaignmonta. A) Batrvodwabton — hogs 2 - A é imed 0. a homogeneous > te Amey fe an inderedd collection of Fi en dete, Aemnenti . The main aalvantaep of Arrays ts ne can epresent rubble vals by tiny A Single veriatde - So thale Aeadelite eH the Code. wil be tm pacvedl. PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500 2 {, MOBILE:9505905786 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL > Bub te main dica Brors & fined in sine i. onte he eve otid am AY with, Serie size thye Teo no chaner 4 ineweotivg of clecrensing he sixe batedon our. requinemeut. > treme te ue rye concept compulsory we Shows Knew the size by molvamce which ead mot potuibte olonye, > He cam overcome This problem by wing Callcbins. 2) ean Declaration -— ae Ob ree ievinlg ee o eae 2 TECD 252 vecommendect to wie beeor name oie clently Tae Cras Segareted| from type. tak aca; Se He ime of Array leclarction ne can't be ICI age S_Dimensionel Array Declaation -— re ee iWttIc3] «3 ine Card a5 taht ACG Co itt eda; eee Ste inte caaca Be oenetea eee ae MEEILICT a; inte cicscaa; oO inte ACICICIs PLOT NO.S6, HARSHA CHAMBET ; SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 22 DURGA SOFTWARE SOLUTIONS wWHOICI CIa5 IMCICT ach iC cicaa; eo ied SCJP MATERIAL acCIcI; Mect creas Tat CICIACI; tute clacscy BE rhicky Of nthe fattening Army Aeleasliiny ate vaticl? ] WELT ab; tt 4 bb) TREC aca. by aoe a eam heey Ci, by go 1 Fak C3, bea; a } bon 7 ue. itca Clabeg; ase boe DX fetta Cte, csb; 5 ce PB we m Wont to speetty tke climeneion befote Thy vertate this tectlitg fs appleby fo the fivst- vatiable in deolardiin, Be were yg emery fk the mia vant we vr gel aK XK eu fete Cda,cCIb, Cie; | DcAvey Cremtion =~ > every Array fo Tava fs an olgects tees we can orate. an era 7 Y wing new opteter . Jen: tact acneo KEES; [e\aalasa) TLOTNOSe HARSHA CHAMBERS, SHI HAGARNEAR BIGC MOBILES MADHAPUR-SODOS4, MOMILESSOS90S7OG 23 DURGA SOFTWARE SOLUTIONS Phe grammar, Pos B.A the time op tora En: Se MET anew WE SCUP MATERIAL PF ot every Arey type the corresponding clay are ovecletee $ Hie clauses ave peat of Tava, owqucge f wat applicale te ike: cr ccr cB ts ca ete co cz Cc ere ation compulsory we Sheutel bgt b= 10, MELD asnes Mmtrlb> Bhat = 20) Tte3 anew fated: Kier a enew tat Lrokly Nele:— The man, atloweol sixe th Tava te tlataescax, Which Te man. vale of Tat clita type. eu Fores menew it Co1a7eeaeay); pe ee fab Covarae sens; > Ge Tapa, munber tn ip) Eo te Hist cae, we may get heap mnemeng 1S nob availabe. Thiy anaes eee te cae iS prolly Witt mechtne Ce ae In Tove, mabti- démensional ergs are nok implemevitid in matrie| storm amd lige are fmplemertad by tiing Arey of Arwen apprecek. The main advantage cf thls approach is memeng cctibizciin wit be improvesl. PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 ae DURGA SOFTWARE SOLUTIONS. SCIP MATERIAL HO meee «anew MEIC; aCe nes MtCa7; ACI = mens ine C29 E2@: iKCICILI anew ie OICICI; Alod=neo ttlsIL J; AC°IL04 = new inmttad 400T01] = yew MtLsyy ABI leT ones fab Oed: Atj=new Mt OTpe7 Ei which oy -tee Fellowtng ae valid? XO trea Aa new Ft lI, @ MCI arenes mits]; %@ hreacy aaneo MCI @ ttc3ey acnes hecstca; XO MCICT anes iste 3 pag; °O tteaey aqnes MMCsICaqs ei eile este oa, MeCIc3c4 wee SIAC; A@ wec3c303 fen MOICI EST X@_ttescsacy a=nes C DLat cs: "TENDS Hansa CHAMBERS Sa NAGATA TTC HERTS HONOR SSS NODE SSCS 26 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL 4) Arreg anthializabion £— > Once we crectid on array Tee denpentd ave by clfanlt initistixed wits defawlt valwus, ENO iI anne fet C2; feele] & : * “o-pCa); =) 0)p: LIse@25a5. Sop ace; = cs 0 1 coeip Cu tas Reg er) deat vale iNNawne 6, hewndlecmal — haidtcoole. tote: Whenever wwe are beging te pata ang cae referent te, Ticker tay bSt ng method fl be cated E2@: intcacy aenew tt CsI feds Sop la); polh: CLT e258 Sop (acer = ofp: Cr tagatf Sop (acoltel), 25 olp:0 e2@: MCICI rA=new PeCSICI; Soplay; => Ol: LL Tse29ae Sop (aa), => oie S-o-p (ceived); oS Datei Tp we ane trying to pethero omy operation on null thin ne gt NettPofdn Exception. ° > Once We created an ar query array element fe intbotined wit ttt psebestt Eh we ane not sctistied! Tis lefpanUl- values “thy we tan overvide thie ctefantt velues wits ont customineel values, aa: MEI renew mls) wed = 10; PLOT NOS HARSHA CHAMBERS, SAl NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786, 2t DURGA SOFTWARE SOLUTIONS SCIP MATERIAL aCiy =20, By aa abd 20; 7 2A | FIA] nfs] =48; eo e R EN ACAI = 50; XC5] = 60; —> BE: Array Incl OutOf Bunche Enceptron XESI=40;—> RE ATOOKE Netez— Ep ne are trying to acces array cbmrent with ent of Tanga. inden thing We wil gt LE Saying, Pree Out Of Becinels Cam pHte9 , ©) fromy Deetwration, Cre at aes mu in f a eae ae >We on declare, Create § Mritinline on arreg in a Single Line SS fit a; Asnew ntlsys ACol=10; aCid=20; Yventei® "bale Aled =20) ‘oes > ven wwe can entemel “tig Shott cut fot muttc—Limentional orraigs elo. eat int st } ~— od . Ext Mt ILI ref {to,20}, {20, 40,504}; pele} Celeels2I er: 5 reacties as $ Lbver020% 40,50} { L60,70, se}, Ere, 160, oy} } ; ES op (2307 LoI)y > @ + ercoite) S-ep(acit 1.103); =) lp: 70 Sep (a reIC1T 23); mifE + AF CORE) b= TT TLOT-NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:950590S786 2 DURGA SOFTWARE SOLUTIONS. SCUP MATERIAL Sop (aC1I CoIc23); = etp : co S-o-p (ACILT Co) oy open So-p (4 CoILeI (2d); = Op z 20 S.o-p Cacetcerciy Ohl r ae - = (Re: aLooke A ne ame ty wl thy hott eat Compaltery ne have Perform in a single kw Hh me aoe trying te atividle Tate mmabtipl lines we wit gob Se. ear tHe a= Le, re cohs inetd ag = re Lie, 20, 2045 ee i 2 Ve > engl te a final varias — applicrle enty fot arrays. (7 Lengthy vartolte wepryenti size Sf the array. intC J w= {w,2, 20, aehy 0p CacbergbeOy S.o-p (a. Lengite )5 => olps 4 C2 3— e+ comet givel tegmbet Sgmbel s methact length» locations claig TttJ | gic) foe final metho applicable fot Ly ee wetterns sured eljecti we of chewmelins preset in String. en: Sting totus’ i Bio (5. femgth Jy Sop ls. PLOT NO.S6 HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 a4 [ DURGA SOFTWARE SOLUTIONS SCIP MATERIAL | iletes— lengths vakiable append fot args, but mat go Shtmg- ckjeets robeve of hevgimes metked applicable for Stateg objet, bat vat fot avraupt sy Staing CI catia" nant, aaa Boe. pls. tengtts); => ows K Soop (sdengO; XK Sop Cocos. eryth); Sop Csc09. egos outa (261 cavmet final sornbel Sorbet mettood lane hecction: chars Shejeged Et comnel Fined spel Sgt: variable lenalhs location: claw ih Steg ees mruthi—domenttonal erregs, ematts variable aeprresorte ony bore size, but not total sixe. eu ELIT] aenew MmrCet Cede a S.0 p (atengtiy); = olp 16 oo Sop (203. targths); md olf 3 |? There fe no direct way te find total Jeng of mult limen— Stork amr, but we Con Final frebitecthy ot follows. fo 2) -Anongmews rege + > Somotines ne can deelate an array wiftheuk name euch, type oh nemels amays are Clled Are F [OThe main pripore of anonymous array fe jut ft instant ue Ch ine wtooe), [Phe can create anangmews arraus 4 follerae new frtLI{ te, 24, 20, 40} MUDERG, SAT NAGARNEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE-9S05905706 2% ‘PLOT NO.56, HARSHA CHi DURGA SOFTWARE SOLUTIONS SCIP MATERIAL We en Create mulll- dimenionn anonymeut errengs alte. re Fak TILT { fr0o,20 204, Lao, soy} > While Creating men ume ares ne Cant speethg Hg size otteqwice me oll get £6 Ext new Pot CI {lo, 26, 20) X new fat I {te, 20, 204 a > Based on cur requivement ne Gn give th name fet ono mens ony then fe fe nro Longer anong ment. Ge ted aAenew MCI {i026 se} Se cls “Tete L + vw mC) Sum (new ft] 10,20, 20,40}); £ vy Sum Cin a) P L 4 r L botel = total tas 5 SPP O The sum: etobaL): 4 9 Fo te abow erample, just” te coll sum(—) method} we requisect a eed ead abt completing thal sum(—) method Cll ne ave rot i mache seed ashen eri tala) Cocor | fe the best chwice fer thy rewtrementt, PLOT NO.56, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 3) 8) Arey ehument Atalgorn Cou? Fri patmitive type avrags as array ebwenlT we can poovicle omy tape which Can be Implicit, promoted to declared type. AO: Fo Pb type arrays, the sewed elemenb types ave byte, Bert, char and int. EXO: FA Sloat tppe amy, te owed ebenrent type are byte, thott, kee, far, tong and Heot, —> short byte NS a aa chay. ext feeCI a= new fat Ce XK rad = to-s; Con @r Fo Objet bype array at array doenente ne can provicle ofthc declared bare objets of tke chitd clas objets, E207 objetcr aanew Objet Cie; Alo] anew Objetlr; ALI) = new Sting C'dasga); 4023 = new Dteger (10); AS Numba anew Nember Cros eA f01 = new Antigen cto); PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR '9505905786 an DURGA SOFTWARE SOLUTIONS CHEN = new Doulle (10.5)! Avod=new Ghring (Sautge’); a A Cone Ft tterpace Beppe omnes 4 aervag clementy ne con provicle| Tee Implementation clans objects Ent Runnable I A anew Runnable Led, Eft enew Thread); AWaoi= hein (* ‘): new Gheng Cocbasget Povey bere Atlewtal clement type : 4. Patmnttinn type anenye ng type heh cam be inp mt Ww declared type _ eeaeeeee & Object bygpe arrays | cerca, cectaren! type fee, ci ae ern) objects are allowed tJ . abchesh clan type arrays | ete chided clas Uo indespace ype arene | the Imglomerctation las oljate ate “abled a) Avra ventalle Aceiqomenty a CarhDi Element” Level prometions anc. ret applicnkle at array level, For €rnmple , char eleyent can le prometes! “he tnt type but chat] cant be prometed —to fatcd, a ae cae te) TLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 = am GI taro a a {00,20,30, ae} chaca che {lal Ue! dh Qi pohioks oy the fellerig premetions will be putormed section cctitaly J GB chet ae X®@ chaca—> MCI CO tabs dewtle K@ teeea— Aree X@ lat — berg XO footta—> koge 3 eS Sting 2 objet SG Shyer > Objet CI seed fo com of Objest ype amos Chitd clears beype arrag can be assigned “to potest cles type arrag. Aferernte variolle eu: Stategss = £6at "g coths Objetti o=s; Cxe@! Wherever we ore ausigning ome orray Be arethig are fatemal ebemrentZ wert be coptec, just reference variabls wi be Aeawignest. awd bunce tines are not aequiredt te muden, but tgpes intCI a= {le 20,20, 40, , 60}; Bhenlal be mdetecd | ttCI b= Le, cop: ies C [eke eal [eo] -@a-s; De 5 Zz CG. a5 MCI ‘\2ED) CARD! wWhewwer we ave anigning ome ervey ts oncthey are dimensions theutel be matched ies, b ne are expects 4-D ony theuld poovide 4-9 omens ot By roictoke Shame aaa prot ”] “4 ott, = Aimersion th, fe ne wil geb ce. ext WrScI wen MSIE; Kate = new tt I0I ; TLOT NO te, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 a DURGA SOFTWARE SOLUTIONS. SCIP MATERIAL XxLeod = w; A L09 anew intteady [Melee Whenevet we ave ansiming ons. anny to omollzy array’ omd — climentions theutel be medehed , bat Sixes are rot Aaquited to mteh, €2: Clary Test eva feat xy al ps v main CStainges ongs) L Stateges atghaliay ete’ args m atighs SoC Staing ¢ 2 o4gs) Sop Ce); 4 ak a) : | eat clay Tet OL i v mCetivgc 3 os) eee ee ete Aor Cin t=0; Feeatg Length 5 Trt) olpt a Sop Coays CII) eet arcoee 3 y eauphion, wo ty ne ope “eet wilt Te! cymbal thay ne waite gk ory ex taecacy a =new MICs) 5 ADJenew tla, — 4 ACU new fntf2d,— > 4 Aare ne ICI —s + ‘PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG G MOBILES, MADHAPUR-S00034, MOBILE:9505905786 35 DURGA SOFTWARE SOLUTIONS i Tokal h objet Cventio) 7 B on mary sa} Ane! je Hew ener | ctjete lille fet 4c? eee u ) Types a variables 2— Divicion ©: Basel om type of value ereprresectecl by vari alde olf vortally ore divided Pte 2 type. 4. Patmitive variates Re Reberonee variates A) Primitive variatts i— LS con be wed “to nepresent _patmitive. values, eur ink 2 =00) 2) Referonte Variables !— Ls cam be uted to refer. objects. SO Budlert sane StucletOI; 2 Resed on purpose © position into 2.3 typu. A. Enstana variables A. Shake vont gMes 2. Lace! vaninbles A) Enstomer varDotles 3 — Up the value of a variate okie drom object cto object cach type Of vatialles are Glad Pnstante voriabes, PP Fe evorg objed a Sepatete copy of. fritonte vakinlbes soit be co declaration all vatiolles 00084, MOBILE:9505905786 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL > Enttante vorintles wit be erected gt te time oy object creation ond destroyed at the th ce object dechuction Yenu the Trstomes vatioly wit be stotedt fh th Heap memay us IKE past of object: im? Erutance. vatialls should be clectared within the claw divedtly, but eutzide of oa methed ot Meck cb conetiuefol. —pWe cant accert Pritamce varialls liter trom stalic mea, bat te can accets by uttng object” mferente. |? Bot rom fritanu ecea ne Can access Iritenee variables Aitently. jeu dae Tate 1. Trt Ad0, hsv me) L So.play Tut benew Tutt); y Sep(ha); op ve polite voll mse) Ucn play => op ite 3 | Ft tnttanee vatialles Ivm wil provide default values and we are nel vequlved te purporm fnfhiabinction empicitly. €n2 clus Teet- re Int 7 es vm) benew Tester; epio ‘PLOT NO.56 HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE:9505905786 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL 7 Enitance variables are elio Known as object bvet varialles oA ttribnbs @) Static vatiobly 1 > tp the value of a variable fs mak vested from objet t object such type of vorials wre ret Aecommenctesl “bo olerlare as inttemce vartaty ne howe te declare Hole vainly as ols sleet ey aing chibi. mnvoctifin. bP Bn me of intents variably, fot wery objut = Sepatete cory will be erected but tm cow of static vokialle a single copy will be cvected ot clas level 4 stared thal ce aoe re eee > static variables will be creatid at the time of clu leaeting 5 destroyed at te time of olay Unloading. tence. The Sespe Static variables Ts enactly some as the cope of clan file. wiova Tested A. Stank IM R. Creaki 4 stot mata Thread s. Te _ Locoti Test. chars checks VaRables 4 Lead Test. lars Crection S Crecente maint) & Untoacl Tet: chars Stati votiobdks F Termineti. main Thread! destruction 8 Shutdewn IvM > static variables will be stoled jreide method ater, DP stebic Voie hed be declared vitttin the olay Aisecty , bk outside of meted A Meck ot constuctol. > Static Vortalls can be acceried Aisedly from bolts fnitance awd stiti areas PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-5000: DURGA SOFTWARE SOLUTIONS SCJP MATERIAL ea: dls Teal ae ctatic Thi 1=103 £ v matn(—) S.op la), => 2p 20 vom) le eee ee S.o-pta)y => elp 210 4 Ip stoic variables can be aceertect ett oj prenta A bg chard name , but Te fe Recommencest to uu cls none. Witkin the tows clas ne can acces ctebie vertables alicedthy % A te mut vequited to ute cla reme. ex Cen Teak Static Prd ae lOs es yv main(—) Teck bene Totty Sop bay) S-o-p (Testa), Sop OFT > Fo stable veriantls we are not required! he perform fttiwi— zation taplicitly, Tvm oid provele cifonlt values, ~ Chewy Text Sf ehatic Stang £5 static oud ls Ps ov me) + sop cays 2 null yy hop; 5 gf! 0-0 PLOT NO.56, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 34 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL > otedtic variates ane alto known oy clas level of fie. € cls Text fat g = 205 Ps vo me) t Tet trenends Test Cy tena Bee; Ely ean; Tet trenew Tete) oT £, Sop (toad. ap: eee 8) Lecal vastolus 2— oe tu): 3 e [> Sométimes “to meet temporary oregud Lemnende + the le eet we have ty declare varialls tmeicle a methed of Heck of Construct. Grech type of variates are collet Locet adder A Tempotony votialls ot Pritornatic varlablsg, ot stack vatiobs . Local variates wit be sted inside Stok . Gu vakialles wit be created white erecting the Leck in which we declared thal variable. One “thet Leck expcation complelit automaticly Local vettakles wid bee deshrogest. Hon th Seepe Of decal variate fc encclty came} MS the scope of the ocle in which ne declared thal variable. tee Tat o rev m-) a] a Li teo: Bere tage peste |ARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 40 SCIP MATERIAL dali joc, Ses; fro codehy (NEE €) a is 4 goes Sop Cie 4G} CE t cannot Hirsl ogee yfo-p Cie Aymbel + Verio j Location? chars Tete 5 Fa et vattalls, Ivy went provile omy depautl volnes compultory we chewed perfere fittialixection orpliritty, bebote aig tthek vatiall eat clay Test chow Tet =} - peov mle) aa vm Line as i es vastatle + might S.oop(Hette!)! So-ptyi yet have been os y trttiieLizred | exp = Holle Any Tes len Tat L L a) thay Hf (ate tengo) oe jem Taw el lee 2Ip 210 a a 7 java Tethel horn obp +20 3 TLOTNO SS HARSTIA CHAMBERS, SAI NAGARNEAR BIGC MOBILES, MADHAPUR-500034, NOBILE:9505905766 4 [cura sorwaresoumons SCOP MATERIAL bet?-@ Bt fe news stecommendesl te pferm inibitination for docal vortates fnaide degical Hock beeoz “thie te me guavantin Fa the eneention of thin Bucks always ot ductive, @ at te highly aecommenctet to peform Pritintixation fot local vatiales ot the time dectaratien atleast wits defeth ae Note i—The onky opplicle medifitr fol local vorfoblus ik final &y mittoke if We ore aa ate amy offi, moclifien ne will wis ext cle Tea L es ae police fh ante; vo me) private fuk a=toy protectes int a=10> tronsient fat 1=t0; Volatile int rato Static. Trt a=toy ee ee ea 3 Notet— Ep we are not declaring ony modifin then it tcp by aefoult, Bud this rule fe applicable only fot tnttamen andl ctebic vortotes but net fol betel vartattes, Mole:— Fet frutomee $ static varices avm wil alway provicle TT aufault velvet and we are nok requitest to perform fritietination sa plicitty « Bat for Local variables ave wont provide — clefautt vals Compubiony ne have te pefsorm fnitialinction exphictlly Lefete ating kal varintole. PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 qr DURGA SOFTWARE SOLUTIONS SCJP MATERIAL en: das “Tet | t Mk 45 Ps v me) Tak tenew Teatddy Sop ean); => elp tnutl S.o-p(t.alel), SRE NPE P 4 DE > 3 3 tance Level s— @ inked r=new MCs} eles] S-o-p Colj-a); 20 ¢ CL 302585 Otter a3 S0-p6ebj- 9); rub S.0 9 Cob. x00), @Einre) Sep (ojeacer); = op : Stabic wel @ ctebic HCI anew MtCs]> Sop (a); Dow: CEser5aF © stebic MCI ay @tele} Scopla); =do4p toatl S-o-placed); = 0" 20 Lecak bevel 2— © tatca 2 @® itt] r=neo itis), [ sopery; Ce: vastobl & Sop(ay, roup: CT SPAS Ge . might not have ~ Sop (ated); oy op x0 places a ie) e ); =} OlP clement by cefpawth Tritistined re wile One, ove crectted an away ewory static of frutanee with, default values tery pectic a, whith ft fe AK bocal amray- | every Vatiake jn Java Should be efter primitive A ference Every variate fo Tam chee be eM Fritance A Stahic & local, PLOT NO.56, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 43 SCIP MATERIAL pei combinchions of variates DURGA SOFTWARE SOLUTIONS mite Stati local Ent cleo Teet- static ink [2103 ——> Shebie — primitive, WOT renew tts], —> fnttenee — reference Ps v md 4 Stair a2' "3 hocal — amnte . yt so gs cae 3 Note? — Tnctance vartalis wit be tHteted in the Heap tea chatie vasiabiy will be Stoted Th Methad ater amet lcad veriobiy will be gt So Sime Memory. 4) ves method :— > Util eg version we can't dectare a method as quenenlé a Hore Te a change in ne. Bf quent compeltony we Sheude} cleelare a new method, whieh ineveares Lengths of the code $ relucs Te o i LA Ttvecluced vot. mnettioct vercome this protlony sun people wehaaky mele Compt ty 15 vebsien, PP Herne rom us version onmwarcy we can cleclave a method writs vatiole no. of eerquenete tush type ef methedy are called veK- 4 methods, We can declare a vor — arg methecl a4 follows watch, With vettalle no, a x) PLOT NO.SG HARSHA CHAMBERS, SAI NAGARNEAR BIGC MOBILES, MADRAPUR 500034, MOBILE-SSOS905706, at |p re can co Th rethied by patting amy mo % DURGA SOFTWARE SOLUTIONS SCJP MATERIAL fe veboey Trotaching mus numlet alto. m4cy3 rnd (to)3 LU mt (10,20, 30) at ‘Test- pul stab votd miCint.. 2) &é op Cr vah— og method *): y Pc vy mC) L ae ops van method Va method mt (ie); athod mt Cto,20)) vernon x nternally vak-errg perownelin implementa by wetvg t-dimencional on at . I Hone within van" meutked we con clifpere stint. on quenente by ear day Teste £ CD ps vm) mtCint.. a) sume); L Stu (10) 2-0); Siar (10, 2-0,80); $v sum Cat: 3) we ft total 05 GaCint 2a) Mota e totale 5 bh Sep lth tum 84 bob al)s a TARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:950S905786 4s _| DURGA SOFTWARE SOLUTIONS SCJP MATERIAL Can: Gt whic of URL cfolroing ven ay method declatctibry mre valid? | miCink... a) O77 mailing say ehipte mi Cink aed K midi a) X md Cink on K wt Cte. et) Cote Qs We can mix vak—arg poramelit wfth nalmat padameli, alee. AE mink 2, Shir. g)—— ma Cink a, fate. yy |Caseltid: 2p we min Vad maty perometis wit olmal prkemebir Hen tohwnhy prvemet cheutt be the lait partamdti. a mt CString. $ , double dd X I miCdout 4, Strteg. yum MDE Tn var—aty meticod , re con take erly ome vat — mtg prom ctx otkeqwite ne- wil get SO. © \s Gar mt Cin. a, Shing wx | Case? xt clay Text L ps v miCint 2) ep oc v main (—) t “ ): L yor Gerevel method); m0); =) OP t vor metic 4.10, 20)) wy lp eva ps vo mACInt.. 2) waco ©) aIp vaAmaha method a x YD Ow: Gener) meted S.opC Voda smnettcod"); 3 46 _ — — PLOT NOS6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:950590S786 | hh geet vaL— method mail get beast priority ney fH v0 oti, method matched “thin cod Val— ota methed will get the chance. | Thig 4 ernetly some os defrull Care iruiele switely, Cue: | ea: daw Tate s v mi (iste +) sv melite 9) AGS wm lo pee ee Nea cad ear oa Coie! Whereas 4-9 array prumh we can veplaes. 01th vat ot porometey , ear mitts a) > mtCinb.. 4) main (Shigcs ary) D main CString op) a | Cased: Where ever von — og pramilir present we cast weplace witty 4-0 ; Ext miCink.. a) => mi Cinta a) XX } m1 Ch m1 Cint CI 1)X ‘ miCnas intfvo,r0,204) = mA (new tb{to,204) —b> x msc) m4-(to, 2-6) md C10, 20, 30) ——— PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505903786 ar Sd NeeO: miCint.. a) We can call thy meted yg parsing aor % Fat Valuuy ancl wi become 4-0 Pat arc Cintca 4), Nole®: mi Cito... a) We can call thy method by paaieg a group of 47D int orm and 2 wil beeeme 2-9 int arrag( fat CACTI a). Ent elon Teel t Psy me) L Trtca ax {00,20, co}; WEI L= 1 40, 52,60}; y at): Pic v ma(intlI... 2) L do Cittd a7 2) u : So PCAC =) o1P #18, )) 3 <) mato) method? — whether the clan contains maint» method ot act f whelhit main) method tc properly dectared a ret thete things went Le checked by At auatine Jum fe reuponcibte to check thee things. fit pustine vm is unable to fine veguitesl main) mettiod [ken we wilt get fe saying, NeLuch Method Cart ¢ matn, ext eben Tu oe jevac Text jevaed UL y Javea Testel ; HARSIIA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE: 9505905706 +e DURGA SOFTWARE SOLUTIONS SCJP MATERIAL — fAb . rudtime JVM cboays seateheyy fot moin) method vik | he following protelgpe- Ah Re perhern ang changes te the above fyrtan thin we wth gel RE saying, NeSuehMethodtrrct t main , [> Eventbionghy tke above spe ic veg Shrict he fouewing Champs are acceptable, © We tam Interchange moclifier olda ine.) Insteod a public. sabi. ~] me cen bake state pallée. @we an declare eda in ony aceeptalde form. main (SttrgcI 2748) main (Stating Crarqs) ad Cstatng rd) |@ Gntteoa 4 ay he can bake ang Valid Tava fdectifinr. @ Trttenct of Shige ne cn take veto ate prtameter, [ee sheges 9) D mnen( Shy =] @ we can declare maint} method wits the —folomoteg moclifies otto. final Sgmobronixeel Shickfp er LOT HO a HARSHA CHANEERG, SHI NACARNEAR TOC MOBILES HADIAFUR 00090 MOMIIESSOSOUSTOO 49 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL ext day Teat- ea ett fined tgrchronizcel shietfp pattie vere} main Gig. { Awtga) S.e-p(' valtd mata method); J op 2 Valid wath method. . Qs which op te cfollensivg are valid maint) method declaration KO patie catia veld mato (Stig ary) KO public sta rotd Main ( Shigca ary) xe pellic votd mata (Shiges ory) FO@ prtice tate fh main (Shringca angs) D dint Gmetwonixed cbrictfp publoe vote waain (Chiges <5) ® dit synchronined chiettp pullic static vetd main( hinges | Le pelle stotic void main (Ghitg... oy) Ue BE In which Oy the obeve caves we wil gt ce. ned fnsi We won't ae compile “Lime erro oy horn. CoeO! Overteacting, of the maint) meted fe potsible, bak Ivy win obo cll Strings exgument main C) metred The vote, evertoockal methed we have te coll enplicitty then it win be executes jute Uke a Hormel mothoo call, en, clay Tet TOL Pf vo main( hinges ory) ond 9 Ser Cetrigea)s & Ps vo meinCintca ary. 134, MOBILE:9505905786 DURGA STWARE SOLUTIONS sopmarena | Car @! Tnheritance concept fe apepticalte fel matin meted, Hence htt enccuting chitel chars tf child doen't cont ain mainc) mettre thin patent clay maing) mete will be ene.cutil. els ?P £ 4 pov main (Ghivg c arp) fy ¢ \ « S.op Ct parent main"); 4 chy Cc wtind P i 3 Cote(tii): Tt feoms overvidis tat fe fe met overciati concept: Uf He clay ctoesn't Contain moin@) melts until we sot get KE Sagig » NeCush Method Erret.£ malo. le6 version > Rak from 16% veasion enwarl Initead of No luchMethoderrt we will get mote eee git errch taper ction, et dan Tat L 3 1.6 veuion tog vestio) - AFfovras Teel. jovncs Foren Tub jevec! jova Teed joe Tete exh Moin method net found) in clan Tet, please etifine URE main method ast LL petlic etatic void mradn (Ghingcs orgs) [> Until 6 version to min @ Jove prope maint) meted be net mandatory but from it veeston onder maind) melted f& [> Eventhough we ove ad ati Stabic Hecke if the claw doen't Contain maint) methed ‘thin it- werlt be execticl. ex lin Tue Stable 1 S-o-p (Htatic Leck" )s 5) nb version lee version Upc Tuts jor d A jeme Tab jovet PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 se DURGA SOFTWARE SOLUTIONS SCIP MATERIAL java Tet dd Cadi Rain method not fourd RE: Neluch Methale rat main a clan Tek, please olefin ti main metkod acs pollte shatic void main CCMry C1 47) ext clay “Teet~ Static Sop ("state Mock"); Systonn. enftco); Laverton A jenn Tatts joer! jove_Teet-el Seve Teed C= Mam methed rt —— clan Tet en: Stable a le Sop (* Stetie Mock") an rain (Steiger ary) wore S.o-pC main mettod *); J be6 vest ton Lip veut fon Ajome Tat, jovnel A4prec Tub joel PLOT NO.S6, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE:9505905786 53 _— DURGA SOFTWARE SOLUTIONS SCIP MATERIAL Jee Tutte joe Tuk cp etahie Hock dock \ Cp: ohobic Luck accepua math method 9) Command Line. 2 The arqumeti which ane = pau from —commamel prompt are Pll Sd Be ae , Sermon Line arguments. ai jewa Tee a eed ey pod anys C13 3 1 Sete SD Te main pape of commend Line or quent i ne cn customize the tehanieut 64 mainC) method. GQ: cen Test es vm jeve Tet a Re cel aps a c Res aTcoRe £ ae imo; % Renate 5 Ht) S-o-p (orgacsy)s 4 play 3 ap: 4 J ae ge 1 AROOBE jou Tut 4 Bd > ff we scplace ce! wit < they we wont get omy Re, Er@: clay “Teak »% ede] 1, 5 main (Gainges ong) ares « seages oghebeeyvey ors argh 5 el PLOT NO.S6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 54 DURGA SOFTWARE SOLUTIONS SCIP MATERIAL . Jove Tet ae cg Staing ft fo C Staring ~p) enrie L Joy L-0- 5 z ray ove Tet op 3 ey + z Jove Tetet 4 ea on: NxXX JR within Ha maine) method Cermmamd Line arqimenty a7 ewallatle Tn tte fom 4 Stata ‘i ely Test L jeve Test to 20 y 0) Tava Cectire Standards i— Stamler. > i te highly recormended to follew — cesti > Dhenew& we are Waiting any en method tke name Cheutd iblect~ the puapete of tab Comporout: ‘PLOT NO.56, HARSHA CHAMBERS, SAI NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 os | ouncn sorwane sowuTons SCP MATERIAL THY approach improves seadlebibily ¢ matictainaktlily of he code. ex ol + prekage com. dbusga cobty 6 Usually clan nem Sheutd be nouns > chet sterke wit uppercase cheracter $ ik mutlipl wevels Cor? Ime. wore thentd Stertr collie uppacase Chorockiy, r — He Contedting Cocking Stomdorcls for. faterdeees + > Usually tittipece names are adjectives, Showd shar wit uppucaie chatactr § ik tt tontatu mttijle wotds every tnrtr wore thould Stavte wil uppucase Character. Sistine “Cunnate Rendownfic ead Siogl ThreadMocte! en Adjectivy PLOT NO.56, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-500034, MOBILE:9505905786 56 DURGA SOFTWARE SOLUTIONS. SCIP MATERIAL Costing ttemelarey fet metheds -— => Veu metiool nom ote etttin verte of verb noun combination | fa: Ls oak =>) verb—noun > Method names thenwtd Shartr wit loweaitere choractrr 3 if TE Contacing multiple wWovels Coed Toner werd theuld cherte wil ppeitare chotactal Camel_cas convertion), | \ { | Casting stonclarety fot venialles i \ l > veu Varials remes are nounk, 1? Should ctartr voit Lowercase charocta + jf ik contains mottiple Werels Frm Werel chould stertr wits upprcare chotactit, | Comet care convection), 1 eat ‘me See i nous, I I l " Cockieg Stewclanels Got content p>? Os centtomt names are OW, 29 Should contain only Uppeicaie chevaclixt owed fh it contains > ne words thy each weld is fepatated Wit Unditecete ! { 1, 1, I —S————— | TLOT NOS, HARSHA CHAMBERS, SHINAGARNEAREIGC NOBILEN MADHAPUR-S00004 MOBTLESOSDOSTOS f St DURGA SOFTWARE SOLUTIONS. SCJP MATERIAL See Benn cooling _stendonels | — A Teva Bean i a Simple chess Rt private. prepectiy I. owel public gett £ cotter metho: ent clay Studout Kaan t —_— privste Stig names pric void setName (Stig rome) L Rij. name aneimes Clay nome encly wil Kean it wot etficiok Convection fron £06) Synteon fh sefit me = > F cheutd be pull rnetiod. 2 wetivn type Shoutd be vere. PT method name Should be prefinest ith cok 7 Metted chenld cCompulidig take Some arguments Sarton dot gett meted — > HE shold be public method . pF THe mtn type shouted not be void. PT meBiod name shoutd beprepired wilt > Bt Bheutl be no iat Let we Nete:— Fot the boplean opera Ftd name can be prefired with et get ot Te amd retommencdad to ure “tc Privat, boolean empl, on boolean gehempty C) f ratiine empl pubs bevlean isempty cy \k rotting emptiys PLOTNOS6, HARSHA CHAMBERS, SAI NAGAR.NEAR BIG C MOBILES, MADHAPUR-S00034, MOBILE 9505905766 5g DURGA SOFTWARE SOLUTIONS SCIP MATERIAL Coding stencils ot _Ltelenere SAU U! To epic a Lithewet 2 PF Methed name Should profined wilts add, Ea CO pullic veld acled My Action Littentt CmyAction ittent, &) XO ple void register my eierictowsr (May Aebienl thes, » YQ puttic void adaintyactionLidtont (Actiont ictema 1) HO! To wnregictet a Lister The method name cheulel preficecl wits remove Gie® pullie vold vemmeve MuActionL ist ona. (Myhctionl ates. 2) KO pubic void uniter MyAcbionL store (MyAetfonk tttonet L) X@ pull —vetd romnore Mey Aetioel_ttoves (Action|itewer L) x®@ peer ete debut MyActiionL ittenas (My Actionk tstomes y» MOBILE:9505905786 [ DURGA SOFTWARE SOLUTIONS ST eT ES TARSIIA CHAMBERS, SAT NAGARNEAR BIG C MOBILES, MADHAPUR-500034, MOBILE: 9505905786 eo SCIP MATERIAL

You might also like