SlideShare a Scribd company logo
JAVA BASICS
BY - OMKAR LOKHANDE
Contents:
What is java?
Java uses
Java History
JDK,JRE, JVM
JVM Architecture
OOPS
Exception Handling
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.
 Types of Java Applications
 Standalone Application
 Web Application
 Mobile Application
 Enterprise Application
Where it is used?
According to Sun, 3 billion devices run java. There are many devices where Java is
currently used. Some of them are as follows:
 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.
Java History
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.
1)James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.
The small team of sun engineers called Green Team.
2) Originally designed for small, embedded systems in electronic appliances like set-top boxes.
3) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt.
4) After that, it was called Oak and was developed as a part of the Green project.
Why "Oak" name
5) Why Oak? Oak is a symbol of strength and chosen as a national tree of many countries like U.S.A., France,
Germany, Romania etc.
6) In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies.
Why "Java" name
7) Why had they chosen java name for java language? The team gathered to choose a new name. The
suggested words were "dynamic", "revolutionary", "Silk", "jolt", "DNA" etc. They wanted something that
reflected the essence of the technology: revolutionary, dynamic, lively, cool, unique, and easy to spell and
fun to say.
According to James Gosling "Java was one of the top choices along with Silk". Since java was so unique,
most of the team members preferred java.
8) Java is an island of Indonesia where first coffee was produced (called java coffee).
9) Notice that Java is just a name not an acronym.
10) Originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle
Corporation) and released in 1995.
11) In 1995, Time magazine called Java one of the Ten Best Products of 1995.
Java Version History
 JDK Alpha and Beta (1995)
 JDK 1.0 (23rd Jan, 1996)
 JDK 1.1 (19th Feb, 1997)
 J2SE 1.2 (8th Dec, 1998)
 J2SE 1.3 (8th May, 2000)
 J2SE 1.4 (6th Feb, 2002)
 J2SE 5.0 (30th Sep, 2004)
 Java SE 6 (11th Dec, 2006)
 Java SE 7 (28th July, 2011)
 Java SE 8 (18th March, 2014)
 Features of Java
JDK,JRE, JVM
 JVM
JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java
bytecode can be executed.
The JVM performs following main tasks:
Loads code
Verifies code
Executes code
Provides runtime environment
 JRE
JRE is an acronym for Java Runtime Environment. It is used to provide runtime environment. It is the implementation of
JVM. It physically exists. It contains set of libraries + other files that JVM uses at runtime.
 JDK
JDK is an acronym for Java Development Kit. It physically exists. It contains JRE + development tools.
class Simple{
public static void main(String args[]){
System.out.println("Hello Java");
}
}
JVM Architecture
 Data Types in Java
OOPs (Object Oriented Programming System)
Object
Any entity that has state and behavior is known as an object. For example: chair, pen, table, keyboard, bike
etc. It can be physical and logical.
class
Collection of objects is called class. It is a logical entity.
Inheritance
When one object acquires all the properties and behaviors of parent object i.e. known as inheritance.
It provides code reusability. It is used to achieve runtime polymorphism.
Polymorphism
When one task is performed by different ways i.e. known as polymorphism. For example: to
convince the customer differently, to draw something e.g. shape or rectangle etc.
Abstraction
Hiding internal details and showing functionality is known as abstraction. For example: phone
call, we don't know the internal processing.
In java, we use abstract class and interface to achieve abstraction.
Encapsulation
Binding (or wrapping) code and data together into a single unit is known as encapsulation. For
example: capsule, it is wrapped with different medicines.
 Exception Handling in Java
 any questions
Java basics

More Related Content

What's hot (7)

PPTX
java training in jaipur|java training|core java training|java training compa...
infojaipurinfo Jaipur
 
PPT
Java basic introduction
Ideal Eyes Business College
 
PPTX
Java
Harry Potter
 
PPT
Java basics
suraj pandey
 
PPTX
Core Java Basics
Sujit Pathak
 
PPT
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
PPT
Fundamentals of JAVA
KUNAL GADHIA
 
java training in jaipur|java training|core java training|java training compa...
infojaipurinfo Jaipur
 
