What modifiers may be used with an inner class that is a member of an outerclass

A (non-local) inner class may be declared as public, protected, private, static, final, orabstract.

Showing Answers 1 - 1 of 1 Answers

Expect static modifier all other modifiers such public,private,protected,default,abstract and final modifiers can be used with inner class which is a member of an outer-class.
If the inner class contains the static modifier it results in compilation error.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions