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
Is it possible to define a method in java class but provide it’s implementation in the code of another language like c?
How many tetrahedral voids are there in bcc?
What is constructor and its types?
What is a type parameter in java?
what do you mean by marker interface in java?
What is substring 1 in java?
What is the use of set in java?
Why java is object oriented?
What is the right data type to represent a price in java?
what is nested class in java?
How to make a read-only class in java?
What is difference between ++ I and I ++ in java?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
What is the benefit of singleton pattern?
What do you mean by mnemonics?