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,817 total views, 206 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. excellent article very helpful will visit again one day
    arcteryx on sale http://arcteryx.hawksportsind.com

  2. Fantastic job here. I definitely enjoyed what you had to say. Keep going because you absolutely bring a new voice to this subject. Not many people would say what youve said and still make it interesting. Well, at least Im interested. Cant wait to see more of this from you.
    oakley on sale http://www.oakleysale.online

  3. Ive bookmarked your blog, informative read
    ecco sale uk http://www.napfashion.co.uk

Leave a Comment