Article View: borland.public.jbuilder.java.language
Article #14769Re: Your Openion needed.
From: Hakan UNLU
Date: Mon, 09 Aug 1999 00:00
Date: Mon, 09 Aug 1999 00:00
47 lines
1745 bytes
1745 bytes
No problem.
Quite standard procedure.
In you program there are no local variables so memory de-allocation is not
needed. But even if there are local variables their space is freed when the
function exits.
Just be carefull when you create objects in functions using "new". They may
have longer life spans than the function itself even if they are used only
in this function. But you do not need to worry about freeing their space.
Java does it automatically.
--
Hakan UNLU
Hitit Computer Services
-------------------------------------------------------------
Visit my virtual bookstore at
http://surf.to/hakan-books
------------------------------------------------------------
Dillan Fernando <dillan@geocities.com> wrote in message
news:7oksdc$5pa2@forums.borland.com...
> Hi,
>
> I usually use the following method to exit for loops
>
> public boolean dummy()
> { for(a=0;a<x;a++)
> { if (a==b) return true
> }
> return false;
> }
>
> I just want to know whether this a good practice. I have never run into
any
> problems, Will there be a mem de-allocation problem or anythink like that
?.
>
>
> Thanks in Advance
>
> Kind Regards
>
> Dillan
>
>
>
>
Technical Details
Message-ID:
<7olnrm$6d023@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7oksdc$5pa2@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,ead9ef4a7993b06e X-Google-Attributes: gidf74b3,public From: "Hakan UNLU" <hunlu@yahoo.com> Subject: Re: Your Openion needed. Date: 1999/08/09 Message-ID: <7olnrm$6d023@forums.borland.com> X-Deja-AN: 510487327 References: <7oksdc$5pa2@forums.borland.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.language