Working of the Java compiler

Page 1

Wor k i ng oft heJava Compi l er

Vi s i tusat : www. ei l i ana. com


01 . Whati saJavaCompi l erCompi l er ( Java) ? T os t a y ourpr ogr ammi ngj our neyy ou r s tneedt ounder s t and wha tcompi l er sar e.Compi l er sar et hecomput ers o war et ha t conv e sy ourhi ghl ev el s our cecodet oex ecut abl emachi nel ev el i ns t r uct i onsmadeupof0sand1 s ,t ha tcanbeunder s t oodbyt he comput er . Compi l er ss cant hehi ghl ev el codel i nebyl i neands how dier ent k i ndsofer r or spr es enti nt hecodei nt hecommandl i ne.


02. Wor ki ngofaJavaCompi l er The r s ts t epi sy ourneedt oSi gnI nt ous et hef ea t ur esoft hi s compi l er .I ti spos s i bl et or uny ourcodewi t houts i gni ngi nbuty ou wi l l notha v eat r ackt oy ourpr ev i ouscodesher e, s oi t ' sadv i s abl et o s i gni nt oenj oyi t scool f ea t ur es . Cl i ckont hebu onpr es enta tt het opr i ghtcor nerandawi ndowwi l l appear .


03. Wr i t i ngi nt heCodeEdi t or F orus er swhoar el oggedi nt ot hePl a or m,t het ot alnumberof char act er si nt hei rcodecangoupt ov et hous andchar act er s . Run:I nor dert or unaJa v apr ogr am,aus ercanwr i t eJa v acodei n t heedi t orandt hencl i ckont he‘ RUN’bu ona ers el ect i ngt he appr opr i a t ecompi l erv er s i on. Save:TheJa v acodewr ieni nt heedi t orcanbes a v edbycl i ck i ng ont he‘ SAVE’bu onont het opr i ghtcor neroft hewebpage. The s a v edcodescanbeacces s edus i ngt he‘ MYSNI PPETS’bu onof t hewebpage.


04. Lear nJavaPr ogr ammi ng Ja v a pr ogr ammi ng l anguage i s one oft he ol des thi ghl ev el , obj ect or i ent edpr ogr ammi ngl anguagesoft oda y . I twasdev el oped byJamesGos l i ng a tSun Mi cr os y s t ems ,whi ch hasnow been acqui r edbyOr acl e. I ti san obj ect or i ent ed comput erpr ogr ammi ng l anguage t ha t s uppo sapl et hor aoff ea t ur esl i k es t r uct ur edpr ogr ammi ng, l ex i cal v ar i abl es cope, andr ecur s i on, wi t has t a t i ct y pes y s t em.


05. WhyLear nJava Ja v ai soneoft hemos tpopul arl anguagesoft oda yandal otof Mul t i na t i onalCompani esha v et hei rl egacycodebas eswr ieni n Ja v a. Ja v ai sex t r emel yeas yt owor kwi t handhass uppo f oral otof t hi ngs ,be i twor k i ng wi t h oper a t i ng s y s t ems or l es t or age, da t abas es , ordi s t r i but eds y s t ems .


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.