View
221
Download
0
Category
Preview:
Citation preview
7/25/2019 IntroTo JavaTechnology
1/14
7/25/2019 IntroTo JavaTechnology
2/14
7/25/2019 IntroTo JavaTechnology
3/14
Discuss a "rief history of Java Dene Java
Di#erentiate Java Platforms
J$%% J$&%
J$M%
Descri"e the Java Virtual Machine (JVM )
%'plain the contents of the JavaDevelopment Kit (JDK)
Descri"e "enets an features of Java
3
7/25/2019 IntroTo JavaTechnology
4/14
n **+, &un Microsystems "e-an an internal pro.ect /no0n as
the Green Projectto 0or/ on a ne0 technolo-y1n **$, the 2reen Pro.ect 0as spun o# an its interest irecte
to0ar "uilin- hi-hly interactive evices for the ca"le 3Vinustry1 3his faile to materiali4e1
n **5, the focus of the ori-inal team 0as re6tar-ete, this time
to the use of nternet technolo-y1 7 small 0e" "ro0ser calleHotJava0as 0ritten1 8a/ 0as rename toJavaafter learnin-that 8a/ ha alreay "een traemar/e1
n **9, Java 0as rst pu"licly release1
n **:, Java Development Kit (JDK) 1+ 0as release1
n $++$, JDK 15 (coename Merlin) 0as release, the most0iely use version1
n $++5, JDK 91+ (coename Tiger) 0as release, the latestversion1
4
7/25/2019 IntroTo JavaTechnology
5/14
James 2oslin-is -enerally creiteas the inventor of the Javapro-rammin- lan-ua-e
He 0as the rst esi-ner of Java animplemente its ori-inal compileran virtual machine
He is also /no0n as the !ather ofJava
He is currently the ;hief 3echnical8
7/25/2019 IntroTo JavaTechnology
6/14
519 million Java evelopers, the lar-est community of soft0are
evelopers =9> of professional evelopers in the 0orl use Java "illion evices run in Java
@$9 million Java6ena"le smart cars
9=* million Java6ena"le mo"ile evices
:9 Java6ena"le phone moels
=++ million es/tops 0ith Java soft0are $$+,+++ o0nloas of JDK 1 in .ust 0ee/s, $ million after a year $ million o0nloas for J$%% &DK Java8ne ra0s $+,+++ "ecomin- the 0orlAs lar-est eveloper
conference 8ver 5++ Java user -roups esta"lishe 0orl0ie Java runs on consumer an em"ee evices more than any other
soft0are 3he soft0are that po0ers the Mars over
6Java is Everywhere!
7/25/2019 IntroTo JavaTechnology
7/14
7 multi6platform, net0or/6centric, o".ect6oriente pro-rammin- lan-ua-e
Multi6platform
t can run on almost any computer platform Cet0or/6centric
Desi-ne for "uilin- applications for the nternet
8".ect6oriente
t incorporates o".ect6oriente pro-rammin- moel
7
7/25/2019 IntroTo JavaTechnology
8/148
A Java Platform is the set of APIs, class libraries, and other programs sed
in developing Java programs for specific applications
!here are 3 Java Platform "ditions
#$ Java 2 Platform, %tandard "dition &J2%"'( )ore Java Platform targeting applications rnning on *or+stations
2$ Java 2 Platform, "nterprise "dition &J2""'( )omponentbased approach to developing distribted, mltitier
enterprise applications
3$ Java 2 Platform, -icro "dition &J2-"'( !argeted at small, standalone or connectable consmer and
embedded devices
7/25/2019 IntroTo JavaTechnology
9/14.
Java /evelopment 0it &J/0'( Is a set of Java tools for developing Java programs( )onsists of Java API, Java )ompiler, and J1-
Java Application Programming Interface &API'( Is pre*ritten code, organied into pac+ages of similar topics
Java Virtual MachineJava APIMyProgram.java
Hardware - ased Platorm
J"#
J$E
Java 1irtal
-achine &J1-'(Is an
eection engine that
rns compiled Java
bte code
7/25/2019 IntroTo JavaTechnology
10/14
7 Java pro-ram is 0ritten
3he pro-ram is compile
7 class fleis proucecontainin- bytecodes
3he "ytecoes areinterprete "y the JVM
3he JVM translates"ytecoes into nativemachine coe
#
)ompiler
Java 1irtal -achine
ative -achine )ode
pblic classelloorld 9
pblic static voidmain&%tring args: ;' 9
%stem$ot$println&'?
@
@
%orce )ode
)lass ile
Btecodes
7/25/2019 IntroTo JavaTechnology
11/14##
classelloorld 9
pblic static voidmain&%tring args: ;' 9
%stem$ot$println&'?
@
@Java Program
%om&iler
Hello
World!
'olaris
Inter&reter
Hello
World!
(in)*
Inter&reter
Hello
World!
Mac+'
Inter&reter
7/25/2019 IntroTo JavaTechnology
12/14
Write 8nce, un 7ny0here Java is porta"le an platform inepenent
Cet0or/6centric ;an 0or/ 0ith resources across a net0or/ an multi6tier
architectures 8".ect6oriente
7 Java pro-ram moels a set of o".ects interactin- 0ith eachother o"ust
&tron- type chec/in- %'ception hanlin- mechanism 7utomatic memory mana-ement
Multithreae 7 Java application can run several i#erent processes callethreasE simultaneously
&ecurity ;an o0nloa remote coe over a net0or/ an run it in a
secure environment &ecurity levels an restrictions are hi-hly con-ura"le
#2
7/25/2019 IntroTo JavaTechnology
13/14
Java is multi6platform, net0or/6centric,o".ect6oriente pro-rammin- lan-ua-e1
James 2oslin- is the inventor of Java1 3here are three platforms of JavaF J$&%,
J$%%, J$M%1 JDK is a set of tools for evelopin- Java
applications1
JVM interprets Java pro-rams an allo0sthem to run on any platform1
Java is porta"le, ro"ust, multithreae,an secure1
#3
7/25/2019 IntroTo JavaTechnology
14/14
#4
Recommended