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 java thread dump, how can we get java thread dump of a program?

0 Answers  


Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?

7 Answers   Ericsson,


wahts is mean by thread?

22 Answers   HCL, TCS,


What are the Main functions of Java?

0 Answers   Akamai Technologies,


Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens?

1 Answers   Flextronics,


What are the common problems you have faced while implementing Java?

1 Answers   IBM,


What do you understand by synchronization?

0 Answers  


What is a method header?

0 Answers  


How multi processing is achieved in JAVA?

5 Answers   BMC,


What are the advantages of compiled language?

0 Answers  


What's the difference between an abstract class and interface in java?

0 Answers  


Difference between Preemptive scheduling vs. Time slicing?

0 Answers  


Categories