You use == when comparing primitives (int, long, double etc). You use equals method when comparing Objects. However you can use == to compare Objects when you want to know if two variables reference...