Computer Science, asked by HYDRADYNAMO, 1 year ago

what is the difference between =,== in java

Answers

Answered by monukumar1391
0
pata nahi tum hi batadi
Answered by Anonymous
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