Re: Q: const?
- From: "Jakob Bieling" <argfhesNGtzkQBGarg@xxxxxxxxx>
- Date: Tue, 28 Jun 2005 07:09:09 +0200
"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.
Thank you! I will :)
--
jb
(reply address in rot13, unscramble first)
.
- References:
- Q: const?
- From: Jakob Bieling
- Re: Q: const?
- From: Eric Sosman
- Q: const?
- Prev by Date: query in Java
- Next by Date: Re: J2ME, MIDP1.0 - Text input in low level graphics api (Canvas)
- Previous by thread: Re: Q: const?
- Next by thread: can someone help me?
- Index(es):
Relevant Pages
|