A static finite constant variable is used. This variable will be replaced at compile time with an actual constant value to improve performance. If you look at the compiled binary (yes, you cannot;), but technically speaking with an assumption), it will be something similar to this:
public class Test { public static void main(String[] args) { System.out.println(10);
Based on this code, the Hello class will not be loaded into RAM. Therefore, he will not print SB.
source share