java – can inner classes access the outer class variables/methods if they have same name?

I am trying to access outer class variables from inner class when inner class also has variables with same name and type, How to access name variable of class A from class B show method?

 class A {
    
        String name;
        int marks;
    
        // Member inner class
        class B {
            String name;
            
            public void show() {
                System.out.println(this.name + " " + A.name + " " + marks);
            }
        }
    
        public void show() {
            System.out.println("in a show");
        }
    
    }