Professional Documents
Culture Documents
Introduction to java
Lecture 1
Kandahar University
Faculty of Computer Science
Niaz.M "doostyar"
1
+ 2
Today’s Lecture
What is Java
History of Java
Features of Java
Environment Setup
Question
Niaz.M "doostyar"
+ 3
What is Java
Niaz.M "doostyar"
+ 4
Web Application
An application that runs on the server side and creates a dynamic page is called a web
application. Currently, Servlet, JSP, Struts, Spring, Hibernate, JSF, etc. technologies are used
for creating web applications in Java.
Enterprise Application
An application that is distributed in nature, such as banking applications, etc. is called
enterprise application. It has advantages of the high-level security, load balancing, and
clustering. In Java, EJB is used for creating enterprise applications.
Mobile Application
An application which is created for mobile devices is called a mobile application. Currently,
Android and Java ME are used for creating mobile applications.
Niaz.M "doostyar"
+ 5
JavaFX
It is used to develop rich internet applications. It uses a light-weight user
interface API.
Niaz.M "doostyar"
+ 6
History of Java
James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java
language project in June 1991. The small team of sun engineers called Green
Team. Originally designed for small, embedded systems in electronic
appliances like set-top boxes. Firstly, it was called "Greentalk" by James
Gosling, and file extension was .gt. After that, it was called Oak and was
developed as a part of the Green project.
Niaz.M "doostyar"
+ 7
Features of Java
Niaz.M "doostyar"
+ 8
Environment Setup
Setup:
Install the JDK if you don't have installed it, download the JDK and
install it.
Set path of the jdk/bin directory.
Create the java program
Compile and run the java program
Classloader
is the subsystem of JVM that is used to load class files.
Bytecode Verifier
checks the code fragments for illegal code that can violate access
right to objects.
Interpreter
read bytecode stream then execute the instructions
Niaz.M "doostyar"
+ 10
Niaz.M "doostyar"
+ 11
Niaz.M "doostyar"
+ 12
JVM Architecture
Niaz.M "doostyar"
+ 13
The Java Runtime Environment is a set of software tools which are used for
developing Java applications. It is used to provide the runtime environment.
It is the implementation of JVM. It physically exists. It contains a set of
libraries + other files that JVM uses at runtime.
Niaz.M "doostyar"
+ 14
Niaz.M "doostyar"
15
Niaz.M "doostyar"