We can access a static property of a class by writing className.propertyName, but if the property (method/variable) is private then is it possible to access that property? For example, This will print A.a = 50 But if I change static int a = 50; to private static int a = 50; then can I access that variable any how? Answer