Search:

Type: Posts; User: Swapneel

Search: Search took 0.24 seconds.

  1. Replies
    1
    Views
    214

    Method local Inner class

    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...
  2. Replies
    6
    Views
    229

    Re: Inner Class Use

    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...
  3. Replies
    6
    Views
    229

    Inner Class Use

    class Outer
    {
    private int temp=9;
    class Inner
    {
    void getData()
    {
    System.out.println("Value of temp is"+temp);
    }
    }
Results 1 to 3 of 3