SlideShare a Scribd company logo
SAURABH UPADHYAY
presented what is java ?
What is Java?
JAVA IS A POPULAR PROGRAMMING LANGUAGE, CREATED IN 1995.
IT IS OWNED BY ORACLE, AND MORE THAN 3 BILLION DEVICES RUN JAVA.
IT IS USED FOR:
MOBILE APPLICATIONS (SPECIALLY ANDROID APPS)
DESKTOP APPLICATIONS
WEB APPLICATIONS
WEB SERVERS AND APPLICATION SERVERS
GAMES
DATABASE CONNECTION
AND MUCH, MUCH MORE!
Why Use Java?
 Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)
 It is one of the most popular programming language in the world
 It is easy to learn and simple to use
 It is open-source and free
 It is secure, fast and powerful
 It has a huge community support (tens of millions of developers)
 Java is an object oriented language which gives a clear structure to programs and
allows code to be reused, lowering development costs
 As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or
vice versa.

Java Variables
 Variables are containers for storing data values.
 In Java, there are different types of variables, for example:
 String- stores text, such as "Hello". String values are surrounded by double
quotes
 Int- stores integers (whole numbers), without decimals, such as 123 or -123
 Float-stores floating point numbers, with decimals, such as 19.99 or -19.99
 Char-stores single characters, such as 'a' or 'B'. Char values are surrounded
by single quotes
 Boolean- stores values with two states: true or false
Software Development Life Cycle
(SDLC)
 SDLC is a process that creates a structure of development of software.
There are different phases within SDLC, and each phase has its own
different activity. It makes development team able to design, create and
deliver a high-quality product.
 SDLC describes various phases of software development and the order of
execution of phases. Each phase requires deliverable from the previous
phase in a life cycle of software development. Requirements are translated
into design, design into development and development into testing, after
testing it is given to the client.
Different phases of the software
development cycle
 Requirement Phase
 Design Phase
 Build /Development Phase
 Testing Phase
 Deployment/ Deliver Phase
 Maintenance
Multithreading in Java
 Multithreading is a Java feature that allows concurrent execution of two or
more parts of a program for maximum utilization of CPU. Each part of such
program is called a thread. So, threads are light-weight processes within a
process.
Threads can be created by using two mechanisms :
1. Extending the Thread class
2. Implementing the Runnable Interface.
 Thread creation by extending the Thread class
We create a class that extends the java.lang.Thread class. This class overrides
the run() method available in the Thread class. A thread begins its life inside
run() method. We create an object of our new class and call start() method to
start the execution of a thread. Start() invokes the run() method on the Thread
object.
Java Operators
 Java divides the operators into the following groups:
 Arithmetic operators
 Assignment operators
 Comparison operators
 Logical operators
 Bitwise operators
Java OOP
 OOP stands for Object-Oriented Programming.
 Procedural programming is about writing procedures or methods that perform
operations on the data, while object-oriented programming is about creating
objects that contain both data and methods.
 Object-oriented programming has several advantages over procedural
programming:
 OOP is faster and easier to execute
 OOP provides a clear structure for the programs
 OOP helps to keep the Java code DRY "Don't Repeat Yourself", and makes the
code easier to maintain, modify and debug
 OOP makes it possible to create full reusable applications with less code and
shorter development time
Java - What are Classes and Objects?
class
 Car
 objects
 Volvo
 Audi
 Toyota
Java Polymorphism
Polymorphism means "many forms", and it occurs when we have
many classes that are related to each other by inheritance.
Like we specified in the previous chapter; Inheritance lets us
inherit attributes and methods from another
class. Polymorphism uses those methods to perform different
tasks. This allows us to perform a single action in different ways.
For example, think of a superclass called Animal that has a method
called animalSound(). Subclasses of Animals could be Pigs, Cats,
Dogs, Birds - And they also have their own implementation of an
animal sound (the pig oinks, and the cat meows, etc.):

More Related Content

