[Go to site: main page, start]

0% found this document useful (0 votes)
2 views15 pages

Java Note

The document discusses various programming concepts and languages, particularly focusing on object-oriented programming (OOP) principles such as encapsulation, inheritance, and polymorphism. It highlights the features of Java, including its simplicity, portability, and platform independence, as well as its execution model through the Java Virtual Machine (JVM). Additionally, it touches on the importance of multithreading and scalability in Java applications.

Uploaded by

km4366184
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views15 pages

Java Note

The document discusses various programming concepts and languages, particularly focusing on object-oriented programming (OOP) principles such as encapsulation, inheritance, and polymorphism. It highlights the features of Java, including its simplicity, portability, and platform independence, as well as its execution model through the Java Virtual Machine (JVM). Additionally, it touches on the importance of multithreading and scalability in Java applications.

Uploaded by

km4366184
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

31/7/25

nPL (Aragramminy langunfe?


The language by which aprogriaidtin ean
develer pritrey and averewflay ehecuth tit
a

thpir beocen.
is ealledas PẾ
There are twe type of P
[Link] froedure orienital Pt popi
00p.(obgest orienterl priogvan
ram

16220 2povpre

1D) pope : Thelangange whichlem bred igth


·conceptof itop = doçun [Link]
vah
e prcedr ontehed ragramn gangi
2417ae douniaproachi- Theapprdoshithrch"
Cenentirete upon ligie tothen than dta
dofa ts

CaledasTop oflea ecTonece

dovnS
er

TT
Ex FORTANB COBOL,ceed roe

BOftn The lan wge which dovelopeol ty the


corieept f upiorf hottoig up appraos
calledhas oop1

Scanned with OKEN Scanner


Bottom upapproalchir The approach which
Goentrate upon data, radher than logie is calledas
bottom op dppmoash
Top 9ao ist desigre then
i main funndim
Call
21 22019F

Bottom

044,jam, otet, # Nes,pythaoo


ido fo

in top down apmach top toinapooh


C des

adlduyer fo r
dsto antsaa

taues thaimgsdoff
7 Trepag ing iho fo s)en
oncep

capsulation
Jobj
tite nginhenitance
41 ebstraction )mesnye parnind Lobivese

platform inde pentorot is calted as oopt

[Link]) howtesolve thiprohterg crucedurg


α

eloincoo om isthe mmadel Crguage


tocispe eite obj
Mo

Every of behionot Pehind aclass.

Scanned with OKEN Scanner


didos A/8|25
7clans alletion of simitar pmopinties ebchaig
binding info asingdeunit is ralled ay elay
7elas ia madel to creutethe objests
7 class is an usendetineod darturtypе
biodete
BA Students
Yobjen ti -
Th e in gtite
ac e2ofcl ar t omes
e ore
or e lam variable is
Called as obj
E& each student, Coay pecoen is the obj of Cores pentin
lenm stuslent, antenmal banelbinda
rinheritance- The properties byvantue ofwhich anes
classCchild elasgerideriyed lan) anew clams ale
get some [Link] theikates traits ot [Link]
clay(porenitclagonBseclas) is cared as inhot e,

inhertance isis themort pwertull finfore ahic


prvidenr the taecdirty forode rourakelify htet
4.w
[Link]

Scanned with OKEN Scanner


2/13
26
Sabstrectino:- 23
cop .886 -0

detiaing the essectial


featrreywin
begrhund fetely
sithhoouutt defioroy
is caved as datai the
structi e
Encapodatien: idiny the sat
emel iotemnstoe
due to extenal manupulatin is call
ed as di
C

Enepaulatin on dota hiding


