Inner Class

Can we decalre java inner class as private and protected?
If yes....please explain
If No....please explain

Questions by vshri12

Showing Answers 1 - 3 of 3 Answers

Priya

  • Jan 28th, 2013
 

If it is a Regular Inner Class or Static Inner class private and protected modifiers can be applied. If it is a method local inner class, then we can use only abstract or final modifier.

  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