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 formatted output in java?
What about method local inner classes or local inner classes in java?
How does access modifiers work?
Which containers use a FlowLayout as their default layout?
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?
where the static methods will live ,on stack ? can you explain brefly
Difference between the paint() and repaint() methods?
What does bitwise or mean?
What does singleton class mean?
What is the function of character?
What is the purpose of void class?
There are 2 different ways to create an object. a)By using keyword "new" b)By using Class.forName ("className").newInstance(); What is the difference between these 2 methods.