Re: Q: const?
- From: "Joan" <Joan@xxxxxxxxxxxxxx>
- Date: Mon, 27 Jun 2005 12:40:57 -0500
"Eric Sosman" <eric.sosman@xxxxxxx> wrote in message
news:d9pbvd$kv3$1@xxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> Jakob Bieling wrote:
> > Hi,
> >
> > now this may seem like a very very basic question .. how do I define
> > constant in Java? In C++ you do 'static int const max_chars = 255;' ..
> > just in case I was not using the correct terminology to describe what I
> > am looking for.
>
> static final int max_chars = 255;
>
> There are semantic differences between `final' and
> `const'. Don't just make textual substitutions and
> assume you understand what they mean; read your Java
> textbook.
Good point, but for me it is either provide no help by just saying "it is
not supported so
take your little problem and go home" or
to provide some guidance as to what might be done instead should they
wish to investigate further.
>
> --
> Eric.Sosman@xxxxxxx
>
.
- Follow-Ups:
- Re: Q: const?
- From: Eric Sosman
- Re: Q: const?
- References:
- Q: const?
- From: Jakob Bieling
- Re: Q: const?
- From: Eric Sosman
- Q: const?
- Prev by Date: Re: Bug in String's split method???
- Next by Date: Re: Can I use db2 as database for OpenCms
- Previous by thread: Re: Q: const?
- Next by thread: Re: Q: const?
- Index(es):
Relevant Pages
|
Loading