This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
name this file test.java Create another file in the aas directory now make a file with the following code and name it test1.java.
Now the problem is that if i make this var xintest1 as static then the line 1 can access it as if it is not protected but public. [ May 15, 2003: Message edited by: Anupam Sinha ]
Joined: Apr 13, 2003
Well I thought about it and i guess that this because now that the xintest1 is static it can be accessed by any class instance or simply by class name so its just that I am using it through an instance.