Access specifier

Hi all, If i want a variable to be accessed by only the sub classes of the same package.But not by non sub classes in same package Which access specifier i can use.
[185 byte] By [Manthanaa] at [2007-11-27 7:29:58]
# 1

You can't, and there's no good reason to do so anyway.

private -- only the same class.

<default or package-private (no keyword)> -- same class or any class in the same package.

protected -- same class, any class in same package, subclasses.

public -- everywhere.

jverda at 2007-7-12 19:10:09 > top of Java-index,Java Essentials,Java Programming...