Computer Science, asked by depthy9, 4 months ago

.Differentiate “=” and “==” operator with examples.​

Answers

Answered by nisha263248
1

Answer:

"=" It is used in mathematics and shows a syntax error if used in a Java program. "==" It is a relational operator and shows the relation between two operants. for example:if (n%2==0)

{

System.out.println("true");

else

System.out.println("false ");

}

Similar questions