News

int intVariable = 5; long longVariable = intVariable; // implicit compatible ... however, so the Java compiler allows it only with type casting. This is sometimes called the covariance problem.