SlideShare a Scribd company logo
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
What is Hadoop?
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
➢ Variables
➢ Data types
➢ Operators
➢ Conditional Statements
➢ Loops
➢ Arrays and Strings
➢ Functions
➢ Classes and Objects
Agenda
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Java Installation
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Eclipse Installation
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Variables
Data types
Operators
Conditional
Statements
Loops Functions
Classes and
Objects
Arrays &
Strings
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Variable
Variables are nothing but reserved memory locations to store values. This means that
when you create a variable you reserve some space in memory.
int X = 25;
float Y = 3.142857;
boolean B = true;
B = true
Y = 3.142857
X = 25
Memory
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Operators
Conditional
Statements
Loops Functions
Classes and
Objects
Arrays &
Strings
Variables
Data types
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Data types
A data type, in programming, is a classification that specifies which type of value a variable
has and what type of mathematical, relational or logical operations can be applied to it
without causing an error.
int X = 25;
float Y = 3.142857;
boolean B = true;
B = true
Y = 3.142857
X = 25
Memory
Integer
Float
Boolean
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Data types
Data types
Integer
Float
Character
Boolean
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Character
Boolean
Integer1
3
4
Float32
Numeric Data type
 Integer data types are used to store numeric values.
 There are four different integer types in Java:
-128 to 127
-32768 to 32167
-2147483648 to 2147483647
-9,223,372,036,854,775,808 to
9,223,372,036,854,775,807
byte Type
short Type
int Type
long Type
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Character
Boolean
Integer1
3
4
Float3
2
Float Data type
 Float data types are used to store numeric values along
with their decimal value.
 There are two different float types in Java:
float Type
double Type
±3.40282347E+38F
±1.79769313486231570E+308
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Boolean
Integer1
Character3
4
Float32
Character Data type
 Character data types are used to store character values.
 char data type is a single 16-bit Unicode character:
char Type 0 to 65,535
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Character
Integer1
3
Boolean4
Float32
Boolean Data type
boolean Type True or false
 Boolean data types are used to store boolean values along.
 This data type is used for simple flags that track true/false
conditions
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Conditional
Statements
Loops Functions
Classes and
Objects
Arrays &
Strings
Variables
Data types
Operators
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Data Operations
Operators
Relational
Operators
Arithmetic
Operators
Logical
Operators
Unary
Operators
Operations Operators are the constructs which can manipulate the value of operands.
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Arithmetic and Relational Operators
Arithmetic
a + b
a – b
a * b
a / b
a % b
Addition
Multiplication
Subtraction
Division
Modulus
a == b
a != b
a > b
a < b
a >= b
a <= b
Equal To
Greater Than
Not Equal To
Less Than
Greater Than Equal To
Less Than Equal To
Relational
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Unary Operator
There are two types of unary operators: Increment and Decrement
Increment
Decrement
Pre increment
Post increment
Pre decrement
Post decrement
++i
i++
--i
i--
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Logical Operator
There are three types of logical operators: Logical AND, Logical NOT, Logical OR
a and b
a or b
Returns a if a is false, b otherwise
Returns b if b is false, a otherwise
not a
Returns true if a is false, false
otherwise
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Operators
Conditional
Statements
Loops Functions
Classes and
Objects
Arrays &
Strings
Variables
Data types
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Conditional Statements
If Statement
If code
End
Start
If
Condition
FALSETRUE
Syntax:
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Conditional Statements
Else If Statement
If code
End
Start
If
Condition
FALSE
TRUE
FALSE
Else If
Condition
TRUE
Else If code
Syntax:
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Conditional Statements
Else Statement
Syntax:
If code
End
Start
If
Condition
FALSE
TRUE
FALSE
Else If
Condition
TRUE
Else If code
Else code
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Conditional Statements
Switch case Statement
Syntax:
Start
switch
Condition
Case value1 Statement 1 break
Case value2 Statement 2 break
Case value3 Statement 3 break
default Statement
End
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Conditional
Statements
Operators Functions
Classes and
Objects
Arrays &
Strings
Variables
Data types
Loops
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Loops in Java
A loop statement allows us to execute a statement or group of statements
multiple times. The following diagram illustrates a loop statement:
Loops
Loops
forwhiledo while
CHECK
CONDITION
EXECUTE BLOCK
START
EXIT LOOP
FALSE
TRUErepeat
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Do While Loop
Do While Loop Repeats a statement or group of statements while a given condition is TRUE. It
tests the condition after executing the loop body.
Syntax:
CHECK
CONDITION
EXECUTE BLOCK
START
EXIT LOOP
FALSE
TRUE
repeat
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
While Loop
While Loop Repeats a statement or group of statements while a given condition is TRUE. It
tests the condition before executing the loop body.
Syntax:
CHECK
CONDITION
EXECUTE BLOCK
START
repeat
EXIT LOOP
FALSE
TRUE
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
For Loop
For Loop Repeats a statement or group of for a fixed number of times. It tests the
condition before executing the loop body.
Syntax:
Check
condition
Initialization
START
Iteration
Execute Statements
Exit loop
FALSE
TRUE
repeat
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Loops
Arrays &
Strings
Conditional
Statements
Operators Functions
Classes and
Objects
Variables
Data types
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
 An array is a data structure which holds the sequential elements of the same type.
 Arrays of any type can be created and may have one or more dimensions.
