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
What is callablestatement? How you can call stored procedure to pass in parameter?
Differentiate between the constructors and methods in java?
What is the role of garbage collector in java?
Why synchronization is important?
Is null function in java?
What is the byte range?
What is the integer of 16?
What is the use of keywords in java?
Is arraylist zero based?
What does null mean in java?
What are the important features of Java 11 release?
What is array list in java?
What is string value?
Can an interface be final?
What is data and its types?