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

Basic Java

This document provides an overview of the Java programming language, including its definition, history, key concepts like the Java Virtual Machine, and types of applications that can be developed in Java like web applications and applets. It discusses how Java enables platform independence and the development of both standalone and internet applications.

Uploaded by

appen.akash019
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Basic Java

This document provides an overview of the Java programming language, including its definition, history, key concepts like the Java Virtual Machine, and types of applications that can be developed in Java like web applications and applets. It discusses how Java enables platform independence and the development of both standalone and internet applications.

Uploaded by

appen.akash019
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

28-1-20

9X ntoduc tion o Java-

Java fs0gramming lamguoge maunly detiened to


denelop ntemet aPpicatons by Providin9 Platfov
mdependen cy.

PlatFovm independent
lndependence S afom
Plattosm
hat bu can Te to
Tho destmbes a chrolbgy
on one machne md u e tham c
1mplement things
anothe machme fhouf chmmges

C,c+t Pogmmingbmgunges Suppoats. daelopin9


spmd-alone apphicaen, it Con only be executd
only
m cument Systm, Cannot be execLu eom moe
Sysem Via neiosk coll

Defoation.-
Java 15 ey simple, high- leel,secuae
1ndependet,ob]ecf oeiented
smulfithreaded, Platfom
Proaammn9 longuog
Java at SUN MOTOSIsems
James Goslins dscovered

uys in Po mmn8 orneuogs


Temiology

1 Sourrte Code:-
s waitten
Deel oper t t e n Paogram, t
accordina to h e Pbamnmng anguoge Syntax
Compiled Code
Compiler generated PDgraro that 1s
o Sourre code Corercte
Cormp1ler- Convets soUrrce Code ito machir
Intempoet es crnguo9
Convess purae Code 10to
amguae but line by moachune
ine
Executable code
OS umdecstorndable
OS reodily eecutable Pat
C.exe Files) m

a Cormpilafion-
Tts PaDcPss of ranslatina Soume
Coe oo Cornpieed Code

57Exection:
PovCess of umng
oupu Comp|ed Code to ger

Platfo m-
A Patform 1s
horaluoarre
a
Or SoPtuanc
envrronmemt hich Povacm
uns
For sternce, Computer Platformis 0s +Hardne
dees)
Plattorm pependerrt
n
aPplicatton hof is
One os 1f 1 S net aun in
compule
had
dufferent as
hen
app" s colled Plcetforrm dependert app
The
lmguage thot is wed to develp
Paming
his applicafon s called Plotform dependent
P-sDgsamoing anmguoge
exa. C, c++

Plattosro independem-
Tf thee application's Cornpiled (ode
1S able to rurn 1 difFerest os then that applh
S caledPlatfom independent applh The Povgqrornine
armguage that is used to develo this appl 1S
CalledPlatfosm independenstPo
Programmin mguoge
mguoge.
Rra. Tawa., Python
Sjand-aone appl
Ty Pes fapplications
Ttmet cuppl s

1 Stmd-ale appl
An aPpl tha cam be exeçuted in loca Sustem
Oca C 5 Called Stemd-alone appl

Internef aPP"-
An appln that Cm be execufed in oca)
Ssfem
orth loca Cal amd also tepm emote Cempute
netoorsK Cal (requat) 1 called intemet aPpl"
Server GYSfem
Rernoke systen)
newok cal| Stond
PapgaQm- alone -
APPI

seer 51stem
Remote Gyslem
netwc Call ene
-appln
ba co
TPes of otermef applicatio

eb suupportive appi's Meb ppls

Executed n client compuen EneCued to

Web Suppontie applicaion b


An apelicadton thot
10 Semve Syotemn md thomt 15 doLonlcoded or
executed in cient ConputerVja netorrtk col oxs
Call ed eb suPPcafive app

chient Syeem Sesver syctem


uOse
equetF
Prrogra m
doonlooding Pororarm
execues
(olP)

Selern An
peli catioo that esides n Serer

6y6Her thad 16 exec


o uted drectY in5 ve

Coupu) back yetuocrs


to cliect
Col cmd Sendiog
Sendi ng response
client 16
'1s colled
Colled apeb apeb applh
O
client system Sever Syotem

bDwser
req uet vleb
Ppl
ogam
execued

What are the technolog(es invented by SUN to deelop,


aabove too types of Cpplns 2

APplets to derelop coeb suppoofive aPPl's


Servlet md JsP t o develop oeb appls

Tana Concepts

Jova nME Tava sE Java EE


CMi edihion) (Stamdanrd edition) (Eoten Pise edrtion)
used for developna
Mobie api De sktop amd windoW ntemet Entepaisc
bas ed app] aPpl

Complee JoNa
We one tuoo divisions compeke Jana
Complee Tavo as
per SON
2 Cocoplee Tava as Pe softwaoe ndustoy

p
SUN Complete Java
Tava SE
Tava EE

Softlarve ndu Complete Java


CODe Java
2 AdNamce Java
T2EE
rameWootg

Z 8 - - A

Becode s mintemedliate tormat h a t Com only


be umdenrstamdalole by JvM.

IVM -
Tava Vitual Machioe -
1S a softoarre hod

exeuteg Towa bytecodes b Conrestng bytecodes


1oO machine omguoge fthe CUent os yndetemdabie
fovmak
TaNa
Tava e eKBensionS
class
Java extension te 1t calle Sourrce,Code which
16 dereloped by develope/
class extension Hle rt is Called cormpred code
Contuns ytecode cohich (s 9enereted b compt(e
rorn 6DU e Code.

Tava Pooarroo developrment, Complation & execusion

ocpiler ava Oloo

MYPToaarne- Jova MY Pograrn.clas


M Pmgam
Java Poram execufion aDcess ar intemet application
O s e x downlads.classfle foors serremsysHen L
executer o t the Tum 'mstelles in hat client
ComPuher
BecauLe Tava M Vailable on mom dafasS.
the Carne closs Fles are Copable oF unning on
Miots Of+ indbros, HouR , s0|larne, o Mac as

Comprlahon AbC. Tava


phas

avQ
Corneiles

indouS HouA sol


AtbC rlass AbC. class Abc cl ass

Uomox AindoOS
SVM
solais
JVM JVM

JVM genfxudes JVM genetes JVM 9ererts


INindoS ML inux ML Solarsis ML
714
OS Produres OS modu ces oç Ppduce
ofp OlP

- 1 2 - 2

. Packog e T1s Java folder used to 9oup r e e


classes intefeaces cmd enums also useo to sepraae
ne Class es rorn t isted clase botth hae same
Oerme
DA

2. class Al these tmrea nre


ava Piles USed
md ogi e . emum
to
Java data
3 intefate gaDup
4. enum nrodyced 10 Tava s

5 Variable:It 1S ame memy ocatton used to


sture Tava dada, Such ass numbe rs, characers.
Shangs etc
G. Method: t s sub block of a class USed to
mplene
oic of an objeet espeedhons.

Essentha) StetementS of Java PoDgrao

classblock Because only Clacs allouC US detin


method rth ogic

2. man ethbd Becouse t S 0ifhal Point OF Uacs


logic exeuiOn

3. System.out. PrantIn be couus e 10 Java a


) ) nd
ind
dota 's Pnted by USina twsStatemeT
TO Pint Hi using above the
stoternents he Panyam
Wwd o look ke

class Firstogrum

publi c stoshc Void


mou(Sting tj angs
Sydhem.oud.Pintn (Hi)

You might also like