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?

Answers were Sorted based on User's Feedback



What is static and a non-static inner class?..

Answer / guest

Non Static inner classes have object instances that are
associated with the classes outer class.Static inner
classes have no object instances.

Is This Answer Correct ?    3 Yes 1 No

What is static and a non-static inner class?..

Answer / 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

What is static and a non-static inner class?..

Answer / p.nandakishore

non static inner classes can access all the members of the
outer class i.e both static and nonstatic members.In
nonstatic inner classes we cannot have static declarations
done.To access non static inner class members we outer
class reference.

static inner classes can access only static members of the
outer class.In static inner class we can have static
declarations done. To access static inner class members
no need of outer class reference.

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Core Java Interview Questions

What is the use of toarray () in java?

0 Answers  


What is rmi and steps involved in developing an rmi object?

0 Answers  


if the memory capacity is 700 presently occupied by process is 690. then another process request space(40) how this situation handled in java.

4 Answers   Wipro,


What are the two parts of a conditional statement?

0 Answers  


What is the purpose of main function in java?

0 Answers  


What is tostring () method?

0 Answers  


How do you clear a list in java?

0 Answers  


In Java, what are public static void main string args?

2 Answers  


Which of the following is not an isolation level in the JDBC

0 Answers   CTS,


What is low level language in computer?

1 Answers  


class{ ... ... interface myinterface{ ... ... } abstract class{ .. .. } ... .. .. } is this possible to write "Interface and/ or Abstract class inside a class ? if possible whcich one is possible is only interface? is only abstract?

2 Answers   Logica CMG,


Can list contain null in java?

0 Answers  


Categories