Explain restrictions for using anonymous inner classes?
Answer / Mukesh Kumar Singh
Anonymous inner classes can only be declared within a static-free context, such as an instance method or a top level class. They cannot have constructors, cannot extend multiple classes, and cannot implement more than one interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
Write a java program that prints all the values given at command-line.
What is the difference between arraylist and hashset in java?
How is hashset defined in java?
Is 0 true or false in java?
what really hapens when a object is created using new operator? 1.is it allocates memory to all variables and methods in the class with reference to that object?
What is square root in java?
How u dubugg ur project?
What is yielding and sleeping? how they different?
when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).
What is an iterator java?
How concurrent hashmap works?
What are 5 boolean operators?