Friday, November 26, 2010

How to use Java Logical Operators

Here we are going to learn how to use AND operators

You can use either AND operator & or && where you have two logical expressions that must both be true for the result to be true. That is you only want to be rich and healthy.Either 'AND' operator will produce the same result from the logical expression.All the following discussions apply equally to & as well as &&.

Now we will see and example. Try this out

No comments:

Post a Comment