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
How are destructors defined in java?
What is java used for?
How we create object in copy constructor?
What is defined as false sharing in the context of multithreading?
What are the advantages of exception handling in java?
What is independent and dependent variables in research?
What programs use java?
What is the inheritance?
What do you mean by data type?
Can we override the static methods?
What is an image buffer?
Why put method is used?
What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?
When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?
Difference between Linked list and Queue?