IF STATEMENT USING JAVA PROGRAMMING

Indroduction :-

Hello Friends, how are you all once again I welcome you all to my website Technology Inspire (If Statement) .

Today on this article I will tell you all what is if statement and what is the role of if statement in java program . we will know that java programming before non-if statement .

so without delay let’s know about java program and if Statement .

Java

Java is a high level programming language . It can be use to create big data base , create Mobile application , create web application etc .

Click on the given link to know more about java in depth .

JAVA PROGRAMMING

If Statement :-

An if Statement is a program where the output is obtain on a condition basis .

Simply put , the if statement works on two terms true or false !

If the given condition inside your program is true then whatever output you want , the output java compiler shows in front of you . If the condition is false then the compiler does not show you any output of any kind .

If statements work perfectly on these two types of terms . Let us understand the if statement easily with the help of a simple example .

Condition :-

With the help of Flow diagram given below , you will get a better idea about the condition of the if Statement .

I hope this flow diagram is very helpful for you .

program :-

Let us explain the if Statement in a better way with the help of a Small practical.

class Ifstatement{
          public static void main ( String [] args ) {
                  int n = 10 ;
           if(n<0){
                          System.out.println("The number is negative.");
              }
                          System.out.println("The number is positive.");
                      }
               }

OUTPUT :-

The number is positive.

HELP wITH yOUtUBE :-

If there is anything in this article that you have not understood, then with the help of my YouTube channel (Technology Inspire ) you will understand easily . click on the YouTube video below .

If you found anything helpful in this video or article , then do like , share and Subscribe my youTube channel and this page .

Note :-

I hope that in today’s article you all know well what is if statement and how is work ?

Thank you all for reading this article till the end . If any one of you feel that some changes are need in this article or if you all want an article on some other topic , then definitely tell in the comment box so that very soon I will give another update on that article or that doubt . I can clear .

So that’s all for today , with another new update in next article , good bye till then!

All of you also follow on my YouTube channel.

Related post

JAVA PROGRAMMING

INSTALLATION OF JDK

2 thoughts on “IF STATEMENT USING JAVA PROGRAMMING”

  1. Pingback: IF ELSE IF STATEMENT with JAVA CODE - www.techinspireme.com

  2. Pingback: If else statment with java practical - www.techinspireme.com

Leave a Comment

Your email address will not be published.