SlideShare a Scribd company logo
Presenter & Creator :- Ankit D. Prajapati
Skype: SoftwareLearningTutorials
Email: SoftwareLearningTutorials@gmail.com
WhatsApp: +91-7383908668
Software
Learning
Tutorials !!!
YouTube Channel: Software Learning Tutorials – SLT !!!
https://www.youtube.com/channel/UC_FRkF_0i_YgbFNqzRZ-Nmg
Agenda
 What is JAVA?
 What make JAVA Popular?
 Class, Object & Method
 Interface & Package
 Modifiers
 OOPS Concepts
 References
Software
Learning
Tutorials !!!
What is JAVA ?
Software
Learning
Tutorials !!!
Java is a programming language that produces software for
multiple platforms.
Java derives much of
its syntax from the C
and C++
programming
languages.
It was first released by
Sun Microsystem in
1995 and later acquired
by Oracle Corporation
Java platform includes an
execution engine, a
compiler, and a set of
libraries.
What make JAVA Popular ?
Software
Learning
Tutorials !!!
JAVA
OOPS
High
Performance
Secure
Robust
Platform
Independent
Multi
Threaded
Class – Object – Method
Software
Learning
Tutorials !!!
Class is a user defined
blueprint or prototype from
which objects are created.
Object is an instance of Class.
States & Behaviours
Method is a collection of
statements that are grouped
together to perform an operation
To be continued…!!!
Class – Object – Method
Software
Learning
Tutorials !!!
Interface & Packages
Software
Learning
Tutorials !!!
To be continued…!!!
Interface: An interface is just like Java Class, but it only
has static constants and abstract method.
A class implements an interface, thereby inheriting the
abstract methods of the interface.
Package as the name suggests is a pack (group) of
classes, interfaces and other packages.
In java we use packages to organize our classes and
interfaces
Interface & Abstract Class
Software
Learning
Tutorials !!!
To be continued…!!!
 Java uses Interface to implement multiple
inheritance.
 A Java class can implement multiple Java
Interfaces.
 Class contains ‘Abstract’ keyword.
 If a class is declared abstract, it cannot be
instantiated, which means you cannot
create an object of an abstract class.
Abstract Class Interface
 An abstract class can extend only one
class or one abstract class at a time.
 An interface can extend any number of
interfaces at a time.
 An abstract class can extend another
concrete (regular) class or abstract class.
 An interface can only extend another
interface.
 An abstract class can have both abstract
and concrete methods.
 An interface can have only abstract
methods.
 An abstract class can have protected and
public abstract methods
 An interface can have only have public
abstract methods
Interface
Software
Learning
Tutorials !!!
To be continued…!!!
Package
Software
Learning
Tutorials !!!
import java.util.Scanner
Here:
→ java is a top level package
→ util is a sub package
→ Scanner is a class which is present in the sub package util
Reusability: While developing a project in java, we often feel that there
are few things that we are writing repeatedly in our code.
Better Organization: In large java projects where we have several
hundreds of class.
Name Conflicts: We can define two classes with the same name in
different packages so to avoid name collision.
To be continued…!!!
Package
Software
Learning
Tutorials !!!
Modifier
Software
Learning
Tutorials !!!
Modifiers are keywords that you
add to those definitions to
change their meanings. Java
language has a wide variety of
modifiers.
Access Modifiers: Default, Private, Protected, Public
Non-Access Modifiers: Static, Final, Abstract
Access Layer Default Private Protected Public
Same Class Yes Yes Yes Yes
Same Package – Sub Class Yes No Yes Yes
Same Package – Non Sub Class Yes No Yes Yes
Different Package – Sub Class No No Yes Yes
Different Package – Non Sub Class No No No Yes
OOPS Concepts
Software
Learning
Tutorials !!!
Inheritance Encapsulation
Abstraction Polymorphism
OOPS
To be continued…!!!
OOPS - Inheritance
Software
Learning
Tutorials !!!
Inheritance means accessing one-class properties from another class.
Class C Class D
Class B
Class A
Class C
Class D
Class B
Class A
Single
Inheritance
Hierarchical
Inheritance
Multiple
Inheritance
Valid by Both: Class & Interface Invalid by Class, Valid by Interface
OOPS - Encapsulation
Software
Learning
Tutorials !!!
Encapsulation is a mechanism where you bind your data and code together as a single unit
VariablesMethodsClass
Encapsulation
 We can achieve encapsulation in Java by:
 Declaring the variables of a class as private.
 Providing public setter and getter methods to modify and view the variables values
OOPS - Abstraction
Software
Learning
Tutorials !!!
Abstraction is the process in Java used to hide certain details and only show the essentials
features of the objects.
Abstract Class Interface
Software
Learning
Tutorials !!!
OOPS - Polymorphism
Polymorphism means taking many forms, where ‘poly’ means many and ‘morph’ means forms.
References
https://www.tutorialspoint.com/
https://www.geeksforgeeks.org/
https://www.techopedia.com/
https://www.guru99.com/
https://beginnersbook.com/
https://www.edureka.co/
Software
Learning
Tutorials !!!
Software
Learning
Tutorials !!!
YouTube Channel: Software Learning Tutorials - SLT!!!
https://www.youtube.com/channel/UC_FRkF_0i_YgbFNqzRZ-Nmg

