SlideShare a Scribd company logo
Core Java
For Beginner in Automation Testing
Sujit Pathak
1. Why Java?
2. How to start Java
3. Java – an Introduction
4. Features of Java
5. Architecture of Java – JRE, JVM, JDK
6. What is OOPs
7. 4 Pillars of Java
8. Class and Object
Agenda
2
Why Java ?1
3
4
Let’s Begin Java
◉ Install Java – JDK on your machine.
◉ Download any IDE to write the code
○ Eclipse
○ NetBeans
○ InteliJ Idea
○ Notepad++
○ Visual Studio
5
Java – An Introduction
◉ Java is a programming language and computing platform first released
by Sun Microsystems in 1995.
◉ There are lots of applications and websites that will not work unless you
have Java installed, and more are created every day.
◉ Java is fast, secure, and reliable. From laptops to datacenters, game
consoles to scientific supercomputers, cell phones to the Internet.
◉ Java is everywhere!
6
Architecture Concept
◉ JVM (Java Virtual Machine) is an abstract machine that enables your computer to run a
Java program.
◉ When you run the Java program, Java compiler first compiles your Java code to
bytecode. Then, the JVM translates bytecode into native machine code (set of
instructions that a computer's CPU executes directly).
◉ JVM is responsible for executing the java program line by line hence it is also known as
interpreter.
Java is a platform-independent language. It's because when you write Java code, it's ultimately written for
JVM but not your physical machine (computer). Since, JVM ​executes the Java bytecode which is platform
independent, Java is platform-independent.
7
What is JVM
What is JRE?
◉ JRE (Java Runtime Environment) is a software package that provides Java class
libraries, along with Java Virtual Machine (JVM), and other components to run
applications written in Java programming. JRE is the superset of JVM.
◉ IF you just want to run Java program then you need JRE, but when you want to
development then you need JDK
JRE
8
JVM Class Libraries
What is JDK?
◉ JDK (Java Development Kit) is a software development kit to develop applications
in Java. When you download JDK, JRE is also downloaded, and don't need to
download it separately. In addition to JRE, JDK also contains number of
development tools (compilers, JavaDoc, Java Debugger etc).
9
JRE
Compilers, Debuggers
other Files..
Java OOPs Concept
◉ Object-Oriented Programming is a methodology or paradigm to design a
program using classes and objects. It simplifies software development and
maintenance by providing some concepts:
○ Object
○ Class
○ Inheritance
○ Polymorphism
○ Abstraction
○ Encapsulation
10
4 Pillars of OOPs (Java OOPs)
◉ Inheritance
○ It is the mechanism in java by which one class is allow to inherit the features(fields and
methods) of another class.
◉ Polymorphism
○ Polymorphism is a feature using which an object behaves differently in different
situation.
◉ Abstraction
○ Hiding internal details and showing functionality is known as abstraction. For example
phone call, we don't know the internal processing.
◉ Encapsulation
○ Binding (or wrapping) code and data together into a single unit are known as
encapsulation. For example, a capsule, it is wrapped with different medicines.
11
Class and Object
◉ Class
○ It represents the set of properties or methods that are common to all objects
of one type.
○ A class can also be defined as a blueprint from which you can create an
individual object. Class doesn't consume any space.
◉ Object
○ Any entity that has state and behavior is known as an object.
○ It is a basic unit of Object Oriented Programming and represents the real life
entities.
Class Example: Car
Object Example: Nissan X4, Toyota Etios, BMW Q4 12
Discussion Time
Let’s discuss on the presentation topic
13
Youtube.com/QAZone
https://www.facebook.com/QAZone-108453317157290/
https://qa-zone.blogspot.com/
Thanks!
14

More Related Content

DOCX
What are the different java interview questions you need to know?
PDF
What are the different java interview questions you need to know?
PPTX
Java Starting
PPT
Introduction to Robocode
PPTX
01 introduction to oop and java
PPTX
java - oop's in depth journey
PPT
Core Java interview questions-ppt
PPTX
Object+oriented+programming+in+java
What are the different java interview questions you need to know?
What are the different java interview questions you need to know?
Java Starting
Introduction to Robocode
01 introduction to oop and java
java - oop's in depth journey
Core Java interview questions-ppt
Object+oriented+programming+in+java

What's hot (20)

PPT
sravan java Session1
PPTX
java training in jaipur|java training|core java training|java training compa...
PPTX
PDF
Cs8392 oops 5 units notes
PPT
Java introduction
PPTX
Features of JAVA Programming Language.
PPTX
Java training in delhi
PDF
Java language: a gentle introduction
PPTX
Java fundamentals 2
DOCX
Java and its features
PDF
Introduction to Java Programming
PPTX
Introduction to Java Programming
PPTX
Chapter 1
PPTX
Packages and Interfaces
PPTX
Java programming(unit 1)
PDF
Core Java Tutorial
PDF
Probable questions for semester exam
PPTX
Object oriented concepts with java
PPSX
Java & advanced java
PPS
Introduction to Java
sravan java Session1
java training in jaipur|java training|core java training|java training compa...
Cs8392 oops 5 units notes
Java introduction
Features of JAVA Programming Language.
Java training in delhi
Java language: a gentle introduction
Java fundamentals 2
Java and its features
Introduction to Java Programming
Introduction to Java Programming
Chapter 1
Packages and Interfaces
Java programming(unit 1)
Core Java Tutorial
Probable questions for semester exam
Object oriented concepts with java
Java & advanced java
Introduction to Java
Ad

Similar to Core Java Basics (20)

PPTX
Lecture java variable , data type, token
PDF
A seminar report on core java
PDF
Java Introduction | PDF
PPT
PPS Java Overview Unit I.ppt
PPT
PPS Java Overview Unit I.ppt
PDF
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
PDF
Introduction to java
PPTX
1 Introduction to JAVA.pptx
PPTX
Java
PPTX
Object Oriented Programming Part 1 of Unit 1
PDF
Java unit 1
PPTX
oop unit1.pptx
PPTX
JAVAPart1_BasicIntroduction.pptx
PPTX
JAVA_Day1_BasicIntroduction.pptx
PDF
Lec 2 30_jul13
PDF
Java programming material for beginners by Nithin, VVCE, Mysuru
PPT
L1 basics
DOCX
Class notes(week 2) on basic concepts of oop-2
PPT
Classes and Objects
PPTX
Introduction_to_Java_Programming_2025.pptx
Lecture java variable , data type, token
A seminar report on core java
Java Introduction | PDF
PPS Java Overview Unit I.ppt
PPS Java Overview Unit I.ppt
PJ_M01_C01_PPT_Introduction to Object Oriented Programming Using Java.pdf
Introduction to java
1 Introduction to JAVA.pptx
Java
Object Oriented Programming Part 1 of Unit 1
Java unit 1
oop unit1.pptx
JAVAPart1_BasicIntroduction.pptx
JAVA_Day1_BasicIntroduction.pptx
Lec 2 30_jul13
Java programming material for beginners by Nithin, VVCE, Mysuru
L1 basics
Class notes(week 2) on basic concepts of oop-2
Classes and Objects
Introduction_to_Java_Programming_2025.pptx
Ad

Recently uploaded (20)

PPTX
Cloud computing and distributed systems.
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Approach and Philosophy of On baking technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
KodekX | Application Modernization Development
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Cloud computing and distributed systems.
Building Integrated photovoltaic BIPV_UPV.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Network Security Unit 5.pdf for BCA BBA.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Approach and Philosophy of On baking technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
20250228 LYD VKU AI Blended-Learning.pptx
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation_ Review paper, used for researhc scholars
Per capita expenditure prediction using model stacking based on satellite ima...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
KodekX | Application Modernization Development
Chapter 3 Spatial Domain Image Processing.pdf
Spectral efficient network and resource selection model in 5G networks
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Core Java Basics

  • 1. Core Java For Beginner in Automation Testing Sujit Pathak
  • 2. 1. Why Java? 2. How to start Java 3. Java – an Introduction 4. Features of Java 5. Architecture of Java – JRE, JVM, JDK 6. What is OOPs 7. 4 Pillars of Java 8. Class and Object Agenda 2
  • 4. 4
  • 5. Let’s Begin Java ◉ Install Java – JDK on your machine. ◉ Download any IDE to write the code ○ Eclipse ○ NetBeans ○ InteliJ Idea ○ Notepad++ ○ Visual Studio 5
  • 6. Java – An Introduction ◉ Java is a programming language and computing platform first released by Sun Microsystems in 1995. ◉ There are lots of applications and websites that will not work unless you have Java installed, and more are created every day. ◉ Java is fast, secure, and reliable. From laptops to datacenters, game consoles to scientific supercomputers, cell phones to the Internet. ◉ Java is everywhere! 6
  • 7. Architecture Concept ◉ JVM (Java Virtual Machine) is an abstract machine that enables your computer to run a Java program. ◉ When you run the Java program, Java compiler first compiles your Java code to bytecode. Then, the JVM translates bytecode into native machine code (set of instructions that a computer's CPU executes directly). ◉ JVM is responsible for executing the java program line by line hence it is also known as interpreter. Java is a platform-independent language. It's because when you write Java code, it's ultimately written for JVM but not your physical machine (computer). Since, JVM ​executes the Java bytecode which is platform independent, Java is platform-independent. 7 What is JVM
  • 8. What is JRE? ◉ JRE (Java Runtime Environment) is a software package that provides Java class libraries, along with Java Virtual Machine (JVM), and other components to run applications written in Java programming. JRE is the superset of JVM. ◉ IF you just want to run Java program then you need JRE, but when you want to development then you need JDK JRE 8 JVM Class Libraries
  • 9. What is JDK? ◉ JDK (Java Development Kit) is a software development kit to develop applications in Java. When you download JDK, JRE is also downloaded, and don't need to download it separately. In addition to JRE, JDK also contains number of development tools (compilers, JavaDoc, Java Debugger etc). 9 JRE Compilers, Debuggers other Files..
  • 10. Java OOPs Concept ◉ Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies software development and maintenance by providing some concepts: ○ Object ○ Class ○ Inheritance ○ Polymorphism ○ Abstraction ○ Encapsulation 10
  • 11. 4 Pillars of OOPs (Java OOPs) ◉ Inheritance ○ It is the mechanism in java by which one class is allow to inherit the features(fields and methods) of another class. ◉ Polymorphism ○ Polymorphism is a feature using which an object behaves differently in different situation. ◉ Abstraction ○ Hiding internal details and showing functionality is known as abstraction. For example phone call, we don't know the internal processing. ◉ Encapsulation ○ Binding (or wrapping) code and data together into a single unit are known as encapsulation. For example, a capsule, it is wrapped with different medicines. 11
  • 12. Class and Object ◉ Class ○ It represents the set of properties or methods that are common to all objects of one type. ○ A class can also be defined as a blueprint from which you can create an individual object. Class doesn't consume any space. ◉ Object ○ Any entity that has state and behavior is known as an object. ○ It is a basic unit of Object Oriented Programming and represents the real life entities. Class Example: Car Object Example: Nissan X4, Toyota Etios, BMW Q4 12
  • 13. Discussion Time Let’s discuss on the presentation topic 13