saloni pai

Greenhorn
+ Follow
since Jul 04, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by saloni pai

I know that the class cannot be accessed by using the modifier private or protected.
But during the compilation time itself, i get the error message that the modifier is not allowed.
Granted that a private class cannot be accessed, but what about a protected class. i could always subclass a protected class and use it then..
So, i require the exact reason..
16 years ago
Can anyone please tell me the exact funda/reason as to why Java class can only be declared publec or default access, but not private or protected.
(I am not considering inner classes, just a normal class)... The compiler flags an error, but i would like to know the exact reason.
Thanks !
16 years ago