1.public class Later{
2. public static void main(
String[] args){
3. boolean earlyExit=new Later().test1(args);
4. if(earlyExit) assert false;
5. new Later().test2(args);
6. }
7. boolean test1(String[] a){
8. if(a.length==0) return false;
9. return true;
10. }
11. private void test2(String[] a){
12. if (a.length==2) assert false;
13. }
14.}
QUESTION: Shouldn't line 5 produce a compiler error as it is trying to access private member of class using dot operator? OR this code works just fine?