More Related Content

PPSX
Introduction of java
PPT
Java features
PPTX
Core java programming tutorial - Brainsmartlabs
PPTX
Basic online java course - Brainsmartlabs
ODP
Introduction To Java.
PPTX
PPTX
What is java?-Saurabh Upadhyay
PPTX
Introduction to Object-Oriented Concepts and Java
Introduction of java
Java features
Core java programming tutorial - Brainsmartlabs
Basic online java course - Brainsmartlabs
Introduction To Java.
What is java?-Saurabh Upadhyay
Introduction to Object-Oriented Concepts and Java

What's hot (20)

PPT
INTRODUCTION TO JAVA APPLICATION
PPTX
Java seminar
PPTX
Chapter 1
PDF
Genesis and Overview of Java
PPTX
core java
PPTX
Features of JAVA Programming Language.
PDF
Object Oriented Programming - 3. Java Programming
PPTX
Introduction to Java Programming
PPT
Java for C++ programers
PDF
Core java course syllabus
PDF
What is Interface in Java | How to implement Multiple Inheritance Using Inter...
PPTX
Features of java - javatportal
PPTX
Java Programming Fundamentals
PPTX
Java Introduction
PPTX
Inheritance
PPTX
Core java
PDF
Java Programming
PPTX
C sharp
PPTX
Presentation on Core java
PPTX
Java programming course for beginners
INTRODUCTION TO JAVA APPLICATION
Java seminar
Chapter 1
Genesis and Overview of Java
core java
Features of JAVA Programming Language.
Object Oriented Programming - 3. Java Programming
Introduction to Java Programming
Java for C++ programers
Core java course syllabus
What is Interface in Java | How to implement Multiple Inheritance Using Inter...
Features of java - javatportal
Java Programming Fundamentals
Java Introduction
Inheritance
Core java
Java Programming
C sharp
Presentation on Core java
Java programming course for beginners
Ad

Similar to Automation Testing - Part 2 (Things to know in JAVA) - SLT (20)

DOCX
Java Interview Questions For Freshers
PPTX
Presentation2.ppt java basic core ppt .
PDF
Core Java Introduction | Basics
PDF
Java introduction
PPTX
chapter 5 concepts of object oriented programming
PPT
Java_notes.ppt
PPTX
The smartpath information systems java
PPTX
Java Programming - UNIT - 1, Basics OOPS, Differences
PDF
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
PDF
Java Programming Paradigms Chapter 1
PPTX
Object Oriented Programming Tutorial.pptx
PPTX
Software enginnnering introduction (2).pptx
PPTX
Nitish Chaulagai Java1.pptx
PDF
Introduction to Java Object Oiented Concepts and Basic terminologies
PPTX
PPTX
OOP in Java Presentation.pptx
PDF
Object-Oriented Programming in Java.pdf
PPTX
Objects and classes in OO Programming concepts
PPTX
Java Interview Questions For Freshers
Presentation2.ppt java basic core ppt .
Core Java Introduction | Basics
Java introduction
chapter 5 concepts of object oriented programming
Java_notes.ppt
The smartpath information systems java
Java Programming - UNIT - 1, Basics OOPS, Differences
Java Progamming Paradigms, OOPS Concept, Introduction to Java, Structure of J...
Java Programming Paradigms Chapter 1
Object Oriented Programming Tutorial.pptx
Software enginnnering introduction (2).pptx
Nitish Chaulagai Java1.pptx
Introduction to Java Object Oiented Concepts and Basic terminologies
OOP in Java Presentation.pptx
Object-Oriented Programming in Java.pdf
Objects and classes in OO Programming concepts
Ad

Recently uploaded (20)

PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
PDF
A REACT POMODORO TIMER WEB APPLICATION.pdf
PDF
Digital Strategies for Manufacturing Companies
DOCX
The Five Best AI Cover Tools in 2025.docx
PDF
medical staffing services at VALiNTRY
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Materi-Enum-and-Record-Data-Type (1).pptx
PDF
Understanding Forklifts - TECH EHS Solution
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
L1 - Introduction to python Backend.pptx
PPTX
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Introduction to Artificial Intelligence
PPTX
ai tools demonstartion for schools and inter college
PPTX
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
How to Migrate SBCGlobal Email to Yahoo Easily
Materi_Pemrograman_Komputer-Looping.pptx
A REACT POMODORO TIMER WEB APPLICATION.pdf
Digital Strategies for Manufacturing Companies
The Five Best AI Cover Tools in 2025.docx
medical staffing services at VALiNTRY
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
How Creative Agencies Leverage Project Management Software.pdf
Materi-Enum-and-Record-Data-Type (1).pptx
Understanding Forklifts - TECH EHS Solution
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
L1 - Introduction to python Backend.pptx
Mastering-Cybersecurity-The-Crucial-Role-of-Antivirus-Support-Services.pptx
Which alternative to Crystal Reports is best for small or large businesses.pdf
Introduction to Artificial Intelligence
ai tools demonstartion for schools and inter college
FLIGHT TICKET RESERVATION SYSTEM | FLIGHT BOOKING ENGINE API
2025 Textile ERP Trends: SAP, Odoo & Oracle
Lecture 3: Operating Systems Introduction to Computer Hardware Systems