Array In Java
0 1 2 3 4
126 32 230 21 200
Index
Value
E.g: array index 4 is
holding a value of 200
Each index in the array
holds a value.
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
 Arrays can be of 2 types:
Array In Java
Single Dimensional Array
Initialization: int a[] = new int[12]
Initialization: int table[][] = new int[4][5];
Table[2][2] = 13
Multi Dimensional Array
0 1 2 3 4
0
1
2
3
Width = 5
Height =4
Index in Y dimension
Index in
X dimension
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
 String is a data structure which holds the sequential character.
 In Java programming language, strings are treated as objects.
String In Java
0 1 2 3 4 5
H e l l o 0
Initialization: String str = “Hello”
Str[0] Str[1] Str[2] Str[3] Str[4] Str[5]
www.edureka.co/devopsEDUREKA DEVOPS CERTIFICATION TRAINING
Functions
Loops
Conditional
Statements
Operators
Classes and
Objects
Variables
Data types
Arrays &
Strings
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Functions
A function is a block of organized, reusable code that is used to perform a
single, related action.
Functions
Predefined
Functions
User Defined
Functions
Function Add
Call (3,5)
Call (6,9)
Call (1,5)
Call 1
Call 2
Call 3
Return 8
Return 15
Return 6
Functions In Java
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Functions
Classes and
Objects
Loops
Conditional
Statements
OperatorsVariables
Data types
Arrays &
Strings
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Classes and Objects in Python
Classes and Objects
 A class is the blueprint from which specific objects are created.
 Anything that has a state and behavior is object.
