SlideShare a Scribd company logo
Introduction to java
 Welcome to the course Object Oriented
Programming in JAVA. This course will cover
a core set of computer science concepts
needed to create a modern software
application using Java.
2
On completion of this course we will be able to:
1. Identify the importance of Java .
2. Identify the additional features of Java compared to C++ .
3. Identify the difference between Compiler and Interpreter .
4. Identify the difference between applet and application .
5. Apply Object Oriented Principles of Encapsulations, Data
abstraction, Inheritance, Polymorphism.
6. Program using java API (Application Programming
Interface).
7. Program using Exception Handling, Files andThreads .
8. Program Using applets and swings .
3
4
UNIT CONCEPTS to be covered
UNIT-I JAVA Basics
UNIT-II Inheritance
UNIT-III Data structures creation and manipulation in java
UNIT-IV Exception Handling
UNIT-V GUI ProgrammingWith JAVA
Introduction to java
 Two reasons :
 Trouble with C/C++ language is that they are not
portable and are not platform independent
languages.
 Emergence of World Wide Web, which demanded
portable programs
 Portability and security necessitated the
invention of Java
 James Gosling - Sun Microsystems
 Co founder –Vinod Khosla
 Oak - Java, May 20, 1995, SunWorld
 JDK Evolutions
 JDK 1.0 (January 23, 1996)
 JDK 1.1 (February 19, 1997)
 J2SE 1.2 (December 8, 1998)
 J2SE 1.3 (May 8, 2000)
 J2SE 1.4 (February 6, 2002)
 J2SE 5.0 (September 30, 2004)
 Java SE 6 (December 11, 2006)
 Java SE 7 (July 28, 2011)
 Java Editions.
J2SE(Java 2 Standard Edition) - to develop
client-side standalone applications or applets.
J2ME(Java 2 Micro Edition ) - to develop
applications for mobile devices such as cell
phones.
J2EE(Java 2 Enterprise Edition ) - to develop
server-side applications such as Java servlets
and Java ServerPages.
 A general-purpose object-oriented language.
 Write Once Run Anywhere (WORA).
 Designed for easyWeb/Internet applications.
 Widespread acceptance.
 C Language:
 Major difference is that C is a structure oriented language and
Java is an object oriented language and has mechanism to
define classes and objects.
 Java does not support an explicit pointer type
 Java does not have preprocessor, so we cant use #define,
#include and #ifdef statements.
 Java does not include structures, unions and enum data types.
 Java does not include keywords like goto, sizeof and typedef.
 Java adds labeled break and continue statements.
 Java adds many features required for object oriented
programming.
 C++ language
Features removed in java:
 Java doesn’t support pointers to avoid unauthorized
access of memory locations.
 Java does not include structures, unions and enum data
types.
 Java does not support operator over loading.
 Preprocessor plays less important role in C++ and so
eliminated entirely in java.
 Java does not perform automatic type conversions that
result in loss of precision.
 Java does not support global variables. Every method
and variable is declared within a class and forms part
of that class.
 Java does not allow default arguments.
 Java does not support inheritance of multiple super
classes by a sub class (i.e., multiple inheritance). This
is accomplished by using ‘interface’ concept.
 It is not possible to declare unsigned integers in java.
 In java objects are passed by reference only. In C++
objects may be passed by value or reference.
New features added in Java:
 Multithreading, that allows two or more pieces of the
same program to execute concurrently.
 C++ has a set of library functions that use a common
header file. But java replaces it with its own set of API
classes.
 It adds packages and interfaces.
 Java supports automatic garbage collection.
 break and continue statements have been enhanced
in java to accept labels as targets.
 The use of unicode characters ensures portability.
Features that differ:
 Though C++ and java supports Boolean data type, C++ takes
any nonzero value as true and zero as false. True and false in
java are predefined literals that are values for a boolean
expression.
 Java has replaced the destructor function with a finalize()
function.
 C++ supports exception handling that is similar to java's.
However, in C++ there is no requirement that a thrown
exception be caught.
 Java is simple
 Java is object-oriented
 Java is distributed
 Java is interpreted
 Java is robust
 Java is architecture-
neutral
 Java is portable
 Java’s performance
 Java is multithreaded
 Java is dynamic
 Java is secure
 Java includes many development tools, classes and
methods
 Development tools are part of Java Development Kit (JDK) and
 The classes and methods are part of Java Standard Library
(JSL), also known as Application Programming Interface (API).
 JDK constitutes of tools like java compiler, java
interpreter and many.
 API includes hundreds of classes and methods grouped
into several packages according to their functionality.
17
JAVA Program Execution
18
 Edit Plus Software:
 EditPlus is a 32-bit text editor for the
MicrosoftWindows operating system.
 The editor contains tools for programmers,
