• Post Reply Bookmark Topic Watch Topic
  • New Topic

Equality operator  RSS feed

 
srilavanyaa subramanian
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to use equality operator for primitive variables.pls any one could explain me
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For primitives ? a == b.
 
Srikanth Basa
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Equality

if ( a == b )
{
SOP
}


Inequality
if ( c != d )
{
SOP
}
 
Srinivas Kalvala
Ranch Hand
Posts: 257
Firefox Browser Hibernate Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by srilavanyaa subramanian:
how to use equality operator for primitive variables.pls any one could explain me



Any java book contains information regarding the == usage with primitives.

There are some online books such as , Thinking in java ... you can refere them ... or search in Google , as java == usage ... you will get more information instantly.

All the best & Happy Learning.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!