Answer:
= is used more for define a variable so int Data = 1;
Where == is used to show if something is equal too.
exp of == would be
int Data1 = 1;
int Data2 = 2;
if(Data1 == Data2)
{
System.out.println("Hi")
}
else
System.out.println("Not Equal");
//Output
Not Equal
//Reason was they didnt equal and the boolean was false not true.
Step-by-step explanation:
Hope this helped!