including syntax highlighting (and support for
custom syntax files), file type conversions,
line ending conversion (between Linux,
Windows and Mac styles), regular
expressions for search-and-replace, spell
check etc).
19
20
21
22

More Related Content

PPTX
Java Fundamentals in Mule
PPTX
Introduction to java
PDF
Introduction to Java
ODP
Basic of Java
PPTX
Java. converted (2)
PPTX
Introduction to Java -unit-1
PDF
Genesis and Overview of Java
PPTX
Spring presentation
Java Fundamentals in Mule
Introduction to java
Introduction to Java
Basic of Java
Java. converted (2)
Introduction to Java -unit-1
Genesis and Overview of Java
Spring presentation

What's hot (20)

DOC
Grade 8: Introduction To Java
PPTX
Java Programming
PPSX
CR Bridge Solutions Pvt Ltd. Java slides
PDF
Introduction to Java
PPT
Java for Recruiters
PDF
A seminar report on core java
PDF
Java technologies explained to non-technical audience
PDF
Introduction to Java Programming Language
PPTX
computer science JAVA ppt
PPTX
Java project
PPTX
Features of java
PPTX
Java seminar
PPTX
JAVA Training Syllabus Course
PPTX
core java
PDF
Object Oriented Programming - 3. Java Programming
PDF
Java Programming Basics
PPTX
Important features of java
PDF
PPTX
Why java is important in programming language?
PDF
Core java course syllabus
Grade 8: Introduction To Java
Java Programming
CR Bridge Solutions Pvt Ltd. Java slides
Introduction to Java
Java for Recruiters
A seminar report on core java
Java technologies explained to non-technical audience
Introduction to Java Programming Language
computer science JAVA ppt
Java project
Features of java
Java seminar
JAVA Training Syllabus Course
core java
Object Oriented Programming - 3. Java Programming
Java Programming Basics
Important features of java
Why java is important in programming language?
Core java course syllabus
Ad

Similar to Introduction to java (20)

PPTX
Introduction to java
PPTX
java tutorial for beginner - Free Download
PPTX
Introduction to java
PPTX
Java Introduction
PPTX
Java Basics in Mule
PPTX
Java in Mule
PPTX
Java Basics
PPTX
Introduction to java
PPTX
Introduction to java
PPTX
Unit1 introduction to Java
PPT
introduction_to_core_elementry_java-1.ppt
PDF
Introduction to Java
PPTX
Chapter One Basics ofJava Programmming.pptx
PDF
Java chapter 1
PPTX
Java basic
PPTX
Lecture java basics
PDF
OOPS JAVA.pdf
PPT
Java ppt-class_Introduction_class_Objects.ppt
PPT
Java ppt-class_basic data types methods definitions
PPTX
brief introduction to core java programming.pptx
Introduction to java
java tutorial for beginner - Free Download
Introduction to java
Java Introduction
Java Basics in Mule
Java in Mule
Java Basics
Introduction to java
Introduction to java
Unit1 introduction to Java
introduction_to_core_elementry_java-1.ppt
Introduction to Java
Chapter One Basics ofJava Programmming.pptx
Java chapter 1
Java basic
Lecture java basics
OOPS JAVA.pdf
Java ppt-class_Introduction_class_Objects.ppt
Java ppt-class_basic data types methods definitions
brief introduction to core java programming.pptx
Ad

More from sanjay joshi (20)

PPTX
Ccna security
PPTX
Array in c language
PPTX
Introduction to c programming language
PPTX
Cloud computing
PPT
Static and dynamic polymorphism
PPTX
Embeded system
PPTX
Distributed database
PPTX
Vb and asp.net
PPTX
Angular js
PPTX
introduction to c programming language
PPTX
Oops in php
PPTX
Cascading Style Sheets
PPTX
Css3 responsive
PPT
Html ppt
PPT
Java script
PPT
Data Structure And Queue
PPT
Static and dynamic polymorphism
PPTX
Angularjs
PPT
Visual basic
PPTX
Distributed database
Ccna security
Array in c language
Introduction to c programming language
Cloud computing
Static and dynamic polymorphism
Embeded system
Distributed database
Vb and asp.net
Angular js
introduction to c programming language
Oops in php
Cascading Style Sheets
Css3 responsive
Html ppt
Java script
Data Structure And Queue
Static and dynamic polymorphism
Angularjs
Visual basic
Distributed database

Recently uploaded (20)

PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
master seminar digital applications in india
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Insiders guide to clinical Medicine.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
01-Introduction-to-Information-Management.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
master seminar digital applications in india
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
O7-L3 Supply Chain Operations - ICLT Program
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Insiders guide to clinical Medicine.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
O5-L3 Freight Transport Ops (International) V1.pdf
Pharma ospi slides which help in ospi learning
01-Introduction-to-Information-Management.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
VCE English Exam - Section C Student Revision Booklet
Computing-Curriculum for Schools in Ghana
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf

