what is the difference between =,== in java
Answers
Answered by
0
pata nahi tum hi batadi
Answered by
4
Nice question .
Here is the answer ↓↓↓
Applications
The operator ( = ) is called an assignment operator.
The operator is used to assign the value of a variable.
For example : int x = 5 ;
Here we are assigning the value of x using the operator ( = ) .
The operator (==) is used to check and compare two variables , strings, objects , or whatever .
This is particularly used as a logical operator to compare .
For example : if(i==1)
Hope it helps
_________________________________________________________________
Similar questions
Science,
7 months ago
Social Sciences,
7 months ago
Science,
7 months ago
History,
1 year ago
English,
1 year ago