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
Why to use nested classes in java?
describe synchronization in respect to multithreading? : Java thread
What is the difference between final, finally and finalize() in java?
What is the synonym of procedure?
Is java map thread safe?
Explain the use of volatile field modifier?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is a byte string?
Does .length start 0 java?
What are java packages?
How do you override a method in java?
how we can make a write-only class in java?
Can private members of a base class are inheritable justify?
What is the syntax and characteristics of a lambda expression? Explain
Can we declare an array without size in java?