By creating instance of parent class we can't access its inherited method in other package as it is not direct inheritance. Even directly we cant use non static because our child method is static whereas parent class method isn't. ex
package classacees;
public class Thread1 {
protected double sub(double a, double b) {
return (a - b);
}
and...
package example;
import classacees.Thread1;
public class Ece extends Thread1 {
public static void main(String[] args) {
double n=sub(3,2); // error -> cant make a static reference to non static method.
System.out.println(n);
}