// ❌ Not Allowed (Narrowing conversion without cast)
double x = 3;
int y = x; // java doesn't allow this because converting to a lower rank data type might result in data loss
 
// ✅ Allowed (Widening conversion)
int x = 3;
double y = x;
 
// ✅ Forced Conversion (Casting)
double x = 3.14;
int y = (int) x;