SlideShare a Scribd company logo
A
PPT PERSENTATION
ON
JAVA PROGRAMMING LANGUAGE
BY
SUBHASH KUMAR
18BTCSE009
Java Programming Language
• Java is one of the most popular and widely used programming language.
• Java has been one of the most popular programming language for many years.
• Java is Object Oriented. However it is not considered as pure object oriented as it provides support for primitive data types (like
int, char, etc)
• The Java codes are first compiled into byte code (machine independent code). Then the byte code is run on Java Virtual Machine
(JVM) regardless of the underlying architecture.
• Java syntax is similar to C/C++. But Java does not provide low level programming functionalities like pointers. Also, Java codes
are always written in the form of classes and objects.
• Java is used in all kind of applications like Mobile Applications (Android is Java based), desktop applications, web applications,
client server applications, enterprise applications and many more.
• When compared with C++, Java codes are generally more maintainable because Java does not allow many things which may lead
bad/inefficient programming if used incorrectly. For example, non-primitives are always references in Java. So we cannot pass
large objects (like we can do in C++) to functions, we always pass references in Java. One more example, since there are no
pointers, bad memory access is also not possible.
• When compared with Python, Java kind of fits between C++ and Python. The programs written in Java typically run faster than
corresponding Python programs and slower than C++. Like C++, Java does static type checking, but Python does not.
About Java
• Java is a simple language: Java is easy to learn and its syntax is clear and concise. It is based on C++ (so it is easier for
programmers who know C++). Java has removed many confusing and rarely-used features e.g. explicit pointers, operator
overloading, etc. Java also takes care of memory management and it also provides an automatic garbage collector. This
collects the unused objects automatically.
• Java is a platform-independent language: The programs written in Java language, after compilation, are converted into
an intermediate level language called the bytecode which is a part of the Java platform irrespective of the machine on
which the programs run. This makes java highly portable as its bytecodes can be run on any machine by an interpreter
called the Java Virtual Machine(JVM) and thus java provides ‘reusability of code’.
• Java is an object-oriented programming language: OOP makes the complete program simpler by dividing it into a
number of objects. The objects can be used as a bridge to have data flow from one function to another. We can easily
modify data and function’s as per the requirements of the program.
• Java is a robust language: Java programs must be reliable because they are used in both consumer and mission-critical
applications, ranging from Blu-ray players to navigation systems.
• Java is a multithreaded language: Java can perform many tasks at once by defining multiple threads. For example, a
program that manages a Graphical User Interface (GUI) while waiting for input from a network connection uses another
thread to perform and wait’s instead of using the default GUI thread for both tasks. This keeps the GUI responsive.
• Java programs can create applets: Applets are programs that run in web browsers. But applets support was deprecated
in Java 9 release and has been removed in Java 11 release due to warning browser support for the Java plugin.
• Java does not require any preprocessor: It does not require inclusion of header files for creating a Java application.
• Therefore, Java is a very successful language and it is gaining popularity day by day.
Data types in Java
Loops in Java
• Java provides three ways for executing the loops. While all the ways provide similar
basic functionality, they differ in their syntax and condition checking time.
while loop: A while loop is a control flow statement that allows code to be executed
repeatedly based on a given Boolean condition. The while loop can be thought of as a
repeating if statement.
for loop: for loop provides a concise way of writing the loop structure. Unlike a while
loop, a for statement consumes the initialization, condition and increment/decrement in
one line thereby providing a shorter, easy to debug structure of looping.
do while: do while loop is similar to while loop with only difference that it checks for
condition after executing the statements, and therefore is an example of Exit Control
Loop.
Infinite loop: One of the most common mistakes while implementing any sort of looping
is that that it may not ever exit, that is the loop runs for infinite time. This happens when
the condition fails for some reason
Classes and Objects in Java
A class is a user defined blueprint or prototype from which objects are created. It
represents the set of properties or methods that are common to all objects of one type.
In general, class declarations can include these components, in order:
Modifiers : A class can be public or has default access .
class keyword: class keyword is used to create a class.
Class name: The name should begin with a initial letter (capitalized by convention).
Superclass(if any): The name of the class’s parent (superclass), if any, preceded by the
keyword extends. A class can only extend (subclass) one parent.
Interfaces(if any): A comma-separated list of interfaces implemented by the class, if
any, preceded by the keyword implements. A class can implement more than one
interface.
Body: The class body surrounded by braces, { }.
Object
• It is a basic unit of Object Oriented Programming and represents the real life
entities. A typical Java program creates many objects, which as you know, interact by
invoking methods. An object consists of :
State : It is represented by attributes of an object. It also reflects the properties of an
object.
Behavior : It is represented by methods of an object. It also reflects the response of an
object with other objects.
Identity : It gives a unique name to an object and enables one object to interact with
other objects.
OOP concepts
• Inheritance in Java
• Encapsulation in Java
• Abstraction in Java
• Method Overloading
• Input and Output
• Input and Output
• Constructors
CERTIFICATE
THANKYOU
REGARDS

