Can you have an inner class inside a method and what
variables can you access?
Answer Posted / 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 |
Post New Answer View All Answers
Which class is the superclass for all the classes?
What is bytecode verifier?
Explain different states of a thread in java?
What is lambda programming?
What is variable and rules of variable?
In a class implementing an interface, can we change the value of any variable defined in the interface?
What is the difference between assignment and initialization?
What is the difference between the paint() and repaint() methods in java programming?
What is a linkedhashmap java?
What is the use of parseint in java?
What is the difference between sop and work instruction?
What is the common usage of serialization?
Can we declare the main method of our class as private?
How to display arraylist values in java?
Explain inner classes ?