explain Anonynous inner class?

Answer Posted / javac

Anonymous inner class is a class inside a class with out
name.and it is always used create the object of itself and
store it into super class reference variable or Interface
reference variable.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where local and global variables are stored?

533


Explain how hashmap works?

584


How do you change an int to a string?

537


How does thread synchronization occurs inside a monitor?

542


What is codebase?

522






how to create multithreaded program? : Java thread

493


Write a program to print the pattern given below

485


What do you mean by a JVM?

551


What is derived datatype?

619


What is the function of static in java?

535


Can we call virtual funciton in a constructor ?

1764


What is the symbol for space?

554


What does system.gc() and runtime.gc() methods do?

590


What is anagram word?

511


What is static keyword in java?

545