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 are autoboxing and unboxing? When does it occur?
What is integer size in java?
Can we overload run() method in java?
Where is java located?
Can we catch more than one exception in single catch block?
what is the difference between Object Based Language and Object Oriented Language?
What are drawbacks of singleton class?
What are the four corner stones of oop?
Is zero a natural number?
Can finally block be used without a catch?
What is array list in java?
Why multiple inheritance is not supported by java?