Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is static and a non-static inner class?

Answer Posted / karthee

Static inner class
can only access the static members of the enclosing class.
not associated with the instance of the enclosing class.
can only have static members.

Nonstatic class
is associated with the instance of the enclosing class.(we
need it first to access the nonstatic class)
can access all the member of the encosing class.
is like other members of the enclosing class.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class declared as private be accessed outside it’s package?

1061


What is constructor in java ?

1258


What is data string?

1048


What is local variable and instance variable?

1102


What is the difference between sop and work instruction?

977


Why are arrays useful in java?

1077


What is getclass () getname () in java?

1197


What is java reflection api?

1057


What are the advantages of java inner classes?

1113


Can we make a constructor final?

1081


What is object in java?

1039


What is early binding and late binding in java?

1289


Is nullpointerexception checked or unchecked?

1070


Write a java program to print fibonacci series?

1004


What is deserialization?

1075