SlideShare a Scribd company logo
1 of 15
Presentation By:-
Ajeet Kumar Verma
B.C.A 3rd
yr
PROGRAMMING IN JAVA
Introduction to JAVA
Topic:-Genesis and overview of
Java
Contents
• What is JAVA?
● • What is OOPs?
● • Why Java?
● Characteristics of JAVA
● Overview of Java.
● The difference between Java and C++?
● A Simple JAVA Program
What is JAVA?
● Developed by Sun Microsystems (James Gosling)
● A general-purpose Object-Oriented language
● Based on C/C++
● Designed for easy Web/Internet applications
● Widespread acceptance
What is Object Oriented
Programming?
● Object-oriented programming is a method of
implementation in which programs are organized as
cooperative collections of objects, each of which
represents an instance of some class, and whose
classes are all members of one or more hierarchy of
classes united via inheritance relationships.
Principles of OOP
● All object-oriented programming languages provide
mechanisms that help you implement the
objectoriented model.
• They are:--
● Encapsulation
● Inheritance
● Polymorphism
Data Encapsulation
● Encapsulation is the mechanism that binds together
code and the data it manipulates, and keeps both safe
from outside interference and misuse.
● Example:-
class Account {
int x=10;
float withdraw();
void deposit(float amount);
float balance;
}
Advantages of Encapsulation
● Protection
● Consistency
● Allows change
Inheritance
● Inheritance is the process by which one object acquires the
properties of another object.
● A class that is derived from another class is called a subclass
(also a derived class, extended class, or child class).
● The class from which the subclass is derived is called a super
class (also a base class or a parent class).
● A class which is a subtype of a more general class is said to
be inherited from it.
Inheritance cont’d
● The sub-class inherits the base class’ data members
and member functions.
● A sub-class has all data members of its base-class
plus its own.
● A sub-class has all member functions of its base
class (with changes) plus its own.
Polymorphism
● Polymorphism refers to a programming language's ability to process
objects differently depending on their data type or class.
● Generally, the ability to appear in many forms.
● More specifically, it is the ability to redefine methods for derived
classes.
● For example, given a base class shape, polymorphism enables the
programmer to define different area methods for any number of derived
classes, such as circles, rectangles and triangles. No matter what shape
an object is, applying the area method to it will return the correct results.
Why Java?
● Java is the Internet programming language.
● Java enables users to develop and deploy
applications on the Internet for servers, desktop
computers, and small hand-held devices.
Characteristics of Java
● Java Is Simple
● Java Is Object-Oriented
● Java Is Distributed
● Java Is Interpreted
● Java Is Robust
● Java Is Secure
● Java Is Architecture-Neutral
● Java Is Portable
● Java's Performance
● Java Is Multithreaded
● Java Is Dynamic
JDK Versions
● JDK 1.02 (1995) … 250 classes
● JDK 1.1 (1996) … 500 classes
● JDK 1.2 (1998) … 2300 classes
● JDK 1.3 (2000) … 2300 classes
● JDK 1.4 (2002) … 2300 classes
● JDK 1.5 (2004) … 3500 classes
● JDK 1.6 (2006) … 3500 classes
● JDK 1.7 (2011) … 3500 classes
A Simple Java Program
● //This program prints Welcome to Java!
public class Welcome
{
public static void main(String[] args)
{
System.out.println("Welcome to Java!");
{
{

More Related Content

What's hot

Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
Tech_MX
 

What's hot (20)

Basics of JAVA programming
Basics of JAVA programmingBasics of JAVA programming
Basics of JAVA programming
 
Java tutorial PPT
Java tutorial PPTJava tutorial PPT
Java tutorial PPT
 
Introduction to java
Introduction to javaIntroduction to java
Introduction to java
 
Data Types & Variables in JAVA
Data Types & Variables in JAVAData Types & Variables in JAVA
Data Types & Variables in JAVA
 
java token
java tokenjava token
java token
 
Java Programming
Java ProgrammingJava Programming
Java Programming
 
Java interfaces
Java interfacesJava interfaces
Java interfaces
 
Java Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPRECJava Notes by C. Sreedhar, GPREC
Java Notes by C. Sreedhar, GPREC
 
Java Development Kit (jdk)
Java Development Kit (jdk)Java Development Kit (jdk)
Java Development Kit (jdk)
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
 
Java basic
Java basicJava basic
Java basic
 
Java Data Types
Java Data TypesJava Data Types
Java Data Types
 
Interface in java
Interface in javaInterface in java
Interface in java
 
Basic concept of OOP's
Basic concept of OOP'sBasic concept of OOP's
Basic concept of OOP's
 
History of java'
History of java'History of java'
History of java'
 
Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".Summer training presentation on "CORE JAVA".
Summer training presentation on "CORE JAVA".
 
Inheritance in java
Inheritance in javaInheritance in java
Inheritance in java
 
java Features
java Featuresjava Features
java Features
 
Object Oriented Programming
Object Oriented ProgrammingObject Oriented Programming
Object Oriented Programming
 

Similar to Basic of Java

lecture-1111111111111111111111111111.pdf
lecture-1111111111111111111111111111.pdflecture-1111111111111111111111111111.pdf
lecture-1111111111111111111111111111.pdf
harey68956
 
1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx
Kabiles07
 
Unit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rdUnit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rd
prat0ham
 

Similar to Basic of Java (20)

L1 basics
L1 basicsL1 basics
L1 basics
 
JAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).pptJAVA object oriented programming (oop).ppt
JAVA object oriented programming (oop).ppt
 
U1 JAVA.pptx
U1 JAVA.pptxU1 JAVA.pptx
U1 JAVA.pptx
 
object oriented programming examples
object oriented programming examplesobject oriented programming examples
object oriented programming examples
 
Java Jive 002.pptx
Java Jive 002.pptxJava Jive 002.pptx
Java Jive 002.pptx
 
Getting Started with JAVA
Getting Started with JAVAGetting Started with JAVA
Getting Started with JAVA
 
Oop.pptx
Oop.pptxOop.pptx
Oop.pptx
 
Elements of Java Language
Elements of Java Language Elements of Java Language
Elements of Java Language
 
Introduction to Java
Introduction to JavaIntroduction to Java
Introduction to Java
 
lecture-1111111111111111111111111111.pdf
lecture-1111111111111111111111111111.pdflecture-1111111111111111111111111111.pdf
lecture-1111111111111111111111111111.pdf
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
Unit 2.pptx
Unit 2.pptxUnit 2.pptx
Unit 2.pptx
 
Features of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptxFeatures of Object Oriented Programming.pptx
Features of Object Oriented Programming.pptx
 
Session 02 - Elements of Java Language
Session 02 - Elements of Java LanguageSession 02 - Elements of Java Language
Session 02 - Elements of Java Language
 
Programming language paradigms
Programming language paradigmsProgramming language paradigms
Programming language paradigms
 
Java programming language
Java programming languageJava programming language
Java programming language
 
Java programming and security
Java programming and securityJava programming and security
Java programming and security
 
unit1.pptx
unit1.pptxunit1.pptx
unit1.pptx
 
1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx1 Introduction to JAVA.pptx
1 Introduction to JAVA.pptx
 
Unit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rdUnit 1 Core Java for Compter Science 3rd
Unit 1 Core Java for Compter Science 3rd
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 

Recently uploaded (20)

Simple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdfSimple, Complex, and Compound Sentences Exercises.pdf
Simple, Complex, and Compound Sentences Exercises.pdf
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
dusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learningdusjagr & nano talk on open tools for agriculture research and learning
dusjagr & nano talk on open tools for agriculture research and learning
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
latest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answerslatest AZ-104 Exam Questions and Answers
latest AZ-104 Exam Questions and Answers
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Basic of Java

  • 1. Presentation By:- Ajeet Kumar Verma B.C.A 3rd yr
  • 2. PROGRAMMING IN JAVA Introduction to JAVA Topic:-Genesis and overview of Java
  • 3. Contents • What is JAVA? ● • What is OOPs? ● • Why Java? ● Characteristics of JAVA ● Overview of Java. ● The difference between Java and C++? ● A Simple JAVA Program
  • 4. What is JAVA? ● Developed by Sun Microsystems (James Gosling) ● A general-purpose Object-Oriented language ● Based on C/C++ ● Designed for easy Web/Internet applications ● Widespread acceptance
  • 5. What is Object Oriented Programming? ● Object-oriented programming is a method of implementation in which programs are organized as cooperative collections of objects, each of which represents an instance of some class, and whose classes are all members of one or more hierarchy of classes united via inheritance relationships.
  • 6. Principles of OOP ● All object-oriented programming languages provide mechanisms that help you implement the objectoriented model. • They are:-- ● Encapsulation ● Inheritance ● Polymorphism
  • 7. Data Encapsulation ● Encapsulation is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse. ● Example:- class Account { int x=10; float withdraw(); void deposit(float amount); float balance; }
  • 8. Advantages of Encapsulation ● Protection ● Consistency ● Allows change
  • 9. Inheritance ● Inheritance is the process by which one object acquires the properties of another object. ● A class that is derived from another class is called a subclass (also a derived class, extended class, or child class). ● The class from which the subclass is derived is called a super class (also a base class or a parent class). ● A class which is a subtype of a more general class is said to be inherited from it.
  • 10. Inheritance cont’d ● The sub-class inherits the base class’ data members and member functions. ● A sub-class has all data members of its base-class plus its own. ● A sub-class has all member functions of its base class (with changes) plus its own.
  • 11. Polymorphism ● Polymorphism refers to a programming language's ability to process objects differently depending on their data type or class. ● Generally, the ability to appear in many forms. ● More specifically, it is the ability to redefine methods for derived classes. ● For example, given a base class shape, polymorphism enables the programmer to define different area methods for any number of derived classes, such as circles, rectangles and triangles. No matter what shape an object is, applying the area method to it will return the correct results.
  • 12. Why Java? ● Java is the Internet programming language. ● Java enables users to develop and deploy applications on the Internet for servers, desktop computers, and small hand-held devices.
  • 13. Characteristics of Java ● Java Is Simple ● Java Is Object-Oriented ● Java Is Distributed ● Java Is Interpreted ● Java Is Robust ● Java Is Secure ● Java Is Architecture-Neutral ● Java Is Portable ● Java's Performance ● Java Is Multithreaded ● Java Is Dynamic
  • 14. JDK Versions ● JDK 1.02 (1995) … 250 classes ● JDK 1.1 (1996) … 500 classes ● JDK 1.2 (1998) … 2300 classes ● JDK 1.3 (2000) … 2300 classes ● JDK 1.4 (2002) … 2300 classes ● JDK 1.5 (2004) … 3500 classes ● JDK 1.6 (2006) … 3500 classes ● JDK 1.7 (2011) … 3500 classes
  • 15. A Simple Java Program ● //This program prints Welcome to Java! public class Welcome { public static void main(String[] args) { System.out.println("Welcome to Java!"); { {