hi there pritam.
heres' your answer:
MEMBER INNER CLASS: a member inner class is a named class defined as a member of the enclosing class.must be associated with an instance of the enclosing class.there can be multiple member inner classes inside an enclosing class.they can be declared as public,private,protected,final,or abstract but cannot have the same name as the enclosing class.
LOCAL INNER CLASS:a named class defined inside the code block of a method is known as a local inner class.the LOCAL INNER CLASS
can access the local variables in the metod and parameters passed to the method only if the variables are declared final.similar to a local variable the inner class cannot be accesed outside the code block in other words the scope of the class is confined to the code block.
member inner class e.g:
class a
{
class b //member iiner class
{
}
}
LOCAL INNER CLASS:
class a
{
void method()
{
class b //local inner class
{
}
}
}
hope this helps