PPTX
Core java
PPTX
computer science JAVA ppt
DOCX
Java and its features
PPTX
Advantages of java
PPTX
Training on Core java | PPT Presentation | Shravan Sanidhya
PPT
INTRODUCTION TO JAVA APPLICATION
PPTX
Features of java - javatportal
PPTX
Introduction to java
Core java
computer science JAVA ppt
Java and its features
Advantages of java
Training on Core java | PPT Presentation | Shravan Sanidhya
INTRODUCTION TO JAVA APPLICATION
Features of java - javatportal
Introduction to java

What's hot (20)

PDF
Genesis and Overview of Java
PPTX
Java Introduction
PPTX
Java presentation
PPTX
Summer training presentation on "CORE JAVA".
PDF
Core java course syllabus
PPTX
Introduction to java
PPTX
Spring presentation
PPTX
Features of JAVA Programming Language.
PPTX
Features of java
PPT
Java features
PPTX
Java project
PPTX
Introduction to Java Programming
PPTX
Presentation5
PPTX
Features of java
PPTX
Java fundamentals 2
PPTX
PPTX
Important features of java
PDF
Introduction to basics of java
PPTX
Features of java
PPTX
JAVA PPT by NAVEEN TOKAS
Genesis and Overview of Java
Java Introduction
Java presentation
Summer training presentation on "CORE JAVA".
Core java course syllabus
Introduction to java
Spring presentation
Features of JAVA Programming Language.
Features of java
Java features
Java project
Introduction to Java Programming
Presentation5
Features of java
Java fundamentals 2
Important features of java
Introduction to basics of java
Features of java
JAVA PPT by NAVEEN TOKAS
Ad

Similar to What is java?-Saurabh Upadhyay (20)

PPTX
1 Introduction to JAVA.pptx
PPTX
Power Point Presentation on Core Java For the Beginers
PPTX
introduction to object orinted programming through java
PPTX
U1 JAVA.pptx
PPTX
PPTX
Java Programming concept
PPTX
Journey-into-the-World-of-Java.pp3dqe23R3qtx
PPTX
Object oriented programming-with_java
PPTX
Object oriented programming
PPTX
Object oriented programming-with_java
PPTX
Object oriented programming
PPTX
Object oriented programming-with_java
PPTX
Object oriented programming
PPTX
Object oriented programming
PDF
Java programming material for beginners by Nithin, VVCE, Mysuru
PPTX
Introduction-to-Java-Programming-Language (1).pptx
PDF
Introduction to java (revised)
PDF
Unit 1 Core Java for Compter Science 3rd
PPT
Object Oriented Methodology in Java (Lecture-1)
PDF
Class notes(week 2) on basic concepts of oop-2
1 Introduction to JAVA.pptx
Power Point Presentation on Core Java For the Beginers
introduction to object orinted programming through java
U1 JAVA.pptx
Java Programming concept
Journey-into-the-World-of-Java.pp3dqe23R3qtx
Object oriented programming-with_java
Object oriented programming
Object oriented programming-with_java
Object oriented programming
Object oriented programming-with_java
Object oriented programming
Object oriented programming
Java programming material for beginners by Nithin, VVCE, Mysuru
Introduction-to-Java-Programming-Language (1).pptx
Introduction to java (revised)
Unit 1 Core Java for Compter Science 3rd
Object Oriented Methodology in Java (Lecture-1)
Class notes(week 2) on basic concepts of oop-2
Ad

More from Saurabh Upadhyay (6)

PDF
TCS iON Certification
PPTX
Unix/Linux
DOCX
GT C Tour 2018 Highlights
PPTX
Artificial Intelligence VS Machine Learning
PPTX
Structured Query Language -SQL
PPTX
Object oriented programming concept- Saurabh Upadhyay
TCS iON Certification
Unix/Linux
GT C Tour 2018 Highlights
Artificial Intelligence VS Machine Learning
Structured Query Language -SQL
Object oriented programming concept- Saurabh Upadhyay

Recently uploaded (20)

PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Pre independence Education in Inndia.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Sports Quiz easy sports quiz sports quiz
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Classroom Observation Tools for Teachers
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPH.pptx obstetrics and gynecology in nursing
102 student loan defaulters named and shamed – Is someone you know on the list?
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Pre independence Education in Inndia.pdf
GDM (1) (1).pptx small presentation for students
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
human mycosis Human fungal infections are called human mycosis..pptx
Final Presentation General Medicine 03-08-2024.pptx
Microbial diseases, their pathogenesis and prophylaxis
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Sports Quiz easy sports quiz sports quiz
STATICS OF THE RIGID BODIES Hibbelers.pdf
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Classroom Observation Tools for Teachers
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Anesthesia in Laparoscopic Surgery in India
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...

