1.

Differentiate between = and == operator in JAVA

Answer»

= is an assignment operator 

== is a comparison operator 

For example 

int a=10; 

Will assign a value 10 to variable a 

Whereas a==10 will check whether the value of a is 10



Discussion

No Comment Found

Related InterviewSolutions