If Statement in Java

Get Into Code provides you with free C++ and Java Course in Hindi/Urdu and also provides you the opportunity to practice your skills to be perfect. In the previous video we have discussed about the Arithmetic Operations in Java. In this video we are going to discuss about If Statement in Java.
If Statement
In your daily life you have to make some decisions and these decisions are based on some condition faced by you. Similarly, You have to make some decisions in programs as well.
DECISION DETERMINE DESTINY
 If Statement is used to make Decision in C++. It consists of three Parts.

  1. If Keyword
  2. Condition
  3. Body
Syntax
if ( Condition )
{ 
 Body
}

Watch The Video Below to Understand If Statement in Java


The best about our site is that we provide our readers to practice their skills because Practice Puts Brain in Your Muscles. So, Go Ahead and Write a Java Program which ask number of day from user and program will print the name of that day.
Respected output will be as
Enter the Day Number
3
Today is Wednesday

No comments

Powered by Blogger.