Dole:
A Tnbroduokion fo ova
4blhot is Java?
| brgeee initially -deteloped_by
a Meat a isa. high- leva object-oriented pogrom aes
by Sun= Mictogysiems. (Clow own
| at “Oracle. Crp) designed 6 be. Jaf form= inde a
aa teeming’ that java Yoqrams_cann_fun_on_any device
st lad Cautitaal Maal Cri)
im | . age lh a Sane Tia Lax Foun
en Tatil i uu am Bike
| roach where code. wiflen In ja acl into il
Piss tl chess page ha comps.
We JVM.
1:2 Features of Taya '
Jaya. i
|__| platform Independence, | EK object Oriented
et Single ond Familiar F Robust ond Sure.
ay Itthreading | Dynamic
| o| = Portable
T= High_ Performance. Diba a
: ih delay|B. Object Oniented
: Platform, Independence Java's bylecade can be. executed on
any plat Form with the appropriate JVM.
' Java follows the abjact ~ oriented ise eal
> an
paradigm, emphasizing encapsulation, inheritance
: pelymanphism.
Simple. and. familion Java's gynhax is ingpited by Ct+ and ©,
» making i} familiar to many pestanmerd
-|4: Robust and Secure: Tava has feature like memary menage
fe ee -lype. checking and exception trandling 4o ensure
Bec 4
| tobust a
ve. ees ‘
{5: vullfbading : Sava sup orks mmultithyeading, allowing rnult
Liple_-tasks to Becta concurrently nant hs
le. Dynamic! Tava_su HED dypamic_memory allocation and
| garbage_collection, simpli}ing memory _management »
a
___|_over time, thanks _40_ JWed_optitniaa
l7-Nigh Performance: While slova_ pregiams._might not he as fast as
| compiled languee pile cde improves |
ons: pdt Beas
3 -Distribuled : Java has libraries for creating distributed applica
—|-allewing components _+4o communicale over_a_nelwork:
3: Portable : Tae funile once, un anyuhere” capability, makes A
=| hidhly portable. 3=a ox_various tasks, From dala shuclures 40 nehwork communi
_| cation.
sek 1.2 Applicalions_of Tava!
ls tls Sat orn ae Rr balig och
Applicat tons using frameworks, Javaserver faces (ISF)_ancl_
Sexy elets .
_—{2-Mobile Applications: Tare is used for developing Android
Applications.
3: Deckdor Apel ical ns! Java Su ing Ri Javahx axe used to coal
al uphill fr dep sgn,
___|4-Embedded Systems _Tava's_potlabilidy_ makes it suilable for.
eae) A
WT) clevices -
x 5- Enterprise, licationS: Java. EE (Jay ise.
__| Edition) Sige ige oe aang
6: Scientific. and Research Applications + Tava's Flexibility and_
___| libiaries_moakes + 1 scientific simulations and research
2 rojecks-
4:4 Tava Thstal ation :
75_install ova, ou need to Follow these general
wl clone’= ati “official Oracle. bebsi!
a
_ + Run the inskaller_and follow the insfallations_insfructions:—
line dred
8: Set the sere environment variable. 45_paint 4o the IDk
__|4+ Update 0 ironmant variable. to_ includ e-
ge eee eee
‘5 Taya Program :
[A simple Tava prosian_boks lke. this:
Public dass Hellohlodd 2.
void
p a
"(ies Ca Virtual Machine) =
|
oT roVvicl rm i ence, a
__«l Ht translates buylecndes ihlo machi host.——
—
ee
_—
fis ces AA
La JRE slavn Rin cnek ire a
L._ Sain EIR Sa We near ae pied to tun.lave
cations Ik includes he . JVM. class “ith ries, cca
tiles JRE allows users to run Javea. Spi ih edi
| the -deislopment toala
Sud (Java Development kip):
Bee. teenie the_sofhuare. ackage. | that. includes she. tools.
| ems developing JAVA cr fons.
I It includes the JRE.
SA
evelo pment ta [s_lise the JAVA ay
er (Javae) debuggex.and cor ulin. pile pee
______In_summaa jslava joa versatile. rogamming-~
|| _ kno for_its platform ind ihe
-vthledoohveanl-eole- endand any 8
appli eal sh, de ents, Se oa
10} Poi
ce ens ie ae oe |_eno ee Peclion,
action of JAYS. fo\\
“
A
se
:
} ——chaplers
| Page. No-__
mM
;_ ——7Inhteduction fo Java
} Wha is tava?
Wy)
—Application: ol fava
—Java_Installa!
Of ae
\avq_pyoqram :
Thlerna della WY REA: eee ee
1
Constants Variahles and data lypes fant 2!
Constants variable, dea dgpes | =|? __
Aw in, fava
Oeerata is
ker
Flow conhe
Decision slalments
Sigducoetie!
loops in Java
Breck + continue statement
slave comments «
$i |
A7=-3
ways 45 hitialixe.cbyecls | |eS]
7 Stille chapter Page, No
=a T
| =
Gr tloasing ——__-
Static keyword |
S| Iph
hat is Thheribance.2
pe a
Sup word
Ag} ion_fn Java:
Pe Folumarphismn
Method Overloading
Method overi 45-51
Final keyword
a oe
a
z %AAV
cha plets
Encapsulation
Java_anays,
qd
Hie ae
is
[ei-65
Cloning an anay
Object.
Methods of abject class
66-76
Object cloni ce
OF
gva_math
Basic rth methods |
nithmic: Math methods __|
gaa: ——
al vo
8
tubing 2 On boxing _| on
Reansion
What is tecursion 2
LIS
call_by value in Java
dave Siiagee ee eee
inhiodu
Ant spo ee |g |
Java shingBuFex class
Jaya =oe cr =nsitt)
i
for( j=13j<=3 jitt)JM
cc "Enter the. number
cin »ns : ‘pea
For (i=1 > ix =ni itt)
t
ae PRES»)
cout <" ayee
z= |
ze |
Vet
——__| Pili =i et ->
ae 4
cou cd
§
cout << endl,
ea 14! @ Gurjous —.
getch 5 2
# indude
Void main U
drscrQ)5
_cinarn >
fox (i=15 ic=n jit)¢ aie (chat) G64);
for (J i-15 2155-5
cout << (char)(J+64);
1G:@ Curious — oe1G +@ curious —.
el mey
[1234
[423 45 _
# include