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 casting in java programming?
What is the final keyword in java?
Which containers use a flowlayout as their default layout in java programming?
When do we need to use internal iteration? When do we need to use external iteration?
what are the states associated in the thread? : Java thread
What is difference between throw and throws ?
What is port number in java?
What is the null?
What is difference between iterator and enumeration in java?
What are heterogeneous objects?
What is java and their uses?
What is currentthread()?
What is appletviewer?
Describe different states of a thread.
What are the rules for naming an array?