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 does += mean coding?
What do you mean Abstraction in java?
What are the 4 versions of java?
What is array list in java?
What is anonymous class?
Justify your answer that you can't define a method inside another method in java, if you can then how?
What are constants?
Is java written in c?
Is the empty set a singleton?
Why does java doesnot support multiple inheritance?
What is difference between abstract class & final class
Write the algorithm to check the number non-leaf nodes in a tree.