Answer Posted / arjun
It is a class without any name. It is used when we want to
have an encapsulation(i.e. want to use an object of a class)
only once and never required again. we combine the object
creation and class code in a interesting way.
| Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
What are the 4 types of characters?
Can a source file contain more than one class declaration?
What is a website container?
Can an object subclass another object?
Does collectionutils isempty check for null?
Is java util regex pattern thread safe?
What is the difference between Array and Hash Table?
Why is string buffer better than string ?
What are different types of inner classes ?
What does || mean in code?
How many types of array are there?
Difference between association, composition and aggregation?
What is thread pool in java with example?
How to create a fecelet view?
Explain where variables are created in memory?