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
What is core java used for?
Why is it important to initialize a variable?
What is the protected method modifier?
Can we access instance variables within static methods ?
Can a main method be overloaded?
List some features of the abstract class.
What is use of static method?
Can you give names of Container classes?
What is the difference between jfc & wfc?
What is bitwise complement?
What is difference between class and object in java?
What is meant by inheritance and what are its advantages?
What does %4d mean in java?
What is hash code collision?
What is private static class in java?