Lab 17
AIM: Write an application that illustrates how to access a hidden variable. Class A declares a static variable x. The class B extends A and declares an instance variable x. display() method in B displays both of these variables
class A
    static int x;
class B extends A
    int x;
    void display()
        System.out.println("Static variable x: "+super.x);
        System.out.println("Normal variable x: "+x);
    public static void main(String arg[])
        A a=new A();
        B b=new B();

hidden variable output
by Practical Server

Happy Coding :)