
how to inherit static variable or methods in Java?? Please explain the entire process of inheriting the variable.
Thanks in advance!

class SuperClass{
public static void staticMethod(){
System.out.println("Super class static method.");
}
}
class SubClass extends SuperClass{
pulbic static void main(String[] args){
SubClass.staticMethod();
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.