70.3k views
16 votes
What is the difference between the = operator and the == operator in Java?

= denotes an allocation, and == denotes an assignment

= denotes an assignment, and == denotes a comparison

= denotes an initialization, and == denotes a comparison

= denotes a comparison, and == denotes an assignment

User Andrew Liu
by
6.4k points

1 Answer

4 votes

Answer:

The are different severs I guess

Step-by-step explanation:

User Guy Bouallet
by
7.0k points