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
What are the disadvantages of using inner classes?
What is the instance of an object?
What does this () mean in constructor chaining concept?
What is the purpose of stub and skeleton?
Can static method access instance variables ?
What is the right data type to represent a price in java?
What is pre increment and post increment in java?
What about abstract classes in java?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is final int?
What are java packages?
Define inheritance?
What happens if I remove static from main method?
How do you sort in ascending order in java?
What is externalizable?