Professional Documents
Culture Documents
By:
Syed Luqman Quadri
Email: luqman@ieee.org
What is JAVA?
A Programming Language.
More Precisely an OOP Language.
OOP stands for Object Oriented Programming
A Technology used to develop
Web Based Application
Desktop Applications
Mobile Applications
Other embedded Programming
And many more.
Java Version History
JDK Alpha and Beta (1995)
Object Oriented
Object may be anything.
And in java everything is treated as an object and that is why people
also call it purely OOPL.
There are four pillars of OOP-
Inheritance
Polymorphism
Abstraction
Encapsulation
This object oriented behaviour of java made it different from other
programming languages(c, c++, assembly) of that time.
Features of Java -
Simple
Java has included many features of C / C ++, which makes it easy to
understand.
Secure
The Java platform provides various features for security
provides secure platform for developing and running applications
automatic memory management, reduces memory corruption and
vulnerabilities
provides secure communication by protecting the integrity and
privacy of data transmitted
Features of Java -
platform independent
Java was built with the philosophy of "write once, run anywhere"
(WORA). The Java code (pure Java code and libraries) you write on
one platform (operating system) will run on other platforms with no
modification.
Robust
During the development of the program, it helps us to find possible
mistakes as soon as possible.
Portable
Java provides us the concept of portability. Running the same program
with Java on different platforms is possible.
Multi-Threaded
The multithreading programming feature in Java allows you to write a
program that performs several different tasks simultaneously.
Distributed
Java is designed for distributed Internet environments as it manages
the various network services and protocols.
How java program works
1. Class Loader
The class loader is a subsystem used for loading class files. It
performs three major functions viz. Loading, Linking, and
Initialization.
2. Method Area
JVM Method Area stores class structures like metadata, the
constant runtime pool, and the code for methods.
3. Heap
All the Objects, their related instance variables, and arrays are
stored in the heap. This memory is common and shared across
multiple threads.
JVM Architecture-
7. Execution Engine
It is a type of software used to test hardware, software, or
complete systems. The test execution engine never carries any
information about the tested product.
8. Native Method interface
The Native Method Interface is a programming framework. It
allows Java code which is running in a JVM to call by libraries
and native applications.
9. Native Method Libraries
Native Libraries is a collection of the Native Libraries(C, C++)
which are needed by the Execution Engine.
Installing JDK:
Install it.
Write Your source file in a text editor and save it with an extension of .java
Now open the command prompt, and go to the directory where you have saved
your file by using cd command.
Now type
c:\\ javac <filename>.java
It will compile the code written in the text file, and will create the respective class
file.
Netbeans
Eclipse