Introduction to java

  • 2.  Welcome to the course Object Oriented Programming in JAVA. This course will cover a core set of computer science concepts needed to create a modern software application using Java. 2
  • 3. On completion of this course we will be able to: 1. Identify the importance of Java . 2. Identify the additional features of Java compared to C++ . 3. Identify the difference between Compiler and Interpreter . 4. Identify the difference between applet and application . 5. Apply Object Oriented Principles of Encapsulations, Data abstraction, Inheritance, Polymorphism. 6. Program using java API (Application Programming Interface). 7. Program using Exception Handling, Files andThreads . 8. Program Using applets and swings . 3
  • 4. 4 UNIT CONCEPTS to be covered UNIT-I JAVA Basics UNIT-II Inheritance UNIT-III Data structures creation and manipulation in java UNIT-IV Exception Handling UNIT-V GUI ProgrammingWith JAVA
  • 6.  Two reasons :  Trouble with C/C++ language is that they are not portable and are not platform independent languages.  Emergence of World Wide Web, which demanded portable programs  Portability and security necessitated the invention of Java
  • 7.  James Gosling - Sun Microsystems  Co founder –Vinod Khosla  Oak - Java, May 20, 1995, SunWorld  JDK Evolutions  JDK 1.0 (January 23, 1996)  JDK 1.1 (February 19, 1997)  J2SE 1.2 (December 8, 1998)  J2SE 1.3 (May 8, 2000)  J2SE 1.4 (February 6, 2002)  J2SE 5.0 (September 30, 2004)  Java SE 6 (December 11, 2006)  Java SE 7 (July 28, 2011)
  • 8.  Java Editions. J2SE(Java 2 Standard Edition) - to develop client-side standalone applications or applets. J2ME(Java 2 Micro Edition ) - to develop applications for mobile devices such as cell phones. J2EE(Java 2 Enterprise Edition ) - to develop server-side applications such as Java servlets and Java ServerPages.
  • 9.  A general-purpose object-oriented language.  Write Once Run Anywhere (WORA).  Designed for easyWeb/Internet applications.  Widespread acceptance.
  • 10.  C Language:  Major difference is that C is a structure oriented language and Java is an object oriented language and has mechanism to define classes and objects.  Java does not support an explicit pointer type  Java does not have preprocessor, so we cant use #define, #include and #ifdef statements.  Java does not include structures, unions and enum data types.  Java does not include keywords like goto, sizeof and typedef.  Java adds labeled break and continue statements.  Java adds many features required for object oriented programming.
  • 11.  C++ language Features removed in java:  Java doesn’t support pointers to avoid unauthorized access of memory locations.  Java does not include structures, unions and enum data types.  Java does not support operator over loading.  Preprocessor plays less important role in C++ and so eliminated entirely in java.  Java does not perform automatic type conversions that result in loss of precision.
  • 12.  Java does not support global variables. Every method and variable is declared within a class and forms part of that class.  Java does not allow default arguments.  Java does not support inheritance of multiple super classes by a sub class (i.e., multiple inheritance). This is accomplished by using ‘interface’ concept.  It is not possible to declare unsigned integers in java.  In java objects are passed by reference only. In C++ objects may be passed by value or reference.
  • 13. New features added in Java:  Multithreading, that allows two or more pieces of the same program to execute concurrently.  C++ has a set of library functions that use a common header file. But java replaces it with its own set of API classes.  It adds packages and interfaces.  Java supports automatic garbage collection.  break and continue statements have been enhanced in java to accept labels as targets.  The use of unicode characters ensures portability.
  • 14. Features that differ:  Though C++ and java supports Boolean data type, C++ takes any nonzero value as true and zero as false. True and false in java are predefined literals that are values for a boolean expression.  Java has replaced the destructor function with a finalize() function.  C++ supports exception handling that is similar to java's. However, in C++ there is no requirement that a thrown exception be caught.
  • 15.  Java is simple  Java is object-oriented  Java is distributed  Java is interpreted  Java is robust  Java is architecture- neutral  Java is portable  Java’s performance  Java is multithreaded  Java is dynamic  Java is secure
  • 16.  Java includes many development tools, classes and methods  Development tools are part of Java Development Kit (JDK) and  The classes and methods are part of Java Standard Library (JSL), also known as Application Programming Interface (API).  JDK constitutes of tools like java compiler, java interpreter and many.  API includes hundreds of classes and methods grouped into several packages according to their functionality.
  • 18. 18
  • 19.  Edit Plus Software:  EditPlus is a 32-bit text editor for the MicrosoftWindows operating system.  The editor contains tools for programmers, including syntax highlighting (and support for custom syntax files), file type conversions, line ending conversion (between Linux, Windows and Mac styles), regular expressions for search-and-replace, spell check etc). 19
  • 20. 20
  • 21. 21
  • 22. 22