A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Joined: Oct 08, 2012
Feb 11, 2013 00:53:16
Guys I am new to
I know there are 4 types of inner class.
static inner class
non static inner class.
local inner class
anonymous inner class.
But what is the use of inner class?
Is there some big advantage of using these classes?
Joined: Oct 13, 2005
Feb 11, 2013 03:00:30
Your nomenclature is not quite right. Start in the
. And, yes, there are great advantages to nested classes; we can have classes which are used only by another class and give them local scope or private access.
I agree. Here's the link:
subject: Inner Class
Difference between inner and outer classes
Round - Up game
Inner classes and static variables
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014