import java.util.*; public class JavaAccessModifiers { public static void main(String[] args) { javaInstanceOfOperator(); } public int myVariable = 10; public void myMethod() { // method code here } private int myVariable = 10; private void myMethod() { // method code here } protected int myVariable = 10; protected void myMethod() { // method code here } int myVariable = 10; void myMethod() { // method code here } }