what is the difference between = and ==
Answers
Answered by
0
Answer:
(=) this means equal to and dont know about==
Answered by
1
Answer:
'='
- It known as assignment operator
- Used for assigning a value to a Variable
- Example:- int a=5;
'=='
- It is known as conditional operator.
- Used for checking conditions
- Example:
if(a==5)
System.out.println("Five");
else
System.out.println("Not five");
Similar questions
Math,
3 months ago
Economy,
3 months ago
English,
6 months ago
English,
6 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago