Can you have an inner class inside a method and what
variables can you access?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
What is the life cycle of Thread ?
12 Answers HCL, Varnar Softech,
How will you override default serialization mechanism in java
What is JVM ?
4 Answers Phantom Technologies, TCS,
Write a program to calculate factorial in java?
What is externalizable?
Why cant we define System.out.println() inside a class directly?
Is it necessary that each try block must be followed by a catch block?
Name the types of 'priority'?
What does compareto () do in java?
What is the purpose of the file class in java programming?
Is it possible for a yielded thread to get chance for its execution again?
Why multiple inheritance is not supported by java?