0% found this document useful (0 votes)
50 views113 pages

Java Part 1

The document discusses various programming languages, categorizing them into low-level and high-level languages, along with their advantages and disadvantages. It highlights the complexities of low-level languages, such as assembly and machine code, compared to the ease of use of high-level languages like Java, COBOL, and FORTRAN. Additionally, it touches on object-oriented programming paradigms and the importance of platform independence in software development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
50 views113 pages

Java Part 1

The document discusses various programming languages, categorizing them into low-level and high-level languages, along with their advantages and disadvantages. It highlights the complexities of low-level languages, such as assembly and machine code, compared to the ease of use of high-level languages like Java, COBOL, and FORTRAN. Additionally, it touches on object-oriented programming paradigms and the importance of platform independence in software development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
Ane considered as , Lou evel Jargquages: AS). we nite: tesack with computes sth + Bath’ maine W- assembly anguages machine specific code, cove woitten in these ranguages. 1 fess. GR NO abskoaction. These languages fave some disadunntages IE © © Dipricult to tenon & poactice, : @ Lengthy code a © code changes computer to computer © digricalt 8 deq © pow nesintainabilty # Sigh \euel longuagss + : iL, FORTRAN & © ‘ope considened ASIC , COBOL , FAECAL hind genemation fanguages hike 8 woiges howe the Fallotng os High teudl languages: These long vorquages. @ Easy tw tenn H develop opplictions @ tess cake to waite —@ Engy to debug © atic cnt aduestages us) Ou! el @ common cade FOE any Compute tiny. %& paomamming pgsadige* fArcsnding © Be Stile oF poegpran © Impesative prmasign @ fooeduaal pasadigan © Odfect aerted proadtg” oe ring, pooggramming Kanguages ane chssired #0 = SIMPERATIUE PARADIGM - 1 Languages’ fee machine assembly, & BASIC Fellows ‘empeontive approady wihene “tie to toto) application is deuclped as a singe faegram: Te leads: to -mrany discduarbage: © Lengthy. developraent._ me waste Airc @ one x tag POOPIE cam be Trunluad tm devekprert @ Need moe memory, to BUT the application @® Digricult to debug and modify 18) 0] © scanned with OKEN Scanner c pete F Longuagss: Wee COBOL, PASCAL , FORTRAN & gatas apsonc obese. i oni ‘ ag graded nto rumbear oF edules ca. functions, These funeBONS ane deelopay *ygited “ay Wniutdual poregparmmess ‘and then tnteqpates so 51 OPpCABON. Te rerge) & ‘rary. ddvnnkages. © no-oF People cM be Thad In devetoprnene © Less development time @ Fagy to debug, W medi @ HRS fess memory, @ rustle, | OBTECT ORIENTED PARADIGM ~ Languages ke ADA. SWALLTRLK , SMULA ond ca} made a i oo re wohesre thre fotal/agplestion "is giles nto ruinben of objects, A the 40" fallow the. following, object: caierid featuons, a @ Data hiding / pootection © Encapsulation © Inhesitonce, ® Abstopiction © fokmeaphism © scanned with OKEN Scanner = SRE De to a * = ™ “ ; Platgcom %s the combination of amchitichane m opemating system”, thOk eens Shuiorment © to instal! and ‘execute an appltenton. Re saste code wohtten to any, language ts compiled ly Ake compen AemEding, {© EAI platronm Cancritectue +05), “The erecuinnle code genesis fom one, platrosm cannot be executes ot aretha | Plata called “Piatgoom dependency.” [Link] aep /Teabo cpp hol tailed fapp Same aE co =f eccaren | PLATECRN. SEB + windous 4 is (ufo vf, & aeuit+uin ce bitrwin of bik H Ln wisi tellin op aidan pA ved i Histo BTR Eoin 1 By Reo exe, GMs a. red OF plan rcpt ‘qgpances busing (090 , an wieso-aptens AEP due membos team vended by Li Josweg: Gassing called» Geen Forks HT 11 Tames Gosshing “team tras’ developed x playin independent largung® cated Oak, DP lemonstenied oak ao. piagaim tndepercdent language Xp! rome, apphances using. singe touch sabled,-devics cates’800, tonguage. to contao} elecioonic Fens. pat. Gossting se000 contoalling electric . “Dusting IFAS | Cak wns owen by Onocte conpenation. Now, Jaut Seramed as gHUa. Dusting z% , Sun wea -systers 6 lenge AS the product of Conde ceorpeornesn. * yess gf USES fas —> dak 40. (Jaua Development 6) ee > gk 22 — TeSe ~ (Storch! Eaton) = Teee (Enlscgnise Edition) = Teme (motile Edithn) ddk 6S x Foom jak 16 — Java sé Jae 18 oa E = java ME Jdk 10 jak FF latest veson © scanned with OKEN Scanner Pee eee Syernieayt Heo Jou, PN ee tdliosétags 8 commun; -———-4f. ee cone) —_— i ia i Iv La ative te wative exe ; i bie + RUHL ott Mae # Jou vintanl Madkine | TE 1s 0 gackintn. npemerid My deem sony em Uns, an porte fo extay 0. Te TS © soflunse erufnonrer:, wants fe « mackie, 20 called Vista machine. Te % wlth the combination oF Joun Yakenpaeten , just in time conpflen (SIT), guobage ellen (GO ond hoead cchesluhen. he” GUM cheers fhe ety dae cotta” # seid the byte! [Link] -[Link] om TIT “age dae op HE ess thet he [RL snudagoies FoaSIle Me cade send craiue exe 40 the fasdunne, Te the she’ oF code te worythy then , Jrritaarelales the “ade tists fn fhe! TUM, cache. whl: be, meused where, , the sum) option see “that seduces; skaotup Ue. nals Gantiage’ lls! Jeetes dreised objects hs TAi ee shemtage ee resto etentig ‘TWeree, scree, bes 1, eUE, mUleple funEHNS ne deus past, gppcations. E pcticttldags 81 SR en ph sales. css, set uin HAROWARE, © scanned with OKEN Scanner ye TS Tum pokzoom dependent «Ms perder ‘prs Sop SY (ones) ae, tcisis Sie ee NRT i é L pan 810 icone U0 : 1 craw hy) jaa HR tie) argu | as vert Tan Ranting Enioument | SE wild Al gosh reassess Sales: cass } same Janay tng Fh ting ass jon a — [ae a fare coe vERIFER bps ‘zum RAROWARE ae TOK: (Gave Deveorwent «eT computer 5 pelo ah TRE, Hence au cxpltcaons can be excited NO Exeoy carpets pautdes (G0 10 CHP cond delng 0 Jou ogpam UE ness EP snstatt "ia to reue jon deuclpment tools nstattation ~ FF paantoad ary 17S (ong Bme SupASE) LEASON oF gary jak 19 7 wiesous xoasr Install 5 pwantends —7 double ck of) Weer GAB widens 6 * 4 sie wed ae changing he srstalniion lossy? honge bacttitied ¥ govdion eat De Tas | (0s paces) Vv 4 © scanned with OKEN Scanner = jab Gua aetuggs) = gear (fous ppientonfaurch) = javap (joue ais -assernbien) " esting the fostttation = select command gorampt Fel - ond d c:\us@s\\cloud > Jaws -— version d ev lusens \elald > Jaret Ae isa command line tool intsodusd goom ' jun’. Te i j tcop) tool TE is used to test the Jaun code. | opssing dshend | e:\usey Neloud > jshell ct TRUM A, | ah ‘ oH St ah nak j ; : i yale 4 yal ‘ “ oe b al 8 Syste out .pevity C"Hete uot”) 5 7 y : PT eb una ° 1 yw bir pan cations Abd iT va Pity said = ehonlwest « 2% Exocutng 9 Jun. RFEM : SHP 4. GHeale. yous Penson! alder. > —y joun23 4 STEP—2 + Open command pmompk in your psTsndl Felder.” PAN grigranity SpgType, ed by efikingy on,,.¢: Wound ond fit enter e:\dunas> te PPA y the ae oF the ches GFE sae amd coptbatized. ee © scanned with OKEN Scanner a NE Pg ME eel ee eee Re gen LS ages its e\puaas, > /roteya peta, jou, as Se as 18 Yetlo i 5 Publle Stable usid méin (Stang tgs) t System out-posney "Helo wna”) 5 sci ¥ “Men, Soue —> cals . STEP 4 compile the Jona : : NURS DYouac —_Hetlerjoun! 4 Wetlo- class SVEP-S + Execute jpumn pooOM. eAgnvaa3 > jauia Hello < Hello wold e:\jouns > FE WLAP. to pointe Youn addiness, ” . ” cas Tyate t Pobic omic usd main (Stoing ooyse) t Syptem: cut. inte gue evans") » ‘Systern out « paket: C"huecm Manas Theatre"), SNS FT } Als foxes Quitput : Take sdukionsfleas Manas Theabrekaualt nance FE ULA-p- to boKe bso ThkegEAs ond point the Sum oF them, public class Sum i > * pete. etc i main (Staing cogecd) < =atb; Gystems out: pointe C Sum Ad Yn" 6) 5 eee i ee i on qukmik : Sum 65 © scanned with OKEN Scanner r pe to tare the pace qpnmbiny, oF FRAT oe class. Billing, onietaask T puoi state wd min (Stairg G52) P awe pace , Bil 5 ee fot BE ji pice = 459907 qyy = 135 want = pace RY System. cut. patety C Total 60 } ‘qutpue: Tota} Bill? 54.0000 > Accepiog sate. man ths Sa t Fimpestt Gawa. util. A 5 Sconnen sc = new Seannen (System in) ; ime % = sc nent CD; loa y = Se-next Float ©) 5 Stoing, § = Se nestLine ©); t A uvap: to accept the logh ,toeadlh of a sectorge ad pint: the one, pat im Impsot joa. uh; 7 class Example t Public static Uoid main (Stoingl 1 ogs) * Scannen se = new Scannen (Systema) ; : qk ten, bre {a Ps System. out:. potets C* tenth :*) ; fest = sc-nextne 0 5 System. out - printf C Boeadth + tne = Se- next IEC) 5 pe of Genstoe) j SS ae Ion * Be; © scanned with OKEN Scanner Syste out pty Canes! [Link]. pointe C” Resimeten: Vd in", P)F mes ; » Jnteee 5 ot ee i ae QutpUE Length: 4 i too et aly Boeadbh: 5 fren: 20 : Penimeter: 48 K Wp. bo accE x9 TOkeYS ered point -the oun, subtoacton ond peaduet, ioopsck jon wil; LOSS. Example, , a t eters public static Usid Main ( Sining oogSCI) 1 Scanner Sc = new Scanner (System-in) j nt pin gee , Sm Sb , PPO ; System. out pointe (Fink numben gi = SconextMte) ; Sigtem ou: «pointe C” Second numbem :") 5 1 Bec = SC-MEXEEMEC) 5 sm = fin +sec; Sb = gis x98» poor fin # sec 7 ‘System. ont: paints: Csum: tg wn", Sm) ; ‘System-out -patsty C” Suptoastion: 4g \n"/,sb) 5 System-ouk pointe C” Paeduct: yg Wn", p20) ; } vat 5 ugk: Frost ntimbeos 12 Second nisnbebi? 15 gum: 8 ubtenction: -3 ° Potoduact: $30 © scanned with OKEN Scanner ‘te an 88 te ST op tile yy: jy Armpont: Joun-ulSh > public class Main dies tne static usid main CStoing osigsC) * eannen $6 #068) Seamer (Sypten.i0); ine fot ys subg: “paice ie 4s 0 ah ; i 0 float paice , bill, dis, ribill "ind ‘ ,, toni © oy ana Syptti out [pile Cpe "5! “Teta Gill 2 Seaqo0 poice = sc-nextFieak ¢); Sys. «pote Suantty: meet yey = Sc-nextInt >; ; n bits ca bill = poice * qty 5 I dis = bill ™ S/o + : soi nbi bill-dis 5 + “ Dag a ee eae raps to ccnept: he pice - HOME OF Prose APS fey dada System out. points (Tots itt MEAN" wl), |! ° System -out -patnte C''Discoust: 7p tn" dis) 5 ial System our ponte Cnet bil 7g Wn") nbs); y t 4 weap te accept the rome , place amd the pin FoOM Ahe WET and FoiNt ‘ie Adderes, Timp java. util. ; pblic class Data, t Public seathe void main (Sting cogSC3) t Scannen $c = Mew Scanner ([Link]) ‘Staiing nome , piace toe gin; System. out - potnte ("youn name :") 5 FAME = Se-nestline’ > ; System out. potnte CLoeatin! ) ; place = [Link] ; Sqptem-cut - FORE ("Pin code") , Pin = [Link]) ; System. out. points (YAdkiness vn System. ouk « ponte (“name ts An" wamme) ; System ouk . porte C" Location yg, ‘9" | place) 5 : ‘System out potnte Cpinawte ta vn" | pin) ; SMES Yours nome : | } i ; 7 Location = f Pin cadet ci) Adds, © scanned with OKEN Scanner # What Jp gaug 7 Tawa 1s a simple, may, PARTI independent, HP ASL Seamed». sobust |; “soe typed, Sictibatas , passin EGAN ys Sf Gan wes Men ite ' Smariese past of any” Jac ogana teas! ganar token ACCES ee these tokens ane dlassiied into - oo © xeyuoods © Tents © cononts | utows © opesHoesns > weymorns O75 These. ape the weseed wena the earn oF which 6 dofnad by SINAN: Cvigraity Ahoe oF So KeysENRs Intoodaad In qHN, GUE oF WHICH, goto H case Inaie. no guncsonaly. By Jk Lt , gbr atten eayarnds wene added They cme Stotekep , eum , assent ond = | Foam {dk 29-0 , Kegsords ike an, module , expos , remaIDES , to, transitive open. opens. pReNideS » with ond usRs ane Iotoodused, A these Kayvonds (AER ee pire . = ctass Main € atte sec sid rain (Stnifgen g6) t Wom € = 505 Musing wast as Keyoroe System. ont .painte (Fa mn” =); : : : . rr * public dass Main Ppliblic static old main (Staiingl] adgs) i Yok van = 45; Musing von os ident Sqptem aut « pointe C'%d Wn", waa) 5 > SDENTIFIERS ~ hve Se te the rome with wich we can Wenty, a wariable , ym een, pune, a class ,0 portage (29 a madule - “The allowing putes % Totnes “owe fatoued while setectieg an Iderdigice. ® spaces eve ref allowed. © five chooncken must vot be acTye, © scanned with OKEN Scanner Hees nitatien eGR. * © rote mst: elles L° z SyHh2 8 gaen whan @ only: underccore—) A are allowed pur moe oye ® Keyuroas connate used oP eae we nel PO las 1 aR 8 po aestioght gees oye waa aa ag A Nga oe Sean RE ay be in > Fiore vai 16 etzoduced ae Gama. TE, 1S, coment, eens by tong $251 % ctags Poogh Zi © ie stntic uskd wain(Staingt 3 ceg°> egy es rag Semon ae Cm a 8); 5 e 4 z bon ny “dil haan 0. pss > Thee cots comnts em ty am gar oma SE he Foyer veadebilhy, of te cde. © Wore of the class , InkenyERS He wwitten if) Prscal cast, BZ Semner , Dato Inpaesteeam , PoineStomam @ swans of & FuRetion oh a mmehad must Ee incase Ge meBTTEC, nest Bnw, neeiDaingseamy, spiatsTgrcegase< ) @ contants mus be nition in copltats, Be FE, & , MM_PRORTY | mex —PRIaRMTY “ We iktug + @ Veolables ome vtsitten i small case. o BE meg, stm, date > constants — Bee ore Fe wales at we ease Wo the compen meme, cing bo “the these constants ame ciuscigied ato — - @ Integy constants rel nae @ Frosting pee | eal orstan oe © Single chook contests : : : @ Stoing orstant : © scanned with OKEN Scanner Naa Ee REE En te ee dt} enn Ae SNR corns: 4 (ot Tote eal tae NO-9). EX 4856, ESAT, S25C8 pote WE b,c; a 24sec; 5 one b 26943; chat; SUA: 310 e Y aot #8 System. out -paiinte Cva" .¢) 5 x pees Octal (o-9). Ex- 4529, sexe, 928d i vo itoena i : BR at oboe; OV ee gS EF OM UB AED O=04ss3, 43 160 tor v9 ee b=06943 © 6143 cat; issn e ee ubpue 8826 System. out. pofinte Co,” ¢) ; que Hemdedinal (0-9, 2eFS .432C) int abc; 5-3 an a 3238) s 1 Sq ABCD ER IO MA eA 30 $8 AC. AF = OK 45A6 ; 20 FRO FPF eee b = Ox D236; pr36 cratbs System. oulk: pointe Cr". 5 sutpuk: ADC Biraay (© 1). Ex- rect, 1e0H!o! Tak [Link] © = Obitoott; toc ob toll; eat; System . out paint Cra”, OF sasepuk: 96 = System - out. paints: Crs", Trager. koBinaaiy Stating (©); " ukputt: tao'oo" ay si wi note: cckal - @ as prerik OTE: gata Species a aah td ~ dedmal &. ad 1 ( joot Hera - Qa as pret Fain Binary - Ob 96 pore x Dex He OPT Nore: In on cegpn esto we give operands, “ev diggement;, mumnbeniing,, systems aren trey, would best qonveoted , nt, ducial ond, hen, eperations would be penpocmed. AV) pen © scanned with OKEN Scanner art be nsed © poriat: RNS Wt (a,b, c,d, 95 i ie Des as eaat; t= cease > : Ss BX AFR 5 y gukps: SANS Gi d= GbNOOINND 5 8 ONES oye OxeIt System. out - pointe CVs" em), : System cule « points C" BM = AF bICHA eg eae | top dot System . out « patinty CUE x Yn", em) 5 Floaing, sine [Rent corstss! Ne DL eaege 4 v Fixed notation 12.28 , 16.32, la xeee : Exponential notntion:- tase-2, icgee-z Vex” ES, eas double ab, 6 5 o tsp ages : a= eese-e; Tes 9 HEE 5 yess to b zeae e-2; v in: 409 west é cz ath; A al ” System ou « pointe” he wn" |) 5 gakpuk e- 59 7 , [Link] pointe CHE Wn" ©) eT Ets an + sak 7-889 x10" ¥ are Bh cows fumarase ines) a salty Osan yay 7 i ORY megatioe rumba: divided By o(Resutts, tnptriyy: and dividing’ o ith! 0 “Seslite Voda. “nginity , —ngieity amd WPA con be gesre : a + ‘nko omy Floaking, point uastabie. Flat qb.c, | tee’ siney an Q ~ WD car © = (Float) 12 Jo 9" * b = (qloat) -el0 5” 7 + Gleb) ole oo System - oub-upotieg Che 0" a)» System out. pant” Ce yn"! Bh y! System. out - panty CFF Wo", cy; © scanned with OKEN Scanner a Se Tet paid To ‘mpdoue ‘he meaty of « nambin, <_ yeepanaiom can be, Sed TH PINES OF fy HGRA ot ab; 2.48 564 v t 293-867 HM java nickabion as eat _sc; wed ae; System. our. ponte ("Sum tha Yo" ob) ; SEE HAASE 4 Single chooncten constants oo AVY droadss Bak is enclosed 4m sigle quotes %5 called a, Single chooacten, constant, NOTE: Mon Ergfich ctasadiens conte SS? ge xs Assigned Sing thin “unicode” Fe, a hexa-decimad ruber poericed oath ae cheer ch dt, eh phy che; dh = "Wuenes! eh =" wacoet! 5 17 en saspe® Sygril I fo us eins Sys! fh = WwOCS’s 7 fon telugu chasocken an. z I ‘ System. out . pointe Cree", ch) 5 “System 00k pit Cen" th) 5 Syston. out + parints "Fc Wn", eh); Sapte uk « pine C'Z%C 6", FH) ouput: Cra > * String constort + i Combination of chamactens enckstd in” "ts cated a staing. En! case! oF °C Hota need to Use char coma} to hondle Siping. En ASE OF TOUR, Seong Hype ts (Aanlescmeetigmeie system. suptem. out. pointe Fs wn", 9977 gutput.: Hello tis ts Igote i system -ouk «poate Cts a", wish 7 3 ello : 1 I %& Boolean constant = Im cose oF Clonqunge - any sedation! co legal expression glues cithea, 41 om B as the geagt, Dy gon, Be oesult oF ONY lao) 6 lagfcal expression ts ethers Cawe false - Louk. ponte Cb WW" 4 1020) 7 tant Sypter-ouk pointe CMe Ww", 49280); oe false © scanned with OKEN Scanner Tah ade, aid fe conetdeded! aS tHatiiig” conctnne”"” "7 fo Sai aa; i st = null; suitpule: rautl L Syptemout pnt OFS Way ye i f > OPERATORS ~ i Tres one te syntnt ak coe eh to FOES opis the cpr [ @ contend pom CPE iy : [© Assign, opts C29 4, of 4 i © Augmented assigning: openaten C4: ’ | @ nesement /ecement operates (44! 1B -conctenating operates (4), tdi patidilers opeccnds ‘ase etre the "Ydentigiens "cs “condknnts & wilo ys tate OPERATORS - Z ‘Tour, cuppent: the fellowsing opecatens, ; © Abithmnetic opeomteas (+ - & Jy) aati © Rerational opeoaiers (<> ©; Specialy openotess Cinaiamee: of 3 > C2.) ee A2TE behaves tke on Apthimetic qpenaton ashen used ‘in TE behmwes tre.‘ conentenoting operates’ vases 16 eB Sing UNE, ete cs on expen edly eH aga ‘curaloading, - . < Oliod ws 30 10" 430", > "am" 510420 + + CFO oy ° 1030 + “ susmio"+20 Ri WIpOL a anita: yoo oe 5 i, cin SAID, yy © scanned with OKEN Scanner Sing Chegy, ys String, y -" wood", Seong z= ary; | Sietam-out, padres, Cyte a") nek “ink Bo, see amy Hoses, sec = 805: * = fit sec 5 Stating enag = "Aan of "+ inva esis" bee 8"” 4887 “ System. out pore ts yn" , msg) 5 . Ja > 4 Sytem -ouk points CVs Wo" ,"sum“4 fineeec); ‘System. out « points C75 Wn" ,“gur" Fines) | muigut: Adiition of 45 and 20 ig a5 i Susn45 20 : gumas, 2 gutpu tesernents Yo. TOM + rag Sysiem ‘our _poanin "etto") 5 guar: Metlo System out pint n Canis"); oxsld ea —F System-ouk « paint (“Hetio") + fe WatooRHll Histo) System uk. point Cursatd’) 5 : ww @ > [Link]- pant 40420) 5 ute: 70 ec ratb; Syetem cut. poet CC) 7 qutput + 20 10 sapien oak ink Cum” +0) gett: SMB jay Hh AMT “System ot sino (Sun + (048). ule: S99 y a . “ord "+ pris 40)7 Sysiem out. paietin Suen oF +94 is 0 sirens 2.22 gutpyt: um of Waid 2 i rigguity Sane © scanned with OKEN Scanner Wa-pe AS accept tao Ines and pont “the Sumy SUOETT 1 jmpost [Link]. #5 MOSS PEGE pe schins see pee a * pute Static sid main (Staing’] ogs ) put? Frat rambo 45 : Seca nwusnben: ie } fe ab; sage | Seaman sc = RAS Scannen (Syskerd. 40) © ass ¢ Subtraction’ i System. xt. point: C Rost, eumbe oe | 0 = sc. nextInet 95 SF hac ! Syptem out - paige C'Sgrond, mumMBER) oy cyan” bbe Sc. eatin ) 5 as . System. out «poten C°Sum" pa b) 5 ay System-out. gsintth C'Suptoaetien ” He)” : i Sypter ou patntON C"product”+ a b) 5 a System. out posite C"pyyision” + Coton) alb); cgomtation Jn. rd i Comma iy Sede o oko epg os 0; commented 3s committed by Be compitetr Tale Sup: ee types OF cer t 4 | 4 © & Srge foe comemeres> If Single tine comments * @ Multi fine comments» /* phe ta ysop ® Voawrest comments */ bl af [wap te cscspt to TryEDS U pIME Ahan wales by Mendonging Soe mpc oun uh; i class Powys t i Public static usted main CStainglt cag’) | 4 | Scanner sc = new " Skanned System) 5 | Messing \nput, System. out. pant: Cotas wary nk = sc. neatinte > ; bw fo System out. point "nine go :") ; oe b= sc-nestinke ); I antexchonging, © scanned with OKEN Scanner azar, ue coe sig a fash Adesy ey ‘ot emp a; ab; b = temp; Ul Poiiog the esate oH Hey scan ‘Systers out «points Cas" 4a) ; 7 " karan System cut -goink¥n(’ b:" 4) ; vera Dole. Lys: “These ade the Keyurous used to allomte memnsy to Skame UolUES oF ARPREDERK types. oF Gipeeome yargss. Jour supposts the following poimibve ox poingay Lypes Tyee. a nice ae we es ent a eye <2 wo tA set 45 wis Peon ta To te ae AGE wD 22969 te et ng, eet wan gstatay ovenrtow 6 under-loD — ‘Asserting 0 uolit hot 1 mwve tran "RS pve Ve sess CURTIN. shan Rs negaSUe Fit aesuts urekerpaw. Assigging value ‘tak 1S tes undkelow measts mo ep , modigied yolucs wxuld Tn cast of C, Cr+, cuenpion & te assigned , So these Fanguag’s soe calles ooselhy typed poograrnming Fongunges: Fm case of qaMa , ovenrtew & urdenew sesults evapttaian eomem Yeni , Jou 1S called stotctly, typed progprntning. tangy « fut, by Using typemst opens woe an assyT CUSIAD AK umMkeAoLs uals. Ousaetes eoults fall oF Wohue tanetds nepallue UL undeagton secullS aise oF value Counts » gositve © scanned with OKEN Scanner & aed A afe dae Wd ann Ctatnge? an) vi ae SapKy shot sum, hm ; { + 7 BASE Ix gugek: seask fm = 32569 5 usm = -22968 5 \ *) uum = (Grae) BAGO, E uenelow i ‘humm = (ghost) “22585 jf] undergtow Syptem. out gointn (rum) 5 System cat point (hus ; oo . m0 ‘Hum = 39580 5 M2 Het ce ee) oo STILT REED wep sa Say Aen-cute fink (UMD; SOOM OG AL IOC) C100 — eal Voot CoM tool con NO ioe F116 eS ‘UUDER FLOW 9 98001 ooo! =u, OM te aie es ota se SELDEDEEDEEEES = Sagres cut fetes), ‘ OM an ane aie shee " 4 phim feiss © Scanned with OKEN Scanner PNOTES Flak type can handle upto 6 decimal places qu, PALES ‘ype con horde. 1 UPD AR decimal places accuoagy. me fooiean type — Z Te 1s poimay type Im JOU ENNES 2 EyLes"of” Hlehisiy TE can! Skane elthen tour om alse. I 1s the poomot species used ie «poriitpc ye igaakement . Ear class Pa (C09) G9 Pg on sete eget Da inp ro 2. public ste sid “main C Sting] ags) | woe t beoalean a,b,c 5 quikpuk + Kowe See) sehen 9 be raises oe eT ae Ge wees we den ty it } | cromactsan mepsesentation - : Si? a Th case of C, crt, char Wype tmkes only 4 Bags. can AepSEAE FEES) chars Frese languages fallow ASEH System. A fs oon is sel 08 on rk posgraining PMSORE , med to epee: cerns ous UNKODE (UriueDstd cgaern diggenent: languages eswund the globe, Heres , TONS al rhe yakignal,,Sntemace, cage) that kanes woe WYRES can mepsesent 69535 chasadsns Me 9, ~ GAO [ UeHmRACTER. Oth fis. BINARY REPRESENTETON i 2 2 A 9000 coed OIcd OCD! $F 4 f0P4)? | B 060 EQQ0 GIOo 0010 a | 000 000 clc0 oot! a ; | : 1, 29404 tnd) =ayh 1 eeu cunt aqyt 0 gaiepieet | a 8000 O00O ae oot a (e061) b 0009, 9900, a1 CO10 ey | 0000 c089 atte co! “a © = yh an dak sh 1 | 6 9080 1190 ge0e 3079 Cocos) | z 6010 6000 GIL 1091 3377 (2039) © scanned with OKEN Scanner Ro Botan! | potintsn (cee tye rum, Jie System out posit qu “ | “System cut. poriqtin (reoo ron); 2 tome dp ot vil Sgtem. out. potiatin (Integy. to ney StI, CSI) 5 Gee! ey gy Spee pend (ante fobinany Stageg A! i EE class” Pays i Public static usid ‘malt CStaingt 3 aags } t \ has ch, dh, eh 5? : | ch © 2093; see: dh = "\uocos'; Nica dagaat eee * conga ard ReTYpe are op Ae wR be asstyrad "tS, “Le Tyee tithoa ony tecue . Tp bath ore cove nied to be taken, ‘Same! types thd) cee © stoop ie| widens NER — 20 a [fsigping © type “tat tnxes Ne mony called ot, conuenston. a0 3 fe hat tas mee meme 1s sit 2 239270 203 a nt byt hi d 10g Sie ene > * ox double <— leat. : hee © scanned with OKEN Scanner — 7 MIARROULIMIA CORIERSION — ET Sa? _Pssigring 0. ype Ata ESS, Tee TERY to the type thai” Kaas) ess EEE, we The sens ore gs called Wanrestg, conveSon- Tk ments compilation ee me Possible, 1085 oF precision Seasrpste Sas: WE ON explicitly Cetsrsoraty) PesqooM reeasouing cornencioh sg bape core, ‘Openaica, ar the ast oF eosing, dato. SUOTRK: CL —Type = C-type) R- Type tow we ee} fog} [rea] chow 78 ore: ce pal tn Though cham & chest taes 2 bysss , cham camot be assigned to cheat type Beamst, ran is unsigned type TES sianye 16 move than shen Wye: 08s Pos : : vo A pubic ceatic usd ranin(Stainge 3 ange) . t chon eh= shank num = ch 5 IH shooke num = hes) ch 1 SA een ie ARIUS. TO REMEMBER 3 soe © white assigning o value to the unstable he type fs dectdee acing tts mange. ia case of integem types. © Tr on eapensin, on tetegen constant {5 tented at of We type @ [Link] exppession,, byte , chant type opesare’s behawe Hike Int: “types, @ AAnyurese. is. Java. preggiom , O Floating point constant ts tented as oF double, Sue Bye HES; Shoat Y=% 5 fat z= tong 0 = 27 sues System. out potintn 5 © scanned with OKEN Scanner

You might also like