Automation Testing - Part 2 (Things to know in JAVA) - SLT

  • 1. Presenter & Creator :- Ankit D. Prajapati Skype: SoftwareLearningTutorials Email: [email protected] WhatsApp: +91-7383908668 Software Learning Tutorials !!! YouTube Channel: Software Learning Tutorials – SLT !!! https://www.youtube.com/channel/UC_FRkF_0i_YgbFNqzRZ-Nmg
  • 2. Agenda  What is JAVA?  What make JAVA Popular?  Class, Object & Method  Interface & Package  Modifiers  OOPS Concepts  References Software Learning Tutorials !!!
  • 3. What is JAVA ? Software Learning Tutorials !!! Java is a programming language that produces software for multiple platforms. Java derives much of its syntax from the C and C++ programming languages. It was first released by Sun Microsystem in 1995 and later acquired by Oracle Corporation Java platform includes an execution engine, a compiler, and a set of libraries.
  • 4. What make JAVA Popular ? Software Learning Tutorials !!! JAVA OOPS High Performance Secure Robust Platform Independent Multi Threaded
  • 5. Class – Object – Method Software Learning Tutorials !!! Class is a user defined blueprint or prototype from which objects are created. Object is an instance of Class. States & Behaviours Method is a collection of statements that are grouped together to perform an operation To be continued…!!!
  • 6. Class – Object – Method Software Learning Tutorials !!!
  • 7. Interface & Packages Software Learning Tutorials !!! To be continued…!!! Interface: An interface is just like Java Class, but it only has static constants and abstract method. A class implements an interface, thereby inheriting the abstract methods of the interface. Package as the name suggests is a pack (group) of classes, interfaces and other packages. In java we use packages to organize our classes and interfaces
  • 8. Interface & Abstract Class Software Learning Tutorials !!! To be continued…!!!  Java uses Interface to implement multiple inheritance.  A Java class can implement multiple Java Interfaces.  Class contains ‘Abstract’ keyword.  If a class is declared abstract, it cannot be instantiated, which means you cannot create an object of an abstract class. Abstract Class Interface  An abstract class can extend only one class or one abstract class at a time.  An interface can extend any number of interfaces at a time.  An abstract class can extend another concrete (regular) class or abstract class.  An interface can only extend another interface.  An abstract class can have both abstract and concrete methods.  An interface can have only abstract methods.  An abstract class can have protected and public abstract methods  An interface can have only have public abstract methods
  • 10. Package Software Learning Tutorials !!! import java.util.Scanner Here: → java is a top level package → util is a sub package → Scanner is a class which is present in the sub package util Reusability: While developing a project in java, we often feel that there are few things that we are writing repeatedly in our code. Better Organization: In large java projects where we have several hundreds of class. Name Conflicts: We can define two classes with the same name in different packages so to avoid name collision. To be continued…!!!
  • 12. Modifier Software Learning Tutorials !!! Modifiers are keywords that you add to those definitions to change their meanings. Java language has a wide variety of modifiers. Access Modifiers: Default, Private, Protected, Public Non-Access Modifiers: Static, Final, Abstract Access Layer Default Private Protected Public Same Class Yes Yes Yes Yes Same Package – Sub Class Yes No Yes Yes Same Package – Non Sub Class Yes No Yes Yes Different Package – Sub Class No No Yes Yes Different Package – Non Sub Class No No No Yes
  • 13. OOPS Concepts Software Learning Tutorials !!! Inheritance Encapsulation Abstraction Polymorphism OOPS To be continued…!!!
  • 14. OOPS - Inheritance Software Learning Tutorials !!! Inheritance means accessing one-class properties from another class. Class C Class D Class B Class A Class C Class D Class B Class A Single Inheritance Hierarchical Inheritance Multiple Inheritance Valid by Both: Class & Interface Invalid by Class, Valid by Interface
  • 15. OOPS - Encapsulation Software Learning Tutorials !!! Encapsulation is a mechanism where you bind your data and code together as a single unit VariablesMethodsClass Encapsulation  We can achieve encapsulation in Java by:  Declaring the variables of a class as private.  Providing public setter and getter methods to modify and view the variables values
  • 16. OOPS - Abstraction Software Learning Tutorials !!! Abstraction is the process in Java used to hide certain details and only show the essentials features of the objects. Abstract Class Interface
  • 17. Software Learning Tutorials !!! OOPS - Polymorphism Polymorphism means taking many forms, where ‘poly’ means many and ‘morph’ means forms.
  • 19. Software Learning Tutorials !!! YouTube Channel: Software Learning Tutorials - SLT!!! https://www.youtube.com/channel/UC_FRkF_0i_YgbFNqzRZ-Nmg