JAVA INTRODUCTION
NAVEENA E.
What is Java?
Java is a programming language and a platform.
Java is a high level, robust, secured and object-
oriented programming language.
Platform: Any hardware or software environment
in which a program runs, is known as a platform.
Since Java has its own runtime environment (JRE)
and API, it is called platform.
Where it is used?
 Desktop Applications such as acrobat reader, media
player, antivirus etc.
 Web Applications such as irctc.co.in, javatpoint.com
etc.
 Enterprise Applications such as banking applications.
 Mobile
 Embedded System
 Smart Card
 Robotics
 Games etc.
Types of Java Applications
1) Standalone Application
It is also known as desktop application or window-based
application. An application that we need to install on every
machine such as media player, antivirus etc. AWT and Swing
are used in java for creating standalone applications.
2) Web Application
An application that runs on the server side and creates
dynamic page, is called web application. Currently, servlet,
jsp. technologies are used for creating web applications in
java.
3) Enterprise Application
An application that is distributed in nature, such as banking
applications etc. It has the advantage of high level security,
load balancing and clustering. In java, EJB is used for
creating enterprise applications.
4) Mobile Application
An application that is created for mobile devices.
Currently Android and Java ME are used for
creating mobile applications.
History of Java
 Java history is interesting to know. The history of java
starts from Green Team. Java team members (also
known as Green Team), initiated a revolutionary task to
develop a language for digital devices such as set-top
boxes, televisions etc.
 Java is used in internet programming, mobile devices,
games, e-business solutions etc.
 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.
 Why Oak? Oak is a symbol of strength and choosen as a
national tree of many countries like U.S.A., France, Germany,
Romania etc.
 In 1995, Oak was renamed as "Java" because it was already
a trademark by Oak Technologies.
 Java is an island of Indonesia where first coffee was produced
(called java coffee).
 Notice that Java is just a name not an acronym.
 Originally developed by James Gosling at Sun Microsystems
(which is now a subsidiary of Oracle Corporation) and released in
1995.
 In 1995, Time magazine called Java one of the Ten Best
Products of 1995.
 JDK 1.0 released in(January 23, 1996).
Java introduction
Simple
 Java language is simple because:
 syntax is based on C++ (so easier for programmers to
learn it after C++).
 removed many confusing and/or rarely-used features e.g.,
explicit pointers, operator overloading etc.
 No need to remove unreferenced objects because there is
Automatic Garbage Collection in java.
Object-oriented
 Object
 Class
 Inheritance
 Polymorphism
 Abstraction
 Encapsulation
Platform Independent
 There are two types of platforms software-based and
hardware-based. Java provides software-based platform.
 it is a software-based platform that runs on the top of other
hardware-based platforms.
 Java code is compiled by the compiler and converted into
bytecode. This bytecode is a platform-independent code
because it can be run on multiple platforms i.e. Write Once
and Run Anywhere(WORA).
Java introduction
Secured
Java is secured because:
o No explicit pointer
o Java Programs run inside virtual machine .
o Classloader: adds security by separating the
package for the classes of the local file system from
those that are imported from network sources.
Bytecode Verifier:
checks the code fragments for illegal code that can violate
access right to objects.
Security Manager:
determines what resources a class can access such as
reading and writing to the local disk.
These security are provided by java language.
Robust
Robust simply means strong. Java uses strong
memory management. There are lack of pointers that
avoids security problem. There is automatic garbage
collection in java. There is exception handling and
type checking mechanism in java. All these points
makes java robust.
Architecture-neutral
 There is no implementation dependent features e.g. size of
primitive types is fixed.
 In C programming, int data type occupies 2 bytes of
memory for 32-bit architecture and 4 bytes of memory for
64-bit architecture. But in java, it occupies 4 bytes of
memory for both 32 and 64 bit architectures.
Portable
We may carry the java bytecode to any platform.
High-performance
Java is faster than traditional interpretation since byte
code is "close" to native code still somewhat slower than a
compiled language (e.g., C++)
Distributed
 We can create distributed applications in java. RMI
and EJB are used for creating distributed applications.
We may access files by calling the methods from any
machine on the internet.
Wrapper classes

The object of the wrapper class contains or wraps its
respective primitive data type. Converting primitive data
types into object is called boxing, and this is taken care
by the compiler.
Primitive Type Wrapper class
boolean Boolean
char Character
byte Byte
short Short
int Integer
long Long
float Float
double Double
 public class Test {
 public static void main(String args[]) {
 Integer x = 5; // boxes int to an Integer object
 x = x + 10; // unboxes the Integer to a int
 System.out.println(x);
 }
 }
Output
 15
 When x is assigned an integer value, the compiler boxes the integer because x is
integer object. Later, x is unboxed so that they can be added as an integer.
1.public class WrapperExample1{
2.public static void main(String args[]){
3.//Converting int into Integer
4.int a=20;
5.Integer i=Integer.valueOf(a);//converting int
into Integer
6.Integer j=a;//autoboxing, now compiler will
write Integer.valueOf(a) internally
7.
8.System.out.println(a+" "+i+" "+j);
9.}}

