Can you have an inner class inside a method and what
variables can you access?
Answers were Sorted based on User's Feedback
Answer / janet
yes, we can have an inner class inside a method and final
variables can be accessed.
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / kabita
yes we have.it is called local inner class.it can access
only final variables of outer class.
| Is This Answer Correct ? | 7 Yes | 0 No |
what is difference between abstraction and interface?
Compare overloading and overriding?
What is Transient and volatile
Will the jvm load the package twice at runtime?
Explain importance of inheritance in java?
What is indexof?
What is a function argument in java?
What is return in java?
How to make a write-only class in java?
What is the use of generics? When was it added to the Java development Kit?
Is java a super set of javascript?
Is java ee a framework?