Hello,
What is the use of making a local variable inside a method final , which has an inner class in it.
How can a method local class access a local variable marked final.If we don't make the...
Type: Posts; User: Swapneel
Hello,
What is the use of making a local variable inside a method final , which has an inner class in it.
How can a method local class access a local variable marked final.If we don't make the...
Hello,
Your code is also using inner class.I wan't to know why can't we separate the two classes as independent and with the help of getter methods of Outer Inner class , Inner class can access it's...
class Outer
{
private int temp=9;
class Inner
{
void getData()
{
System.out.println("Value of temp is"+temp);
}
}