Java basic introduction
Ideal Eyes Business College
 
Java basics
suraj pandey
 
Core Java Basics
Sujit Pathak
 
INTRODUCTION TO JAVA APPLICATION
Ajit Yadav
 
Fundamentals of JAVA
KUNAL GADHIA
 

Similar to Java basics (20)

PPTX
Java technology is widely used currently. Let's start learning of java from b...
aliblackcat76
 
PPTX
Java
James Wong
 
PPTX
Java
Tony Nguyen
 
PPTX
Java
Fraboni Ec
 
PPTX
Java
Luis Goldster
 
PPTX
Java
Young Alista
 
PDF
what is java.pdf
XanGwaps
 
PPTX
java basics concepts and the keywords needed
PriyadharshiniG41
 
PPTX
Chapter 1 (1).pptx
krishnashah277578
 
PPTX
1 .java basic
Indu Sharma Bhardwaj
 
PPTX
Introduction to java
Java Lover
 
PDF
TechSearchWeb.pdf
TechSearchWeb
 
PDF
Technology Tutorial.pdf
TechSearchWeb
 
PPS
Introduction to Java
Ankita Totala
 
PDF
Java Basic.pdf
TechSearchWeb
 
PDF
Java Concepts and Features-Programming in Java
jasminebeulahg
 
PDF
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
PPTX
PROGRAMMING IN JAVA unit 1.pptx
SeethaDinesh
 
PPTX
UNIT 1.pptx
EduclentMegasoftel
 
PPTX
Java fundamentals
Om Ganesh
 
Java technology is widely used currently. Let's start learning of java from b...
aliblackcat76
 
what is java.pdf
XanGwaps
 
java basics concepts and the keywords needed
PriyadharshiniG41
 
Chapter 1 (1).pptx
krishnashah277578
 
1 .java basic
Indu Sharma Bhardwaj
 
Introduction to java
Java Lover
 
TechSearchWeb.pdf
TechSearchWeb
 
Technology Tutorial.pdf
TechSearchWeb
 
Introduction to Java
Ankita Totala
 
Java Basic.pdf
TechSearchWeb
 
Java Concepts and Features-Programming in Java
jasminebeulahg
 
TechSearchWeb Tutorials.pdf
TechSearchWeb
 
PROGRAMMING IN JAVA unit 1.pptx
SeethaDinesh
 
UNIT 1.pptx
EduclentMegasoftel
 
Java fundamentals
Om Ganesh
 
Ad

Recently uploaded (20)

PDF
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
PDF
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
PDF
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
PPTX
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
PDF
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PPTX
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
PPTX
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
PDF
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
PDF
Digital water marking system project report
Kamal Acharya
 
PPTX
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
PDF
Design Thinking basics for Engineers.pdf
CMR University
 
PPT
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
PPTX
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
PDF
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
PDF
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
PDF
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
PPTX
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
PPTX
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
PPTX
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Water Industry Process Automation & Control Monthly July 2025
Water Industry Process Automation & Control
 
Viol_Alessandro_Presentazione_prelaurea.pdf
dsecqyvhbowrzxshhf
 
Pressure Measurement training for engineers and Technicians
AIESOLUTIONS
 
Water Resources Engineering (CVE 728)--Slide 4.pptx
mohammedado3
 
methodology-driven-mbse-murphy-july-hsv-huntsville6680038572db67488e78ff00003...
henriqueltorres1
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
Worm gear strength and wear calculation as per standard VB Bhandari Databook.
shahveer210504
 
DATA BASE MANAGEMENT AND RELATIONAL DATA
gomathisankariv2
 
Halide Perovskites’ Multifunctional Properties: Coordination Engineering, Coo...
TaameBerhe2
 
Digital water marking system project report
Kamal Acharya
 
OCS353 DATA SCIENCE FUNDAMENTALS- Unit 1 Introduction to Data Science
A R SIVANESH M.E., (Ph.D)
 
Design Thinking basics for Engineers.pdf
CMR University
 
New_school_Engineering_presentation_011707.ppt
VinayKumar304579
 
Numerical-Solutions-of-Ordinary-Differential-Equations.pptx
SAMUKTHAARM
 
