Article View: borland.public.jbuilder.java.language
Article #17668Re: Why when compile one .java the compiler generate three .class of the same Class.
From: Steve Horsley
Date: Fri, 16 Oct 1998 00:00
Date: Fri, 16 Oct 1998 00:00
14 lines
1272 bytes
1272 bytes
Martin Fuente wrote: > > Hello, I don't understand why when i compile a small applet whitout any > inner class, the compiler generate more than one .class. And if i delete one > of this .class, i can;t run the applet. > Ej. I have only one class call Test.java > When i compile the compiler generate Test.class, Test$1.class, Test$2.class > Why? If i delete Test$1.class, the program not work. > Please if you can help me, send me a mail. > Thanks. Somewhere in test.java, two anonymous classes are defined. Anonymous classes are classes that don't even have a class name, so they get given numbers (1,2...) by the compiler.
Technical Details
Message-ID:
<36271CF1.55E5@cwcom.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<706iha$pvb6@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e3f6db5b1bc8dcb7 X-Google-Attributes: gidf74b3,public From: Steve Horsley <steve.horsley@cwcom.co.uk> Subject: Re: Why when compile one .java the compiler generate three .class of the same Class. Date: 1998/10/16 Message-ID: <36271CF1.55E5@cwcom.co.uk> X-Deja-AN: 401713962 Content-Transfer-Encoding: 7bit References: <706iha$pvb6@forums.borland.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Reply-To: steve.horsley@cwcom.co.uk Newsgroups: borland.public.jbuilder.java.language