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
Are arrays dynamic in java?
What is a ternary operator in java?
Differentiate between class and structure.
Write java program to reverse string without using api?
Why java does not support pointers?
Why java is made?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is nested interface?
Can a static member function access member variable of an object?
What is unicode with example?
How do you override a method?
Is a case study a method or methodology?
Why are the destructors for base class and derived class called in reverse order when the program exits
Write a program to find the whether a number is an Armstrong number or not?
What is static data type in java?