More Related Content

DOC
Grade 8: Introduction To Java
PPTX
Features of java
PDF
Java swing 1
DOCX
Introduction to java
DOCX
Java and its features
PDF
Introduction to Java Programming Language
PPT
Java for C++ programers
Grade 8: Introduction To Java
Features of java
Java swing 1
Introduction to java
Java and its features
Introduction to Java Programming Language
Java for C++ programers

What's hot (20)

PPTX
Java Programming
PPT
Java for Recruiters
PDF
Bn1005 demo ppt core java
PPTX
Introduction to java
PDF
Java chapter 1
PPTX
Java seminar
PPT
Java Programming for Designers
PPTX
Java programming(unit 1)
PPTX
java tutorial for beginner - Free Download
PDF
A seminar report on core java
PPTX
Introduction to java
PPTX
Introduction to Java -unit-1
PPTX
Java basics
PPTX
Chapter 1
PPTX
Introduction to Java Programming
PPT
00 intro to java
DOCX
Java 3 rd sem. 2012 aug.ASSIGNMENT
PDF
Learn java in hindi
PDF
Introduction to java (revised)
PDF
Core java course syllabus
Java Programming
Java for Recruiters
Bn1005 demo ppt core java
Introduction to java
Java chapter 1
Java seminar
Java Programming for Designers
Java programming(unit 1)
java tutorial for beginner - Free Download
A seminar report on core java
Introduction to java
Introduction to Java -unit-1
Java basics
Chapter 1
Introduction to Java Programming
00 intro to java
Java 3 rd sem. 2012 aug.ASSIGNMENT
Learn java in hindi
Introduction to java (revised)
Core java course syllabus
Ad

Similar to Java programming language (20)

PPTX
Introduction-to-Java-Programming-Language (1).pptx
PDF
java notes.pdf
DOCX
Srgoc java
PPTX
object oriented programming unit one ppt
PDF
OOPS JAVA.pdf
PDF
Java notes | All Basics |
DOCX
java introduction.docx
ODP
Introduction To Java.
PPTX
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
PDF
Core java part1
PDF
Java Programming
PPTX
UNIT 1 Programming in java Bsc program.pptx
PPTX
Java basic
PDF
Core Java Tutorial
PPTX
brief introduction to core java programming.pptx
PPTX
Java programmingjsjdjdjdjdjdjdjdjdiidiei
PPTX
Module--fundamentals and operators in java1.pptx
PDF
Master Java Programming: Tips, Tutorials, and Best Practices
PPT
Introduction to Java Programming, Basic Structure, variables Data type, input...
PPTX
What is Java, JDK, JVM, Introduction to Java.pptx
Introduction-to-Java-Programming-Language (1).pptx
java notes.pdf
Srgoc java
object oriented programming unit one ppt
OOPS JAVA.pdf
Java notes | All Basics |
java introduction.docx
Introduction To Java.
Assignmentjsnsnshshusjdnsnshhzudjdndndjd
Core java part1
Java Programming
UNIT 1 Programming in java Bsc program.pptx
Java basic
Core Java Tutorial
brief introduction to core java programming.pptx
Java programmingjsjdjdjdjdjdjdjdjdiidiei
Module--fundamentals and operators in java1.pptx
Master Java Programming: Tips, Tutorials, and Best Practices
Introduction to Java Programming, Basic Structure, variables Data type, input...
What is Java, JDK, JVM, Introduction to Java.pptx
Ad

More from SubhashKumar329 (9)

PDF
Dbms (www.gate2016.info)
PDF
Understanding blockchaintechnology
PDF
Operation systems (www.gate2016.info)
PDF
Graph theory (www.gate2016.info)
PDF
Digital logic (www.gate2016.info)
PDF
Understanding blockchaintechnology
DOCX
With cities and urban areas getting crowded by the minute (1)
DOCX
Living in cities can be troubling
PPTX
Blockchain technology
Dbms (www.gate2016.info)
Understanding blockchaintechnology
Operation systems (www.gate2016.info)
Graph theory (www.gate2016.info)
Digital logic (www.gate2016.info)
Understanding blockchaintechnology
With cities and urban areas getting crowded by the minute (1)
Living in cities can be troubling
Blockchain technology

Recently uploaded (20)

PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Electronic commerce courselecture one. Pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
Advanced IT Governance
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Machine learning based COVID-19 study performance prediction
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
PPT
Teaching material agriculture food technology
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
Cloud computing and distributed systems.
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Electronic commerce courselecture one. Pdf
Understanding_Digital_Forensics_Presentation.pptx
Big Data Technologies - Introduction.pptx
Advanced IT Governance
Mobile App Security Testing_ A Comprehensive Guide.pdf
NewMind AI Weekly Chronicles - August'25 Week I
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Dropbox Q2 2025 Financial Results & Investor Presentation
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Machine learning based COVID-19 study performance prediction
GamePlan Trading System Review: Professional Trader's Honest Take
breach-and-attack-simulation-cybersecurity-india-chennai-defenderrabbit-2025....
Teaching material agriculture food technology
NewMind AI Monthly Chronicles - July 2025
Cloud computing and distributed systems.

