Can you have an inner class inside a method and what
variables can you access?
Answer Posted / 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 |
Post New Answer View All Answers
Can we have 2 main methods in java class?
Can a singleton class be inherited?
What is difference between call by value and call by reference?
What is an iterator java?
Can we use return in constructor?
Can you use abstract and final both with a method?
What is serial version uid and its importance in java?
What is nextint java?
What are the restrictions imposed on method overriding?
What is the difference between heap and stack memory?
What are data structures in java?
Can we use different return types for methods when overridden?
Why collection is called framework in java?
What is the difference between the reader/writer class hierarchy and the inputstream/outputstream class hierarchy in java programming?
Difference between ‘>>’ and ‘>>>’ operators in java?