What is the use of anonymous inner classes ?
Answer Posted / bindhu
We can declare an inner class within the body of a method
without naming it. These classes are known as anonymous
inner classes
Very useful for controlled access to the innards
of another class. and useful when we need one instance of a
special class.
| Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
Using callable statement how can you pass out parameters, explain with example?
What is the differences between c++ and java? Explain
What will be the initial value of an object reference which is defined as an instance variable?
What does null mean in java?
Do you know how to reverse string in java?
What is array and arraylist in java?
What is the use of private static?
What is the same as procedures?
What is the use of StringTokenizer class?
Give a brief description of java socket programming?
why not override thread to make a runnable? : Java thread
How many techniques can be employed to create a string object?
What is t type java?
What is fundamental datatype?
What is stack explain?