Java Programming
Mrs. S. Gomathi Meena
AP, Department of Computer
Science,
VSWC
Introduction
Object Oriented Programming
Developed By ----
Principle ------
Introduction
Where Java is mostly used:-
Introduction
History and Evolution:-
• James Gosling --- Founder of java
•High-level programming language
•Java team members(Green Team) – a
revolutionary task to develop a language for
digital devices at that time
In Java Programming language , all source file is
written in plain text file with
.java extension
These source file are then compiled into .class file
using
javac compiler
A Class file does not contain code that is native to
the processor, It contains byte codes the machine
language of the Java virtual machine(JVM)
Java IDE Tool
1. Borland Jbuilder
2. Eclipse
3. Microsoft Visual J++
4. Jdeveloper
5. Netbeans
6. Greenfoot
7. jCDreator
Java Basic Tools
What is Java
A general purpose object oriented
language.
WORA --- (Write Once Run Anywhere)
Designed for easy Web/Internet
application
Widespread acceptance
Platform independent programming
language
Java Application
Four type of application :
1. Standalone / Desktop application
2. Web application
3. Enterprise application
4. Mobile application
Standalone Application / Desktop Application
Install on every machine (AWT & Swing)
Web Application
An application runs on the server side and
create dynamic web page is called web
application
Enterprise application
An application that is distributed in
nature (Banking)
Mobile application:-
Used for mobile devices (Android & Java
ME)
Feature of Java
1. Object Oriented
2. Plat-form independent
3. Simple
4. Secure
5. Robust
6. Architectural neutral
7. Portable
8. Dynamic
9. Interpreted
10. High Performance
11. Multithreaded
12. Distributed
Object Oriented Programming
Paradigm to a program with classes and objects
Real entity - pen, chair, table etc
Simplifies the software development and concepts
Objects
Classes
Inheritance
Polymorphism
Abstraction
Encapsulation
Platform Indepedent
Simple
Easy to learn and use effectively for the professional
programmer
C++ Programmer little effort to learn java because java
inherits most of C/C++ syntex
Secured
No explicit pointer
Programs run inside virtual machine
Robust
Lack of pointers
Exception handling and type mechanism checking in
java
These points which makes the java robust best
Architectural Neutral
Java needs to be compiled only once , run on many
CPU
Portable
Java Portable is an applet that runs java on many
computer system that don’t have it preinstalled
Dynamic
Used to resolve and verify access to objects at run
time
Possible to dynamic ally link code in safe and
expedient manner
Fragments of byte code may be dynamically updated
on a running system.
Interpreted
Code can be executed on any machine which
implements the java virtual machine
High performance
Faster than interpretation languages in C++ to
native byte code
Multithereaded
A thread is a separate program which execute
concurrently with many tasks at once by defining
multiple thread with the share memory (advantage)
Distributed
RMI(Remote Method Invocation) --- allows an object
running in one Java Virtual Machine (VM) to invoke
methods of an object running in another Java VM