Java · Easy · ProWhat are the four access modifiers in Java? Explain their scope with package and inheritance examples.JavaCore JavaOOPFresher