Re: Q: const?




"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
>


.



Relevant Pages

  • Re: Q: const?
    ... > Jakob Bieling wrote: ... >> now this may seem like a very very basic question .. ... (reply address in rot13, unscramble first) ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: Q: const?
    ... Jakob Bieling wrote: ... > now this may seem like a very very basic question .. ... textbook. ... Prev by Date: ...
    (comp.lang.java.programmer)
  • Re: basic question about metric space... is a distance metric continuous function?
    ... On Tue, 6 Dec 2005, comtech wrote: ... > I have a basic question about metric space... ... As M has the topology generated by the open balls, ... Prev by Date: ...
    (sci.math)
  • Automatic date updates
    ... I don't use Word all that much and this may be a basic question. ... Excel has an =Today function that does this, ... have an equivalent command. ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • Automatic date updates
    ... I don't use Word all that much and this may be a basic question. ... Excel has an =Today function that does this, ... have an equivalent command. ... Prev by Date: ...
    (microsoft.public.word.docmanagement)

Loading