This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes local method inner class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "local method inner class" Watch "local method inner class" New topic
Author

local method inner class

Madhawi Maurya
Ranch Hand

Joined: Aug 22, 2007
Posts: 42
I have a outer class in which there are two methods. Both methods has a inner class which have the same name. What will happen when we compile this outer class? :roll:


SCJP1.5 with 90%
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11404
    
  81

Moving to the Java in General (beginners) forum.

What happened when you tried to compile this yourself?

Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: local method inner class
 
Similar Threads
EVERY THING ON INNER CLASSES
THREAD LOCKS
inner classes
Inner class passing reference of outer class
Inner Class