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 an example of a constant variable?
Why does java have two ways to create child threads?
What must a class do to implement an interface in java programming?
What is a 16 bit word?
What is getclass () getname () in java?
define the terminology association.
What is %d in printf?
Can we clone singleton class in java?
What are the basic concepts of OOPS in java?
Where local and global variables are stored?
Why inputstreamreader is used in java?
Why put method is used?
Why do we use variables?
What is lastindexof in java?
What are java packages?