Method-local inner class - It can be marked abstract - Java

Q.  Which is true about a method-local inner class? (Java)
- Published on 26 Jun 15

a. It must be marked final.
b. It can be marked abstract.
c. It can be marked public.
d. It can be marked static.

ANSWER: It can be marked abstract.
 
A class that is created inside a method is called local inner class in java.

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)