JAVA DAY 1
JAVA DAY 1
1. Introduction
What is Java?
Java is a popular programming language, created in 1995.
It is owned by Oracle, and more than 3 billion devices run Java.
It is used for:
● Mobile applications (especially Android apps)
● Desktop applications
● Web applications
● Smart Card
● Robotics
● Games
1.Standalone Application
It is also known as desktop application or window-based applications.
These are traditional software that are needed to install on every
machine.
E.g.: Media player, word etc.
2.Web Application
An application that runs on the server side and creates a dynamic page
is called web applications. Currently Servlet, JSP, Spring, hibernate
etc. technologies are used for creating web applications in java.
3.Enterprise Application
An application that is distributed in nature, Such as a banking
application. It has advantages of high-level security, Load balancing
and Clustering.
4.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.
2. History of Java
3. Features of Java
1)Simple
2)Object-oriented
3)Platform Independent
4)Secured
● Java is best known for its security. With Java, we can develop
virus-free systems.
● Java programs run on JRE(Java Runtime Environment) and
have no interaction with our system OS.
5)Robust
6)Architecture-neutral
7)Portable
9)Distributed
10)Multi-threaded
11)Dynamic
Source File
Source file is used for saving the java source code which must be
saved with .java extension and the compiler will converts it into byte
code which will be its .class extension file
● When you compile the Hello.java file then the compiler creates
a .class file
● .class file is created with the name Hello.class
● Hello.class contains byte codes
Byte code (.class file) is specialised set of instruction that JVM can
read. Thus this .class file consisting of byte code can be transported to
another system, irrespective of the operating system it has, and could
be executed comfortably without any issue.
● This is why java a portable language.
● Because of the same reason java is also popularly known
as Write once, run anywhere (WORA) language.
5. IDE