What is java?-Saurabh Upadhyay

  • 2. What is Java? JAVA IS A POPULAR PROGRAMMING LANGUAGE, CREATED IN 1995. IT IS OWNED BY ORACLE, AND MORE THAN 3 BILLION DEVICES RUN JAVA. IT IS USED FOR: MOBILE APPLICATIONS (SPECIALLY ANDROID APPS) DESKTOP APPLICATIONS WEB APPLICATIONS WEB SERVERS AND APPLICATION SERVERS GAMES DATABASE CONNECTION AND MUCH, MUCH MORE!
  • 3. Why Use Java?  Java works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.)  It is one of the most popular programming language in the world  It is easy to learn and simple to use  It is open-source and free  It is secure, fast and powerful  It has a huge community support (tens of millions of developers)  Java is an object oriented language which gives a clear structure to programs and allows code to be reused, lowering development costs  As Java is close to C++ and C#, it makes it easy for programmers to switch to Java or vice versa. 
  • 4. Java Variables  Variables are containers for storing data values.  In Java, there are different types of variables, for example:  String- stores text, such as "Hello". String values are surrounded by double quotes  Int- stores integers (whole numbers), without decimals, such as 123 or -123  Float-stores floating point numbers, with decimals, such as 19.99 or -19.99  Char-stores single characters, such as 'a' or 'B'. Char values are surrounded by single quotes  Boolean- stores values with two states: true or false
  • 5. Software Development Life Cycle (SDLC)  SDLC is a process that creates a structure of development of software. There are different phases within SDLC, and each phase has its own different activity. It makes development team able to design, create and deliver a high-quality product.  SDLC describes various phases of software development and the order of execution of phases. Each phase requires deliverable from the previous phase in a life cycle of software development. Requirements are translated into design, design into development and development into testing, after testing it is given to the client.
  • 6. Different phases of the software development cycle  Requirement Phase  Design Phase  Build /Development Phase  Testing Phase  Deployment/ Deliver Phase  Maintenance
  • 7. Multithreading in Java  Multithreading is a Java feature that allows concurrent execution of two or more parts of a program for maximum utilization of CPU. Each part of such program is called a thread. So, threads are light-weight processes within a process. Threads can be created by using two mechanisms : 1. Extending the Thread class 2. Implementing the Runnable Interface.  Thread creation by extending the Thread class We create a class that extends the java.lang.Thread class. This class overrides the run() method available in the Thread class. A thread begins its life inside run() method. We create an object of our new class and call start() method to start the execution of a thread. Start() invokes the run() method on the Thread object.
  • 8. Java Operators  Java divides the operators into the following groups:  Arithmetic operators  Assignment operators  Comparison operators  Logical operators  Bitwise operators
  • 9. Java OOP  OOP stands for Object-Oriented Programming.  Procedural programming is about writing procedures or methods that perform operations on the data, while object-oriented programming is about creating objects that contain both data and methods.  Object-oriented programming has several advantages over procedural programming:  OOP is faster and easier to execute  OOP provides a clear structure for the programs  OOP helps to keep the Java code DRY "Don't Repeat Yourself", and makes the code easier to maintain, modify and debug  OOP makes it possible to create full reusable applications with less code and shorter development time
  • 10. Java - What are Classes and Objects? class  Car  objects  Volvo  Audi  Toyota
  • 11. Java Polymorphism Polymorphism means "many forms", and it occurs when we have many classes that are related to each other by inheritance. Like we specified in the previous chapter; Inheritance lets us inherit attributes and methods from another class. Polymorphism uses those methods to perform different tasks. This allows us to perform a single action in different ways. For example, think of a superclass called Animal that has a method called animalSound(). Subclasses of Animals could be Pigs, Cats, Dogs, Birds - And they also have their own implementation of an animal sound (the pig oinks, and the cat meows, etc.):