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 is the importance of main method in Java?
Can you explain the private protected field modifier?
How do you escape sequences in java?
What is the range of the short type?
What is the collections api in java programming?
Is java hashset ordered?
What is a method signature java?
What is the lifetime and scope of a variable?
Is singleton thread safe in java?
What is the indent key?
How do you sing an Applet ?
How do you declare an empty string?
What is parameter example?
What are constants?
How does hashmap work in java ?