Basic_Concepts_in_Clinical_Biochemistry_2018كيمياء_عملي.pdf
AdelLoin
 
aAn_Introduction_to_Arcadia_20150115.pdf
henriqueltorres1
 
SERVERLESS PERSONAL TO-DO LIST APPLICATION
anushaashraf20
 
What is Shot Peening | Shot Peening is a Surface Treatment Process
Vibra Finish
 
Biosensors, BioDevices, Biomediccal.pptx
AsimovRiyaz
 
MODULE 04 - CLOUD COMPUTING AND SECURITY.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
Ad

Java basics

  • 1. JAVA BASICS BY - OMKAR LOKHANDE
  • 2. Contents: What is java? Java uses Java History JDK,JRE, JVM JVM Architecture OOPS Exception Handling
  • 3. 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.  Types of Java Applications  Standalone Application  Web Application  Mobile Application  Enterprise Application
  • 4. Where it is used? According to Sun, 3 billion devices run java. There are many devices where Java is currently used. Some of them are as follows:  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.
  • 5. Java History 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. 1)James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991. The small team of sun engineers called Green Team. 2) Originally designed for small, embedded systems in electronic appliances like set-top boxes. 3) Firstly, it was called "Greentalk" by James Gosling and file extension was .gt. 4) After that, it was called Oak and was developed as a part of the Green project. Why "Oak" name 5) Why Oak? Oak is a symbol of strength and chosen as a national tree of many countries like U.S.A., France, Germany, Romania etc. 6) In 1995, Oak was renamed as "Java" because it was already a trademark by Oak Technologies. Why "Java" name
  • 6. 7) Why had they chosen java name for java language? The team gathered to choose a new name. The suggested words were "dynamic", "revolutionary", "Silk", "jolt", "DNA" etc. They wanted something that reflected the essence of the technology: revolutionary, dynamic, lively, cool, unique, and easy to spell and fun to say. According to James Gosling "Java was one of the top choices along with Silk". Since java was so unique, most of the team members preferred java. 8) Java is an island of Indonesia where first coffee was produced (called java coffee). 9) Notice that Java is just a name not an acronym. 10) Originally developed by James Gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995. 11) In 1995, Time magazine called Java one of the Ten Best Products of 1995.
  • 7. Java Version History  JDK Alpha and Beta (1995)  JDK 1.0 (23rd Jan, 1996)  JDK 1.1 (19th Feb, 1997)  J2SE 1.2 (8th Dec, 1998)  J2SE 1.3 (8th May, 2000)  J2SE 1.4 (6th Feb, 2002)  J2SE 5.0 (30th Sep, 2004)  Java SE 6 (11th Dec, 2006)  Java SE 7 (28th July, 2011)  Java SE 8 (18th March, 2014)
  • 9. JDK,JRE, JVM  JVM JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed. The JVM performs following main tasks: Loads code Verifies code Executes code Provides runtime environment  JRE JRE is an acronym for Java Runtime Environment. It is used to provide runtime environment. It is the implementation of JVM. It physically exists. It contains set of libraries + other files that JVM uses at runtime.  JDK JDK is an acronym for Java Development Kit. It physically exists. It contains JRE + development tools.
  • 10. class Simple{ public static void main(String args[]){ System.out.println("Hello Java"); } } JVM Architecture
  • 11.  Data Types in Java
  • 12. OOPs (Object Oriented Programming System) Object Any entity that has state and behavior is known as an object. For example: chair, pen, table, keyboard, bike etc. It can be physical and logical. class Collection of objects is called class. It is a logical entity. Inheritance When one object acquires all the properties and behaviors of parent object i.e. known as inheritance. It provides code reusability. It is used to achieve runtime polymorphism. Polymorphism When one task is performed by different ways i.e. known as polymorphism. For example: to convince the customer differently, to draw something e.g. shape or rectangle etc.
  • 13. Abstraction Hiding internal details and showing functionality is known as abstraction. For example: phone call, we don't know the internal processing. In java, we use abstract class and interface to achieve abstraction. Encapsulation Binding (or wrapping) code and data together into a single unit is known as encapsulation. For example: capsule, it is wrapped with different medicines.