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

79,159 total views, 328 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.

5,341 Thoughts to “Java Program To Demonstrate Relational Operators”

  1. Amazing blog! Is your theme custom made or did you download it from
    somewhere? A design like yours with a few simple adjustements
    would really make my blog jump out. Please let me know
    where you got your theme. Thank you

Leave a Reply to Lafuma on sale Cancel reply