I have attended a job interview. The interviewer asked me why you need private variable. If you achieve something by defining a variable private, can't you achieve the same by defining ...
Say i have a class A and Class B extends Class A
Class A{ private int x; private void m1{ } } Class B extends ...