Class
Object
`
https://www.edureka.co/java-j2ee-soa-trainingEDUREKA JAVA CERTIFICATION TRAINING
Session In A Minute
Install Java Data types, Operators
Loops Functions
Conditional Statements
Classes and Objects
Java Programming | Java Tutorial For Beginners | Java Training | Edureka

More Related Content

PDF
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
PDF
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
PDF
Java Training | Java Tutorial for Beginners | Java Programming | Java Certifi...
PDF
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
PPTX
Introduction to java
PPTX
Advanced JavaScript
PPTX
Core java complete ppt(note)
PDF
What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Java Training | Java Tutorial for Beginners | Java Programming | Java Certifi...
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Introduction to java
Advanced JavaScript
Core java complete ppt(note)
What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka

What's hot (20)

PDF
Java IO
PPTX
Exceptions in Java
PPSX
Introduction to Java
PPTX
Data Types, Variables, and Operators
PPTX
Core Java
PDF
Hibernate Presentation
PPTX
Core java
PPT
Java Basics
PDF
Introduction to java (revised)
PPTX
PPSX
Exception Handling
PDF
Spring Framework - Core
PPT
Spring Core
PPTX
JAVA ENVIRONMENT
PPTX
Core Java Tutorials by Mahika Tutorials
PPTX
JavaScript Promises
PPTX
JavaScript: The Good Parts Or: How A C# Developer Learned To Stop Worrying An...
PDF
Core java complete notes - Contact at +91-814-614-5674
PDF
Spring annotation
Java IO
Exceptions in Java
Introduction to Java
Data Types, Variables, and Operators
Core Java
Hibernate Presentation
Core java
Java Basics
Introduction to java (revised)
Exception Handling
Spring Framework - Core
Spring Core
JAVA ENVIRONMENT
Core Java Tutorials by Mahika Tutorials
JavaScript Promises
JavaScript: The Good Parts Or: How A C# Developer Learned To Stop Worrying An...
Core java complete notes - Contact at +91-814-614-5674
Spring annotation
Ad

Similar to Java Programming | Java Tutorial For Beginners | Java Training | Edureka (20)

PDF
Java Certification Tutorial | Java Tutorial For Beginners | Java Training | E...
PDF
Core Java Certification
PDF
Certified Core Java Developer
PDF
R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
PPTX
Java basic
PDF
Java
PDF
Mastering Java A Beginners Guide Divya Sachdeva Natalya Ustukpayeva
PDF
Top 50 Java Interviews Questions | Tutort Academy - Course for Working Profes...
PDF
Java Training in Chennai - Payilagam Syllabus
PDF
Java Training Institutes in Pune - MindScripts
PDF
Java Certification in Pune - MindScripts
PDF
Java Certification in Pune - MindScripts
PDF
Java Classes in Pune - MindScripts
PDF
Java Courses in Pune - MindScripts
PDF
Java Training Center in Pune - MindScripts
PDF
Java Training Institute in Pune - MindScripts
PDF
Advanced Java Training Institutes in Pune - MindScripts
PDF
Java Courses In Pimpri Chinchwad
PDF
Java Courses in Pune - MindScripts
PDF
OOP - basics.pdf
Java Certification Tutorial | Java Tutorial For Beginners | Java Training | E...
Core Java Certification
Certified Core Java Developer
R Programming For Beginners | R Language Tutorial | R Tutorial For Beginners ...
Java basic
Java
Mastering Java A Beginners Guide Divya Sachdeva Natalya Ustukpayeva
Top 50 Java Interviews Questions | Tutort Academy - Course for Working Profes...
Java Training in Chennai - Payilagam Syllabus
Java Training Institutes in Pune - MindScripts
Java Certification in Pune - MindScripts
Java Certification in Pune - MindScripts
Java Classes in Pune - MindScripts
Java Courses in Pune - MindScripts
Java Training Center in Pune - MindScripts
Java Training Institute in Pune - MindScripts
Advanced Java Training Institutes in Pune - MindScripts
Java Courses In Pimpri Chinchwad
Java Courses in Pune - MindScripts
OOP - basics.pdf
Ad

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PDF
Tableau Tutorial for Data Science | Edureka
PDF
Python Programming Tutorial | Edureka
PDF
Top 5 PMP Certifications | Edureka
PDF
Top Maven Interview Questions in 2020 | Edureka
PDF
Linux Mint Tutorial | Edureka
PDF
How to Deploy Java Web App in AWS| Edureka
PDF
Importance of Digital Marketing | Edureka
PDF
RPA in 2020 | Edureka
PDF
Email Notifications in Jenkins | Edureka
PDF
EA Algorithm in Machine Learning | Edureka
PDF
Cognitive AI Tutorial | Edureka
PDF
AWS Cloud Practitioner Tutorial | Edureka
PDF
Blue Prism Top Interview Questions | Edureka
PDF
Big Data on AWS Tutorial | Edureka
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
PDF
Kubernetes Installation on Ubuntu | Edureka
PDF
Introduction to DevOps | Edureka
What to learn during the 21 days Lockdown | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
Tableau Tutorial for Data Science | Edureka
Python Programming Tutorial | Edureka
Top 5 PMP Certifications | Edureka
Top Maven Interview Questions in 2020 | Edureka
Linux Mint Tutorial | Edureka
How to Deploy Java Web App in AWS| Edureka
Importance of Digital Marketing | Edureka
RPA in 2020 | Edureka
Email Notifications in Jenkins | Edureka
EA Algorithm in Machine Learning | Edureka
Cognitive AI Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
Blue Prism Top Interview Questions | Edureka
Big Data on AWS Tutorial | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Kubernetes Installation on Ubuntu | Edureka
Introduction to DevOps | Edureka

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
Teaching material agriculture food technology
PPTX
Cloud computing and distributed systems.
PPTX
Big Data Technologies - Introduction.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
Teaching material agriculture food technology
Cloud computing and distributed systems.
Big Data Technologies - Introduction.pptx
MYSQL Presentation for SQL database connectivity
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Advanced methodologies resolving dimensionality complications for autism neur...
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Review of recent advances in non-invasive hemoglobin estimation
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx

Java Programming | Java Tutorial For Beginners | Java Training | Edureka