public class A extends B {
public static final int CONST = 6;
... some logic ...
}
public class C {
private int addNumber(int x) {
return x + A.CONST;
}
}
I wonder if a jUnit Test for class C will just load the field from class A, it depends on or if all the logic from class A with its extension (class B) will be fully loaded.
How does the JVM is working in this case ?
Thanks !