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 |
How do you find the maximum number from an array without comparing and sorting?
Difference between string, string builder, and string buffer?
class A{ m2(){ } } class B extends A{ m2(){ } } class c extends B{ m2(){ } } class my_class extends c{ m2(){ } pulic static void main(){ ...My_class a = new my_class(); super.super.super.m2(); is this is leagal if not find what is the legal procedure in order to call A's version of m2(); }
Can each java object keep track of all the threads that want to exclusively access it?
What is the purpose of static keyword in java?
Does set allows null in java?
perpare on factorypattern,linklist wothout using collection, (multitharding ie create producer/customer therad producer create Queue continuesly,consumer consume queue, consumer wait if queue is full,producer wait if queue is empty),diff betn sleep(1000)&wait(1000) these r the main Q ask in huawei(2008)
can we overload main method?
What is the difference between jfc & wfc?
What is gc()?
Thanks A.jyotsna, Can u tell me differnce between abstract class and interface vikash
In which JDK version event-delegation model is introduced?