Relational Operator 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 If Statement in Java. In this video we are going to discuss about Relational Operators in Java
Relational Operators
In General Relational Operators are used to relate two or more values. Similarly, In Java and other Programming Languages Relational Operators are used to relate two or more variables or values. Relational Operators are mostly used for decision making and is used in If Statements and other Decision making Statements. For instance
if (5< 9){
System.out.println("5 is less than 9");<9 p="">
}
In the above code < Operator relates values 5 and 9. It will check that 5 is less than 9 or not. If it is true then the body of if statement will executes. 
Watch The Video Below to Understand Relational Operators 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 to check whether student is pass or fail and print the message. ( Student have to take 40 out of 100 to pass. )
Respected output will be as
Enter  Your Obtained Marks
55
Congratulation you are Pass.

No comments

Powered by Blogger.