How can you declare 'i' so that it is not visible outside the package test.
package test;
public class Test{
XXX int i;
/* irrelevant code */
}
1)private
2)public
3)protected
4)No access modifier
5) friend
why is 4 not a valid answer? No access modifier is = default = protected right?
private and public i can understand? Please clarify.
About Question enthuware.ocajp.i.v7.2.1275 :
Moderators: Site Manager, fjwalraven
-
- Posts: 2
- Joined: Wed Nov 19, 2014 10:08 pm
- Contact:
-
- Posts: 2
- Joined: Wed Nov 19, 2014 10:08 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1275 :
Sorry miss read the answer... i am good. Late night reading.....
Who is online
Users browsing this forum: No registered users and 15 guests