More Related Content

PDF
Java introduction
PPTX
Important features of java
PDF
Java unit 1
PPTX
Introduction to Java Programming
PPTX
PDF
Learn Java Part 1
PPT
A begineers guide of JAVA - Getting Started
PPTX
Java introduction
Important features of java
Java unit 1
Introduction to Java Programming
Learn Java Part 1
A begineers guide of JAVA - Getting Started

What's hot (20)

PPTX
JAVA ENVIRONMENT
PPTX
Java byte code presentation
PPTX
Presentation on Core java
PPTX
JRE , JDK and platform independent nature of JAVA
PPTX
Features of java
PPTX
core java
PPTX
Java virtual machine
PPT
Introduction to Java Programming, Basic Structure, variables Data type, input...
PPTX
Presentación rs232 java
PPTX
Chapter 1
PPT
1 Introduction To Java Technology
PPTX
Basics of JAVA programming
PDF
Introduction to Java
PPTX
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
PPTX
PPTX
Features of java 02
PPT
Java and internet fundamentals.
PPTX
QSpiders - Jdk Jvm Jre and Jit
PDF
Java and Java platforms
JAVA ENVIRONMENT
Java byte code presentation
Presentation on Core java
JRE , JDK and platform independent nature of JAVA
Features of java
core java
Java virtual machine
Introduction to Java Programming, Basic Structure, variables Data type, input...
Presentación rs232 java
Chapter 1
1 Introduction To Java Technology
Basics of JAVA programming
Introduction to Java
Java Virtual Machine (JVM), Difference JDK, JRE & JVM
Features of java 02
Java and internet fundamentals.
QSpiders - Jdk Jvm Jre and Jit
Java and Java platforms

Similar to Java introduction (20)

PPTX
Chapter 1 (1).pptx
PPTX
Java
PPTX
Getting Started with JAVA
PPTX
Chapter-1 Introduction.pptx
PPTX
1 .java basic
PDF
Java Basic.pdf
PDF
what is java.pdf
PPTX
PPTX
PPTX
PPTX
PPTX
PPTX
Java technology is widely used currently. Let's start learning of java from b...
PDF
Java Concepts and Features-Programming in Java
PPT
PPS Java Overview Unit I.ppt
PPT
PPS Java Overview Unit I.ppt
PPTX
PROGRAMMING IN JAVA unit 1.pptx
PPTX
java basics concepts and the keywords needed
PPTX
What is Java, JDK, JVM, Introduction to Java.pptx
PPTX
UNIT 1.pptx
Chapter 1 (1).pptx
Java
Getting Started with JAVA
Chapter-1 Introduction.pptx
1 .java basic
Java Basic.pdf
what is java.pdf
Java technology is widely used currently. Let's start learning of java from b...
Java Concepts and Features-Programming in Java
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
PROGRAMMING IN JAVA unit 1.pptx
java basics concepts and the keywords needed
What is Java, JDK, JVM, Introduction to Java.pptx
UNIT 1.pptx

Recently uploaded (20)

PDF
Advancements in abstractive text summarization: a deep learning approach
PDF
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
PDF
Uncertainty-aware contextual multi-armed bandits for recommendations in e-com...
PDF
Altius execution marketplace concept.pdf
PDF
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
PDF
Child-friendly e-learning for artificial intelligence education in Indonesia:...
PDF
Introduction to c language from lecture slides
PDF
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
PDF
TrustArc Webinar - Data Minimization in Practice_ Reducing Risk, Enhancing Co...
PDF
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
PPTX
How to use fields_get method in Odoo 18
PPTX
Presentation - Principles of Instructional Design.pptx
PDF
Technical Debt in the AI Coding Era - By Antonio Bianco
PDF
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
PPTX
Information-Technology-in-Human-Society (2).pptx
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
PDF
NewMind AI Journal Monthly Chronicles - August 2025
PPTX
Strategic Picks — Prioritising the Right Agentic Use Cases [2/6]
PDF
substrate PowerPoint Presentation basic one
PDF
Domain-specific knowledge and context in large language models: challenges, c...
Advancements in abstractive text summarization: a deep learning approach
EGCB_Solar_Project_Presentation_and Finalcial Analysis.pdf
Uncertainty-aware contextual multi-armed bandits for recommendations in e-com...
Altius execution marketplace concept.pdf
Revolutionizing recommendations a survey: a comprehensive exploration of mode...
Child-friendly e-learning for artificial intelligence education in Indonesia:...
Introduction to c language from lecture slides
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
TrustArc Webinar - Data Minimization in Practice_ Reducing Risk, Enhancing Co...
ELLIE29.pdfWETWETAWTAWETAETAETERTRTERTER
How to use fields_get method in Odoo 18
Presentation - Principles of Instructional Design.pptx
Technical Debt in the AI Coding Era - By Antonio Bianco
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
Information-Technology-in-Human-Society (2).pptx
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
NewMind AI Journal Monthly Chronicles - August 2025
Strategic Picks — Prioritising the Right Agentic Use Cases [2/6]
substrate PowerPoint Presentation basic one
Domain-specific knowledge and context in large language models: challenges, c...

