Advertisements
Advertisements
Question
What is the difference between = and ==?
Distinguish Between
Solution
S. No. | = | == |
1. | Assignment (=) | Equals (==) |
2. | This is the assignment operator. | This is a relational operator. |
3. | Example:
|
Example:
|
shaalaa.com
Is there an error in this question or solution?
Chapter 1.04: Operators in Java - EXERCISES [Page 44]