Answer Posted / ranganathkini
An inner class is a class that is defined within the
definition of another class but outside any member
definition. Inner classes shud not be marked static.
An Inner class cannot be instantiated directly, i.e. one can
only instantiate an inner class by first instantiating the
outer class.
The Inner class has access to all the static as well as
non-static public/protected/private fields of its enclosing
outer class.
Inner classes are used to provide implementation that are
intimately connected with the enclosing outer class.
Is This Answer Correct ? | 39 Yes | 7 No |
Post New Answer View All Answers
Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?
What is the tradeoff between using an unordered array versus an ordered array?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What is difference between protected and private?
What is an infinite loop in java? Explain with an example.
Why is the singleton pattern considered to be an anti pattern?
Is cout buffered?
What is a protected void?
Which is the best sorting technique in java?
Explain about procedural programming language or structured programming language and its features?
Hi all, I am dng a mini project on FileSplitter application which splits the GBs of logfile into Smaller chunks(mbs) depending on the split size." How to handle GBs file? I am getting OutOfMemoryException, when I input such GB sized file. Thx
What is static data type in java?
What is the difference between a vector & an array list?
what is mena by object block any what is the use of that
what is the use of pojo (plain old java objects)? how it is interact with crystal reports? pls urgent