Aarthi,
this is what java tutorial says :
http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html quote (from the above said page)
------------------------------------------------------------------------
Access Levels Specifier Class Package Subclass World
private Y N N N
no specifier Y Y N N
protected Y Y Y N
public Y Y Y Y
The first column indicates whether the class itself has access to the memeber defined by the access level. As you can see, a class always has access to its own members. The second column indicates whether classes in the same package as the class (regardless of their parentage) have access to the member. A package groups related classes and interfaces and provides access protection and namespace management. You'll learn more about packages in the section Creating and Using Packages. The third column indicates whether subclasses of the class �
regardless of which package they are in � have access to the member. The fourth column indicates whether all classes have access to the member.
----------------------------------------------------------------------------
****************************************************************************
----------------------------------------------------------------------------
****************************************************************************
----------------------------------------------------------------------------
Lavjeet,
Please
create an instance of Puzzle2 (from the same page) and access the protected variable..
it should work....

hopefully