Java programming language

  • 1. A PPT PERSENTATION ON JAVA PROGRAMMING LANGUAGE BY SUBHASH KUMAR 18BTCSE009
  • 2. Java Programming Language • Java is one of the most popular and widely used programming language. • Java has been one of the most popular programming language for many years. • Java is Object Oriented. However it is not considered as pure object oriented as it provides support for primitive data types (like int, char, etc) • The Java codes are first compiled into byte code (machine independent code). Then the byte code is run on Java Virtual Machine (JVM) regardless of the underlying architecture. • Java syntax is similar to C/C++. But Java does not provide low level programming functionalities like pointers. Also, Java codes are always written in the form of classes and objects. • Java is used in all kind of applications like Mobile Applications (Android is Java based), desktop applications, web applications, client server applications, enterprise applications and many more. • When compared with C++, Java codes are generally more maintainable because Java does not allow many things which may lead bad/inefficient programming if used incorrectly. For example, non-primitives are always references in Java. So we cannot pass large objects (like we can do in C++) to functions, we always pass references in Java. One more example, since there are no pointers, bad memory access is also not possible. • When compared with Python, Java kind of fits between C++ and Python. The programs written in Java typically run faster than corresponding Python programs and slower than C++. Like C++, Java does static type checking, but Python does not.
  • 3. About Java • Java is a simple language: Java is easy to learn and its syntax is clear and concise. It is based on C++ (so it is easier for programmers who know C++). Java has removed many confusing and rarely-used features e.g. explicit pointers, operator overloading, etc. Java also takes care of memory management and it also provides an automatic garbage collector. This collects the unused objects automatically. • Java is a platform-independent language: The programs written in Java language, after compilation, are converted into an intermediate level language called the bytecode which is a part of the Java platform irrespective of the machine on which the programs run. This makes java highly portable as its bytecodes can be run on any machine by an interpreter called the Java Virtual Machine(JVM) and thus java provides ‘reusability of code’. • Java is an object-oriented programming language: OOP makes the complete program simpler by dividing it into a number of objects. The objects can be used as a bridge to have data flow from one function to another. We can easily modify data and function’s as per the requirements of the program. • Java is a robust language: Java programs must be reliable because they are used in both consumer and mission-critical applications, ranging from Blu-ray players to navigation systems. • Java is a multithreaded language: Java can perform many tasks at once by defining multiple threads. For example, a program that manages a Graphical User Interface (GUI) while waiting for input from a network connection uses another thread to perform and wait’s instead of using the default GUI thread for both tasks. This keeps the GUI responsive. • Java programs can create applets: Applets are programs that run in web browsers. But applets support was deprecated in Java 9 release and has been removed in Java 11 release due to warning browser support for the Java plugin. • Java does not require any preprocessor: It does not require inclusion of header files for creating a Java application. • Therefore, Java is a very successful language and it is gaining popularity day by day.
  • 5. Loops in Java • Java provides three ways for executing the loops. While all the ways provide similar basic functionality, they differ in their syntax and condition checking time. while loop: A while loop is a control flow statement that allows code to be executed repeatedly based on a given Boolean condition. The while loop can be thought of as a repeating if statement. for loop: for loop provides a concise way of writing the loop structure. Unlike a while loop, a for statement consumes the initialization, condition and increment/decrement in one line thereby providing a shorter, easy to debug structure of looping. do while: do while loop is similar to while loop with only difference that it checks for condition after executing the statements, and therefore is an example of Exit Control Loop. Infinite loop: One of the most common mistakes while implementing any sort of looping is that that it may not ever exit, that is the loop runs for infinite time. This happens when the condition fails for some reason
  • 6. Classes and Objects in Java A class is a user defined blueprint or prototype from which objects are created. It represents the set of properties or methods that are common to all objects of one type. In general, class declarations can include these components, in order: Modifiers : A class can be public or has default access . class keyword: class keyword is used to create a class. Class name: The name should begin with a initial letter (capitalized by convention). Superclass(if any): The name of the class’s parent (superclass), if any, preceded by the keyword extends. A class can only extend (subclass) one parent. Interfaces(if any): A comma-separated list of interfaces implemented by the class, if any, preceded by the keyword implements. A class can implement more than one interface. Body: The class body surrounded by braces, { }.
  • 7. Object • It is a basic unit of Object Oriented Programming and represents the real life entities. A typical Java program creates many objects, which as you know, interact by invoking methods. An object consists of : State : It is represented by attributes of an object. It also reflects the properties of an object. Behavior : It is represented by methods of an object. It also reflects the response of an object with other objects. Identity : It gives a unique name to an object and enables one object to interact with other objects.
  • 8. OOP concepts • Inheritance in Java • Encapsulation in Java • Abstraction in Java • Method Overloading • Input and Output • Input and Output • Constructors