`
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 Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
PDF
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
PDF
Basic Java Programming
PPTX
Introduction to java
PDF
Java Presentation For Syntax
PDF
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
PPTX
Core java
PPTX
core java
Java Tutorial For Beginners - Step By Step | Java Basics | Java Certification...
Java Classes | Java Tutorial for Beginners | Java Classes and Objects | Java ...
Basic Java Programming
Introduction to java
Java Presentation For Syntax
Java Tutorial | Java Programming Tutorial | Java Basics | Java Training | Edu...
Core java
core java

What's hot (20)

PPTX
Introduction to java
PPT
Java Presentation
PPTX
Core Java Tutorials by Mahika Tutorials
PPT
Core java concepts
PDF
Introduction to Java
PPTX
Core Java
 
PDF
Oops concepts || Object Oriented Programming Concepts in Java
PDF
Java Training | Java Tutorial for Beginners | Java Programming | Java Certifi...
PDF
What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka
PPTX
Introduction to java
PDF
Introduction to Java Programming Language
PPTX
Java Data Types
PDF
Genesis and Overview of Java
PPT
Java basic
PDF
Introduction to Java Programming
PPTX
Features of java
PPTX
Data Types, Variables, and Operators
PPSX
Arrays in Java
PDF
Java IO
Introduction to java
Java Presentation
Core Java Tutorials by Mahika Tutorials
Core java concepts
Introduction to Java
Core Java
 
Oops concepts || Object Oriented Programming Concepts in Java
Java Training | Java Tutorial for Beginners | Java Programming | Java Certifi...
What Is Java | Java Tutorial | Java Programming | Learn Java | Edureka
Introduction to java
Introduction to Java Programming Language
Java Data Types
Genesis and Overview of Java
Java basic
Introduction to Java Programming
Features of java
Data Types, Variables, and Operators
Arrays in Java
Java IO
Ad

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

PDF
data types.pdf
PPTX
Java fundamentals
PPTX
Revision of introduction in java programming.pptx
PPTX
Fundamental programming structures in java
PPSX
DISE - Windows Based Application Development in Java
PDF
Computational Problem Solving 004 (1).pptx (1).pdf
PPSX
Dr. Rajeshree Khande : Programming concept of basic java
PPSX
Dr. Rajeshree Khande : Java Basics
PPTX
Java Programming
PPTX
ChapterTwoandThreefnfgncvdjhgjshgjdlahgjlhglj.pptx
PPTX
JPC#8 Introduction to Java Programming
PPT
Unit I Advanced Java Programming Course
PPTX
Computational Problem Solving 016 (1).pptx
PPSX
DITEC - Programming with Java
PPTX
Android webinar class_java_review
PDF
java basics - keywords, statements data types and arrays
PPTX
Unit 2-data types,Variables,Operators,Conitionals,loops and arrays
PPT
Core Java Programming | Data Type | operator | java Control Flow| Class 2
PPTX
03 and 04 .Operators, Expressions, working with the console and conditional s...
data types.pdf
Java fundamentals
Revision of introduction in java programming.pptx
Fundamental programming structures in java
DISE - Windows Based Application Development in Java
Computational Problem Solving 004 (1).pptx (1).pdf
Dr. Rajeshree Khande : Programming concept of basic java
Dr. Rajeshree Khande : Java Basics
Java Programming
ChapterTwoandThreefnfgncvdjhgjshgjdlahgjlhglj.pptx
JPC#8 Introduction to Java Programming
Unit I Advanced Java Programming Course
Computational Problem Solving 016 (1).pptx
DITEC - Programming with Java
Android webinar class_java_review
java basics - keywords, statements data types and arrays
Unit 2-data types,Variables,Operators,Conitionals,loops and arrays
Core Java Programming | Data Type | operator | java Control Flow| Class 2
03 and 04 .Operators, Expressions, working with the console and conditional s...
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)

PPTX
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]
PDF
Altius execution marketplace concept.pdf
PDF
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
PPT
Overviiew on Intellectual property right
PDF
Decision Optimization - From Theory to Practice
PDF
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
PDF
GDG Cloud Southlake #45: Patrick Debois: The Impact of GenAI on Development a...
PDF
Fitaura: AI & Machine Learning Powered Fitness Tracker
PPTX
Information-Technology-in-Human-Society.pptx
PPTX
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
PPTX
Slides World Game (s) Great Redesign Eco Economic Epochs.pptx
PPTX
Presentation - Principles of Instructional Design.pptx
PPTX
Information-Technology-in-Human-Society (2).pptx
PDF
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
PDF
TicketRoot: Event Tech Solutions Deck 2025
PDF
Addressing the challenges of harmonizing law and artificial intelligence tech...
PDF
Child-friendly e-learning for artificial intelligence education in Indonesia:...
PPTX
Report in SIP_Distance_Learning_Technology_Impact.pptx
PDF
“Introduction to Designing with AI Agents,” a Presentation from Amazon Web Se...
PDF
FASHION-DRIVEN TEXTILES AS A CRYSTAL OF A NEW STREAM FOR STAKEHOLDER CAPITALI...
From Curiosity to ROI — Cost-Benefit Analysis of Agentic Automation [3/6]
Altius execution marketplace concept.pdf
The Digital Engine Room: Unlocking APAC’s Economic and Digital Potential thro...
Overviiew on Intellectual property right
Decision Optimization - From Theory to Practice
1_Keynote_Breaking Barriers_한계를 넘어서_Charith Mendis.pdf
GDG Cloud Southlake #45: Patrick Debois: The Impact of GenAI on Development a...
Fitaura: AI & Machine Learning Powered Fitness Tracker
Information-Technology-in-Human-Society.pptx
Rise of the Digital Control Grid Zeee Media and Hope and Tivon FTWProject.com
Slides World Game (s) Great Redesign Eco Economic Epochs.pptx
Presentation - Principles of Instructional Design.pptx
Information-Technology-in-Human-Society (2).pptx
CCUS-as-the-Missing-Link-to-Net-Zero_AksCurious.pdf
TicketRoot: Event Tech Solutions Deck 2025
Addressing the challenges of harmonizing law and artificial intelligence tech...
Child-friendly e-learning for artificial intelligence education in Indonesia:...
Report in SIP_Distance_Learning_Technology_Impact.pptx
“Introduction to Designing with AI Agents,” a Presentation from Amazon Web Se...
FASHION-DRIVEN TEXTILES AS A CRYSTAL OF A NEW STREAM FOR STAKEHOLDER CAPITALI...

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