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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is core java used for?

1127


Why is it important to initialize a variable?

998


What is the protected method modifier?

1049


Can we access instance variables within static methods ?

1100


Can a main method be overloaded?

1025


List some features of the abstract class.

1071


What is use of static method?

1057


Can you give names of Container classes?

2306


What is the difference between jfc & wfc?

1074


What is bitwise complement?

989


What is difference between class and object in java?

1079


What is meant by inheritance and what are its advantages?

1109


What does %4d mean in java?

1482


What is hash code collision?

1051


What is private static class in java?

1020