Core Java Assignment 2
Core Java Assignment 2
01
Date
Assiqpmeat No o2
Explain tnner class in detatL
)An DNe a olassthat
class is nested
wothinanothen class
2)t all ocos logical qrouping of ela sse that a
ony uSed in one place
of ihenclase in Jeva
Non -Static inner cass, Stotte NetedclasS, Local
Innes class, and Anonu mous lone clace
wInner classes hane access to the Me mbess
CincludBng pavate membersJ of the quter caas
G) nlo Static. nner cla sserxequie Cn ieg tance
oP the outer elast to be instantia ked
6) Static LAeited classes do not quie
instance o the ou ter clals
N Anonyma inner classes ae aeed for Inplementing
interfaces or Rxtending clacSea cwith minimal cadz
A )Annes (lasse ae uded for inplementing
en capsulating and event hunding in TAA
autl'eulaly in G0I applications
priuate,rotechedc
lnner classes Can beprivate
Qackaqe private.
Pags No.] 02
Dats