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 difference between string and new string?
Why do we declare a class static?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
Does it matter in what order catch statements for filenotfoundexception and ioexception are written?
What if constructor is protected in java?
What does sprintf return?
What modifiers are allowed for methods in an interface?
What is meant by data hiding/encapsulation?
Can a class have more than one object?
What is a consumer in java?
Explain what access modifiers can be used for methods?
What is illegal identifier in java?
Why is core java important?
Is java call by reference?
Can we override constructors?