Java introduction

  • 2. What is Java? Java is a programming language and a platform. Java is a high level, robust, secured and object- oriented programming language. Platform: Any hardware or software environment in which a program runs, is known as a platform. Since Java has its own runtime environment (JRE) and API, it is called platform.
  • 3. Where it is used?  Desktop Applications such as acrobat reader, media player, antivirus etc.  Web Applications such as irctc.co.in, javatpoint.com etc.  Enterprise Applications such as banking applications.  Mobile  Embedded System  Smart Card  Robotics  Games etc.
  • 4. Types of Java Applications 1) Standalone Application It is also known as desktop application or window-based application. An application that we need to install on every machine such as media player, antivirus etc. AWT and Swing are used in java for creating standalone applications.
  • 5. 2) Web Application An application that runs on the server side and creates dynamic page, is called web application. Currently, servlet, jsp. technologies are used for creating web applications in java. 3) Enterprise Application An application that is distributed in nature, such as banking applications etc. It has the advantage of high level security, load balancing and clustering. In java, EJB is used for creating enterprise applications.
  • 6. 4) Mobile Application An application that is created for mobile devices. Currently Android and Java ME are used for creating mobile applications.
  • 7. History of Java  Java history is interesting to know. The history of java starts from Green Team. Java team members (also known as Green Team), initiated a revolutionary task to develop a language for digital devices such as set-top boxes, televisions etc.  Java is used in internet programming, mobile devices, games, e-business solutions etc.
  • 8.  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.  Why Oak? Oak is a symbol of strength and choosen as a national tree of many countries like U.S.A., France, Germany, Romania etc.  In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies.
  • 9.  Java is an island of Indonesia where first coffee was produced (called java coffee).  Notice that Java is just a name not an acronym.  Originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995.  In 1995, Time magazine called Java one of the Ten Best Products of 1995.  JDK 1.0 released in(January 23, 1996).
  • 11. Simple  Java language is simple because:  syntax is based on C++ (so easier for programmers to learn it after C++).  removed many confusing and/or rarely-used features e.g., explicit pointers, operator overloading etc.  No need to remove unreferenced objects because there is Automatic Garbage Collection in java.
  • 12. Object-oriented  Object  Class  Inheritance  Polymorphism  Abstraction  Encapsulation
  • 13. Platform Independent  There are two types of platforms software-based and hardware-based. Java provides software-based platform.  it is a software-based platform that runs on the top of other hardware-based platforms.  Java code is compiled by the compiler and converted into bytecode. This bytecode is a platform-independent code because it can be run on multiple platforms i.e. Write Once and Run Anywhere(WORA).
  • 16. Java is secured because: o No explicit pointer o Java Programs run inside virtual machine . o Classloader: adds security by separating the package for the classes of the local file system from those that are imported from network sources.
  • 17. Bytecode Verifier: checks the code fragments for illegal code that can violate access right to objects. Security Manager: determines what resources a class can access such as reading and writing to the local disk. These security are provided by java language.
  • 18. Robust Robust simply means strong. Java uses strong memory management. There are lack of pointers that avoids security problem. There is automatic garbage collection in java. There is exception handling and type checking mechanism in java. All these points makes java robust.
  • 19. Architecture-neutral  There is no implementation dependent features e.g. size of primitive types is fixed.  In C programming, int data type occupies 2 bytes of memory for 32-bit architecture and 4 bytes of memory for 64-bit architecture. But in java, it occupies 4 bytes of memory for both 32 and 64 bit architectures.
  • 20. Portable We may carry the java bytecode to any platform. High-performance Java is faster than traditional interpretation since byte code is "close" to native code still somewhat slower than a compiled language (e.g., C++)
  • 21. Distributed  We can create distributed applications in java. RMI and EJB are used for creating distributed applications. We may access files by calling the methods from any machine on the internet.
  • 22. Wrapper classes  The object of the wrapper class contains or wraps its respective primitive data type. Converting primitive data types into object is called boxing, and this is taken care by the compiler.
  • 23. Primitive Type Wrapper class boolean Boolean char Character byte Byte short Short int Integer long Long float Float double Double
  • 24.  public class Test {  public static void main(String args[]) {  Integer x = 5; // boxes int to an Integer object  x = x + 10; // unboxes the Integer to a int  System.out.println(x);  }  } Output  15  When x is assigned an integer value, the compiler boxes the integer because x is integer object. Later, x is unboxed so that they can be added as an integer.
  • 25. 1.public class WrapperExample1{ 2.public static void main(String args[]){ 3.//Converting int into Integer 4.int a=20; 5.Integer i=Integer.valueOf(a);//converting int into Integer 6.Integer j=a;//autoboxing, now compiler will write Integer.valueOf(a) internally 7. 8.System.out.println(a+" "+i+" "+j); 9.}}