How can you declare i so that it is not visible outside the package 'test'.
XXX int i;
/* lot of code */
no access modifier
One of the answer is no access modifier, what is the other possible choice.
Is it public? Does the access modifier of the method override the class modifier.Hope my question makes sense. In other words if declare a method private in public class, the net access permission of the method is public
or is it class modifier overrides the method modifier
Any suggestions are welcome