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 the difference between processes and threads?
Write a java program to check if a number is prime or not?
What is the function of static in java?
Is alive in java?
What is the difference between method overriding and overloading?
Which is better singleton or static class?
Is java a prime method?
How big is a pointer?
is there a separate stack for each thread in java? : Java thread
What is a method declaration?
what is the difference between yielding and sleeping? : Java thread
What is a vector in java?
What is a double vs float?
Is vector thread safe in java?
What is this () in java?