Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Can you have an inner class inside a method and what
variables can you access?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the disadvantages of using inner classes?

1280


What is the instance of an object?

1270


What does this () mean in constructor chaining concept?

1208


What is the purpose of stub and skeleton?

1079


Can static method access instance variables ?

1187


What is the right data type to represent a price in java?

1022


What is pre increment and post increment in java?

1035


What about abstract classes in java?

1109


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

1033


What is final int?

1101


What are java packages?

1088


Define inheritance?

1075


What happens if I remove static from main method?

1055


How do you sort in ascending order in java?

916


What is externalizable?

1117