When I understand that static and final combinations can be used together, I learned that static and abstract or final and abstract combinations are not permitted in Java while reading this https://www.scaler.com/topics/abstract-keyword-in-java/. However, I have seen the following code elsewhere.
Code: Select all
public class Enclosing {
private static int x = 1;
public static abstract class StaticNested {
public abstract void run();
}
}
Could someone kindly explain the principle and practical applications of this scenario?