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

What is string builder?

893


What do you know about the garbate collector?

1018


Can a vector contain heterogenous objects?

1076


Explain about member inner classes?

1100


Can private method static?

920


What is the difference between instanceof and isinstance?

1061


Explain java heap space and garbage collection?

1072


Can you explain the usages of class.forname()?

1074


What happens when main () method is declared as private?

1145


What are constants?

1053


What is a for loop in java?

1045


define polymorphism in java

1088


What is difference between string and new string?

1037


What are the access modifiers in java?

1038


What does %d do in java?

1044