my dog learned polymorphism
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "local method inner class" Watch "local method inner class" New topic

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: 11777

Moving to the Java in General (beginners) forum.

What happened when you tried to compile this yourself?


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
I agree. Here's the link:
subject: local method inner class
It's not a secret anymore!