why is the output 0.0 if I write the following code? It seems to me like it wouldn't read the variable x inside my class Car.
public class Car {
double x = 2;
double y;
double v = x * y;
public Car(double y) {
this.y = y;
}
public static void main(String[] args) {
Car car = new Car(100);
System.out.println(car.v);
}
}//end of class