int i = 1; // integer type double d = 2.0; // floating point type if (d > i) d = i; // comparing and assignment causes implicit type converstion