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)); } }

22,345 total views, 6 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.

1,709 Thoughts to “Java Program To Demonstrate Relational Operators”

  1. 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.|

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

Leave a Comment