How do I try ... catch an error produced by access modifiers? Say for instance
class A{ private void message(){System.out.println("Hello java");} } public class Simple{ public static void main(String args[]){ A obj=new A(); obj.message();//Compile Time Error } }