What is the use of anonymous inner classes ?
Answer Posted / jubin thomas, bhilai(mpccet)
Anonymous class is a class which has no methods defined in
it.
Eg.
class a
{
public void hello();
}
class b
{
a obj = new a();
public void hello()
{
System.out.println("Hello World");
}
}
Is This Answer Correct ? | 2 Yes | 64 No |
Post New Answer View All Answers
How many bits is size_t?
What function extracts specified characters from a string?
What is the r character?
Which command from the jdk compiles a java program?
Are arrays dynamic in java?
What is polymorphism in java? What are the kinds of polymorphism?
Explain aggregation in java?
Explain the init method?
What is set and get methods in java?
What is hash code collision?
What is the difference between procedural and object-oriented programs?
Does a class inherit the constructors of its superclass in java programming?
What are streams in java 8?
What is object-oriented paradigm?
What are the library functions in java?