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

Java Notes - Compressed

java notes

Uploaded by

prmaex12
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)
16 views

Java Notes - Compressed

java notes

Uploaded by

prmaex12
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
You are on page 1/ 13
srava Notes x || Tava _prageramming _lanquage = sames_ Goslin 4 Lanquag a father of Tava. Jr 2 7 . TF. x Sava is an chjeat Oriented Prragramming Coor) _ Language» the fundamental idea” bohind an cof sta tte. combine bodth dala 2 dhe Punctan that operate on the data inte a single unibe - features of Gap- © oop emphasis an data crother Than procedure CG) cop Folloas hollom-up approach in prragrram design: ‘ @® Preqgrams in cop are divided tote - chjects. [@cbiects 3a 00P may communicate ecaith each other therough -Fanclians. nildase eh vig) a blueprint | ternplate rom | eshich individual objects ate Creabed. sllobject- objects ate basic un Hme- entities in 00? - object class > ( eljedl ison instance of class is _a_blueprin cla 35. cohich objects are Creal & abject is a real avowld class is _a__qreup of io wieto Similar _dype of obfads_ object ts a physical entity class isa Logical extily obj ecl) is. created many class is declared op dimes. created once. abject alloca tes memory lass doesn't allocated when ‘4 is Cereated: memory when it $s : created , i if 5 of [feolnes ; ae ge es fo aimple banquage. - [Simple — Fava aa p Panguage > isa ob cole Oe Ts 1a. . ig a ig plelform independent ongua a a Baia wale : (saya ig ana inlorpreted Lenquage é i & sp Capable 3% ynarcaly | —|@-rava language 7 , | Link tha ines ees elas Librawies _ methala —£ object ® tava is a __Tobust Language. L Porlable » High Performan ce ahterac! — save Virtual rtachine Cay) = lo SVM is a ‘virtual machine) thal “enables a Cemputer fo run Tava Program as [well as programs @ritten in other Languages v [ahal are also Compiled te sava bytecode. A Tavo Virtual Machine's main Job ¢ i9 to load class files & execute the byte cade they Contain. @ sve Contains a class loadex which Load class Files from beth the program & lhe ava APT. @—he execulngon €@ngine of tvm js cresponsty [for executing the insbructions contained” in the metheda of Loaded classes. - © the _=rava virtual machine Organizes th. memory it needs to ° execukes o Program several runtime data areas , \nbes Dova tools- Tavae , 3a f, Sava, appled yi Shee Tq pemeteadet Si ee ____ ae + Apple} Vinee Sava Appletvieweor iavith te U “Bee ch Suns applets outside the csoh fp — | bro eeu. pee esd he avg debuggee Cerdb) is a tool Be) | for spava classes to debug a program jn ally | Command — Une tab Ss fe de | a © |ravedaiaaiiiathe Javadoc tool is a docurnend | generator tool- in Tava for generating |stondard documentation in Html formal * | tavap = she savap tool of Java js used Jo | get the informmghon of any chs. > #1) Jor Slands for caval archisvevhe aa beaks xy lis a Java application that -combine = Limultiple Files ints a single Tar archive feet Vekisi @ Pebeie Was posaact | vsluneWalnyantahle an theld js called data type. ih _ Preemptive dela types = byte , shorh) ‘int | long, Float, double sboslear, char. Kilokens— =the smallest individual vunits in a Tava _Proqgvam are called toleens. «| static~ this means that the memory is delermined for variables cohen the Program starts. Progam execulan of the © Body of Ihe Constructor. ., @Paramebenized Constructor ~ : GA Constructor that has paramelers is Lele GE apace melavtesd Constructor. oul @) he pavameter lish can be specified ins the parentheses in the same Way as paramekr list js specified in the method . © Syntax - Constructor tame (f Parameter list] I] conateryetor bod: iE x Constructor overloading - Constructor having she 5 same name with different parame Uist is Called as Constructor Overload ig & Usage of this keyword — Mths: keyword icon be used be refer current lass instance. Variable. Gi this! keyword can be used te invoke cumontl class Constructor. syntax~ __. thie. Eield | Use of sale ek = tt is used do Initialize slate @_ static Hatt. methed » xb can qeeess slalic data member £ can change the Sb 2) methods of objec class — @ Geolean obs equals (object obj _ 2) orrolected object eT ee value of 1@ poslean equals Cobject « obj) ea (@veoid holif yt) - i cee ee | J@) gotelass 0 2 ee a Bes | shring Cites String gutter i Ave String Qufter objects “Ostet objects String Bu a 2 4 othe a subclass demived from 4 { AeA eAn clase! thee.) oy Eee class A] { t felass a J & [class < KX Tela ssp] Hi eergera hi cal nihhein bance = Sa tale Ghan eubalass elas. : lerive more From Single super k i tS Used by Subclass 4o ore Pr APS 5 amedin be Tkeyerotd sis a Keycoord _ obich —__ generally, ere cannot be cha nged oF on Graal eh iallused fo. ppoavent | method te overmiding, aEA ct 3 2 ts o_hluep aint of 4 a [enteeeee ak Peat 4 ered rae. |_only. I l nw [Marker inferface— an Interface that dees He not dentain methods , fields <& constants Tau Mugesne sasuumarkeln. Interface . hi A functional interface - An inlerface that Teontains exactly one. abstaacl method $s known as functional . interface. x | Run-time . Lpolymorphism a OA Process in dhich a call to an overridden stmethod: js Gesolved at runtime rather thay Compile Hime is known as vrun-time poly mon. -phism: Qn Ws. process). an overnidden methed Sa a eee varia be of a superclass 6) Run-time polymorphism ts. also. called _em dynamic method dispatch @) Exarnple ~ alass Bike Vold run 0) sh fe $2022 running i) _—__. ee = “aa _—_ ee re defined excephinnes owe _used to. jimh WI nead, ae cit 5 — | cuslomize the exception accarding Yo usee @ Syntax- 7 2 of | class oxceptionclass: name extends Exce phan ng. 4 As 3 Peep icnelbbantinne Goavewalen) © f [tstaterents 1S re Public string toString/ 3 fe 29am | yelutn ohring Ea + Ke hal s- : Hon) A | DIF Renence — aS ihe Swing Ocormpoyents are platform Componafts aie platform Hal depende sf sai independant. = Co! a Components are Li hh put fo Wh. coed ht @® ee Support vagable rts pluggable foal. look feel ls 2 ete ress @ Components crag tre Components requis Tov awawt package, ~ _“savax. Seal ng package £ ©) Using Awr, oe ~ have te Scots a has them { imol things) ourself. arment a lot of Caan t managez 1 locolay out. @ Grid Gag lay Te 4@ Borderlayout © Gatelthobk rd Layout = | Features of Swing Light weight = Q Rich —Comtrols_ . @ Borvders_ aes 7 i) olti ps eet i ee i __ © bagy servo re a ott be ecat look 2 fee}. ae Nees lewout managers . * _Tcombs Box — @ Se\ng _prreyides aq Combe box brough He JeomboRBox class, ahich exlends~ T@mpenent. A combsBor generally display one entry. O-hevee of FtomboPox Conghruclors— q @ TcomboBor () — Creale an emply Tom hobo “Instance - ®) Public mbo Rox ~ 7 J Sa. aac ee at provides the display fo Paoli Zoom Bax ( object) {fers aster — ins the elements of Speci $; cal array eneadton af SMuahvons [Adaplee class Can Simplify eT event handlers tn certain JAnonymeus class. An anonymous Claes 13 IE class Without a aM) Os 2 |etalog = A_ditaleg is defined 93 0 Lconver# sation befeseon fas on more [Resane ~=n a compuler applica! a dtaleg Js “& aatndew ahich >} us fo itale' to the application. & preg ram — i ee Save pregrary to Ein! Secon Smallest element fn an Pry,

You might also like