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?

Answers were Sorted based on User's Feedback



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

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

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

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

Post New Answer

More Core Java Interview Questions

What is the life cycle of Thread ?

12 Answers   HCL, Varnar Softech,


How will you override default serialization mechanism in java

2 Answers  


What is JVM ?

4 Answers   Phantom Technologies, TCS,


Write a program to calculate factorial in java?

0 Answers  


What is externalizable?

0 Answers  


Why cant we define System.out.println() inside a class directly?

5 Answers  


Is it necessary that each try block must be followed by a catch block?

0 Answers  


Name the types of 'priority'?

2 Answers  


What does compareto () do in java?

0 Answers  


What is the purpose of the file class in java programming?

0 Answers  


Is it possible for a yielded thread to get chance for its execution again?

0 Answers  


Why multiple inheritance is not supported by java?

0 Answers  


Categories