1. An inner class is treated just like a member of the class, so it can have any access modifiers (private, public protected or default). Is it possible to have more then one public integers inside a class declaration? of course yes, then the answer is of course yes for inner classes.
2. final abstract is never legal - for any type of classes. What you have probably read is that private can not be declared with abstract, but of course that is only legal for an inner class.
P.S. As for me this simple rule always helps me remember that abstract strictfp is illegal for a method, but legal for a class.
Thank you,
Eugene.
Jeena Jeen wrote:Hi all,
Is it possible to have more than one public Inner Class.
I know that its not possible to have more than one public modifier for outer class in same file. But what about inner class?
And one more question for inner class. I read some where that for inner class Abstract, Final pair is legal for inner class?
Is it true? Can anyone please explain this to me that how come we can use Abstract and Final pain for inner class and not for outer class?