•polymerphtomi- The machonisui
o fuaction is ale to pretoo
r ng by luhich asame
ssym bom
m & ditteretdliteren
operetion is cola
s plymerphis
t
m. (re ecfa sfern
corty bindiny
liny late bindsny
22 ysnanie bindtny
6 l o t i
a "pncting lat the teng the apmopriatsVerinn ot
-

Callidf as dyna he os pigramexieutin


mie binding t
Mesinge puatnoy Shotrtng of i
diftstunt fobiets on paling ot nstoroation botabifn
or
irmaston
onecompenent to anoiher Componerntt is callay Mesiugepaning.

Scanned with OKEN Scanner


Scanned with OKEN Scanner
ramminy lar
Matform independend: - The prognos oy nyge
Esdepadentindeoen fend whese ichturt
every Os
tet. takes Same memory space in ev
on O
The f hit on o evng eadhinl with nye
‫ه‬
ssecard
and
.ro
ortko waeantevn anystbore
eo nce
Convengc InveRTe
00

3
25

Fegturesof java rar fa ci hi st


to the io
ot

uagetio
is

providedtobyogen of any
the lang amy
davelofe r fer uhich prigrnmer
can ose I that patedg and fov lop the realtime
applicatron.
av a Si mp le pr og oa mm in g la ng ua g
7simple:-j is a
e dl es ig ne ai m
ur es ofja va bu t th is is th
it isnot only the feat itneed toexecute in smallelectrnin
of the java, because
device whese le si memory Space a availubie
less.
ess.

Java mode simpleby cemard olemeniding thed iftirult


concept present vincandiett flike pointer, whict
is difficold for both learnar and [Link]
cancept is tobaly ommited in jura
Jarg made simple by maindatoy thesamesyntax ote
and cty foe which o the poapte the wow / andlegy
C

is familorn with fava

Scanned with OKEN Scanner


Scanned with OKEN Scanner
yogeuf oriented:-Jere is pevely
1y obgect orientead
e, berausa I we cannot unite the
Jera proqram classand [Link] also fol1ot2s
all the concept &(features) of the onjectonientedproбятиР
7 Rebudve
berene
&
toRoexcellent
sti- bus t exceptiog
actomatic
hanymechanisum
ny me
‫و‬
0o69/8/25
Eeatoreg e d a m o n g
O DoR
d i s t r f
distributed:-The intormations are o Wrideajevepreynem
b u gra

Various Computers
tb ut e1 t. s other fothe
which capture the in formation and
is pocrole because f jora can banuteprotocouп
clients this is ba
tike Top/IP anduDP.

712 mo Connantarang Networts


device

true : The sreveity problen li efdes s


efees Viru
7Serure:

eaves dmpiny tromoping, im prsernation, therad


ese eliminated, or minimicef tyJove ensternet
2poetahlin the phir saitdb he prto bde ti tatat t
every
nmn machine. jura Isa protable
Rooteng. PL due to Is
Scanned with OKEN Scanner
ceasofera 66
7 Raurey
interpeideds'- The jasn pre 2 trofsdiug
gereat the typt bytko graim arx lempi
ndes which ar iprnprtedfte
the intespredor. to canvenst the machinel a
it we consider
any other progmamn
nguage
Pnter prdteror a ampilers. ging langwage Ri
t s u o f ot e l h e nan
is

paguam bist injovu both igter s e d x e d e rt


used priter conodcompllo i
7 flat form inde pendent: The jave byte codes ae ret
morh
pr isesode
oces pond 0s
r and ost
it canhe ron in any machwe sth any
thigh perferrasce: iniemprtton ineilo thejvng uwnlf
Use
e
louwd the java execution pereng preces fo rerteme th TI
problem the jova sott people irtonduce a JIT
Compile: now Both interpriter & JIT Compiler work
together to execute thejova progrom.
Muttithreaded:- A threaed represent's an ind rsioued
process to exepustea a beok of statements
Several threals .uvy ure
trvrnal ihrads to ereute dittiregt liffeyen
statementg. 0sing of motiplethee ad. is cnhed estasBimocntioth
e
Scanned with OKEN Scanner
Scanned with OKEN Scanner
Scolability:-Thejaraprogramsused inwlderange of compt
difterant lable ofresourres from emededsysteng
dniofena miefe thieipauribe ecause ane ra
is compact and system independenst.
70y namnic i- Befor the ova anly [Link]
tispley in the briwse r, w h e n j o m e s gorl in g d a m e o
denengtrute a n at un ie mo le cu de te hi ch mr e Ro vi oy
i
an
t
stertchroy the ray thew the ntew Vievers were
doump Strocd th is prograns is an apletprogram.
21/8/25 Oop ooP
JVM Cjava Vaietuo Machine) -thejrm
is the hearst of entire jara execotion proces it is
responaitle for latsing the .cRarsfile and lonvenrtiny the
Bytecades into machind language swhich willbe exeeuted
by the microprocessor.

25.26

Scanned with OKEN Scanner


laus file

Scanned with OKEN Scanner


0 adern Class
ass Coadem
&b system
Method (Java Native
Area
Heap stack PeRegistem method
Stack
C
Runtime data area
[identifien(J1IT Native
C o mpilen method Natine
ex ecut i o n eng interrface
methe af
ine librarie
s

‫ارو‬
operatrng
Syaer 分
Fig7JVM7
1/9/25 ♡op
achar
nreg booro
Ch vomfeslename
impotrt Ja 1o long.
a

Class Test

putic static rague


{ rndtYhorid main (Proin
ows thmrorgh g ony()
Bufferhea
der
IdlReeptioe
br=newBu
tfered Reafer
s
System. O
ut,prind (
"Entes å s
cham ch
2 (charr) b charactere;
ririades
Syatem-ou . p ;
rmtan(" you
ent reds"tch)y

Scanned with OKEN Scanner


Dorp to read astring thioneyb
ingorf jave fany
impory jova to.
t
class Tert

public State void main( String oxys [)


हु
throws Io Exceptien

Butfered Beader branew


Buffered Rader
(hew Inpurt
StreamBe dor
Sytemn eutipo
nd t"Eaden goes
tring ste names
I stra brere
odflinesss
Syptarn. ad. priedh
2
"ywong rap :
e

Scanned with OKEN Scanner


Oop
DWAP oop 119/25 /9/20
Mcrepting an inderger wltvefrombryferd
import [Link]
class Tesst

publie stortie void maph(String


argery)
throwsIDE
xcepton
String str:
Bufferedheader br=new Butfered Rerf
(new, InpoutS
toCram estos
Syptni, iutprind (f
a t r n
readlinee; Atygera n
Stra br.
mai)
indnomg s Inleyen. p
a r
Sy stm .oud. eint m yoeT (s
w end eed

Scanned with OKEN Scanner

You might also like