import java.lang.*;

class Relational_Operators
{

public static void main(String args[])
{

int a=10,b=20;
System.out.println(“\nRelational Operators\n”);
System.out.println(“a : “+a);
System.out.println(“b : “+b);
System.out.println(a+” > “+b+” : “+(a>b));
System.out.println(a+” < "+b+" : "+(a= “+b+” : “+(a>=b));
System.out.println(a+” <= "+b+" : "+(a<=b)); System.out.println(a+" == "+b+" : "+(a==b)); System.out.println(a+" != "+b+" : "+(a!=b)); } }

30,819 total views, 208 views today

Get Free Email Updates..!
Join us for FREE to get instant email updates..! GobsInfo- Everything Unlimited
We hate spam. Your email address will not be sold or shared with anyone else.

2,415 Thoughts to “Java Program To Demonstrate Relational Operators”

  1. Keep it up, wonderful job! Just the thing I had to have.
    parajumpers shop http://www.buyparajumpers.online

  2. It’s in fact very difficult in this full of activity life to listen news on Television, therefore I just use world wide web for that reason, and obtain the most up-to-date information.|

  3. Concise and written well, ty for the info
    Lafuma on sale http://www.lafumasale.cc

Leave a Comment