Search
  • +44-7459919437 (UK- WhatsApp & Direct Call) | +91-6383544892 (India - WhatsApp Only) | Email Id : vinothrwins@gmail.com
Vinoth Tech Solutions
  • Home
  • Selenium Java Online Training
  • Self Paced Video Course
    • Selenium Course Curriculum
    • Cypress Course Curriculum
    • Playwright Course Curriculum
  • Tutorials
  • Demo Sites
    • E-Commerce Demo Application
    • Practice Automation
      • Demo Page Healthcare
      • Registration Form
      • Transaction Details
      • DropDown
      • Mouse Event
      • Keyboard Events
      • Alert and Popup
      • Multiple Windows
      • iFrames
      • Wait WebElement
      • WebTable
  • FAQS
  • About Me & Feedback
    • Placed Students Feedback
    • Online Training Feedback
    • LinkedIn Profile
    • TechTalk
  • Free YouTube Courses
    • Python for Automation
    • Free QA Video Courses
      • Manual Testing
      • Java For Automation
      • Selenium Webdriver
      • TestNG
      • Cucumber BDD
      • UFT(QTP) Automation
    • Free Data Science Courses
      • Artificial Intelligence for Beginners
      • Python For A.I
      • Python Pandas
      • Python NumPy
      • Mathematics for A.I
  • Home
  • Selenium Java Online Training
  • Self Paced Video Course
    • Selenium Course Curriculum
    • Cypress Course Curriculum
    • Playwright Course Curriculum
  • Tutorials
  • Demo Sites
    • E-Commerce Demo Application
    • Practice Automation
      • Demo Page Healthcare
      • Registration Form
      • Transaction Details
      • DropDown
      • Mouse Event
      • Keyboard Events
      • Alert and Popup
      • Multiple Windows
      • iFrames
      • Wait WebElement
      • WebTable
  • FAQS
  • About Me & Feedback
    • Placed Students Feedback
    • Online Training Feedback
    • LinkedIn Profile
    • TechTalk
  • Free YouTube Courses
    • Python for Automation
    • Free QA Video Courses
      • Manual Testing
      • Java For Automation
      • Selenium Webdriver
      • TestNG
      • Cucumber BDD
      • UFT(QTP) Automation
    • Free Data Science Courses
      • Artificial Intelligence for Beginners
      • Python For A.I
      • Python Pandas
      • Python NumPy
      • Mathematics for A.I

Java For Automation

  • What is Java?
  • Why to Learn Java?
  • History of Java
  • Types of Java Applications
  • Naming Conventions
  • Hello World Program
  • Internal Details of Java program
  • What is Java JDK, JRE and JVM ?
  • What is Java Comments ?
  • What is Java Variable?
  • Variable Naming convention
  • Primitive Data Types
  • Non Primitive Data Types
  • Type Casting
  • Java Arithmetic Operators
  • Relational Operators
  • What is logical operators in Java? 
  • What is Assignment Operators in Java? 
  • What is Unary Operators in Java? 
  • What is Ternary Operators in Java?
  • What is Java Control Statements?
  • What are Decision Making statements?
  • What are looping statements?
  • What are Jump statements?
  • What is OOPS concept in Java?
  • Advantages of Java OOPs
  • What is Java Inheritance?
  • What is Java Constructor?
  • What is this keyword?
  • What is Polymorphism?
  • What is super keyword ?
  • What is final keyword? 
  • What are access modifiers?
  • What is Encapsulation? 
  • What is Abstraction? 
View Categories
  • Home
  • Tutorials
  • Java
  • Java For Automation
  • What is Java Control Statements?

What is Java Control Statements?

What is Java Control Statements?

Java control statements are fundamental constructs that manage the flow of execution in a Java program. These statements allow you to control the order in which statements are executed, based on certain conditions or repetitive tasks. Java control statements are broadly categorized into three types:

  1. Decision-Making Statements (Conditional Statements)
  2. Looping Statements (Iterative Statements)
  3. Jump Statements

1. Decision-Making Statements #

Decision-making statements allow a program to execute certain blocks of code based on specific conditions. Java provides the following decision-making statements:

  • if Statement: Executes a block of code if the condition is true.
  • if-else Statement: Executes one block of code if the condition is true, and another block if the condition is false.
  • else-if Ladder: Checks multiple conditions sequentially and executes the corresponding block of code for the first condition that is true.
  • Nested if statements in Java are if statements placed inside another if statement. This structure is used to check multiple conditions, where each condition is dependent on the previous one.
  • switch Statement: Evaluates a variable and executes a block of code based on the matching case.

2. Looping Statements #

Looping statements are used to execute a block of code repeatedly based on a condition.

  • for Loop: Executes a block of code a specific number of times.
  • while Loop: Repeatedly executes a block of code as long as the condition is true.
  • do-while Loop: Similar to the while loop, but the block of code is executed at least once, even if the condition is false.

3. Jump Statements #

Jump statements are used to transfer control to another part of the program.

  • break Statement: Exits the current loop or switch statement.
  • continue Statement: Skips the remaining code in the current iteration of a loop and proceeds with the next iteration.
  • return Statement: Exits from the current method and optionally returns a value.

Java
What are your Feelings
Share This Article :
  • Facebook
  • X
  • LinkedIn
What is Ternary Operators in Java?What are Decision Making statements?
Table of Contents
  • 1. Decision-Making Statements
  • 2. Looping Statements
  • 3. Jump Statements
© 2018 – 2025 Vinoth Tech Solutions Ltd (UK), Reg. No: 16489105