Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #455
| From | Stanimir Stamenkov <s7an10@netscape.net> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | [OT] Re: static final int, but constructor with (final int) arguments |
| Date | 2011-03-30 08:24 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <imuepj$muj$1@dont-email.me> (permalink) |
| References | <87sju7w4o5.fsf@merciadriluca-station.MERCIADRILUCA> <878vvzlzeo.fsf@merciadriluca-station.MERCIADRILUCA> <imrs3r$lpn$1@news.albasani.net> <87bp0tv945.fsf@merciadriluca-station.MERCIADRILUCA> |
Wed, 30 Mar 2011 00:45:46 +0200, /Merciadri Luca/: > Lew writes: > >> Nope. Completely not even close. 'c' is static, that means it is >> attached to the class, not an object. It can only receive a value >> once because it's 'final'. That once MUST happen during class >> initialization, because it's 'final'. (That's one of the reasons "I'm >> sure it won't change" is wrong.) > As you point it, my interpretation of the final keyword was erroneous. >> Class initialization completes before you create any instance. So 'c' >> already MUST have its value by then. >> (...) Merciadri Luca, please use blank lines* to separate your reply from the quoted text. It gets difficult to spot and read your replies in-between. Thanks. * Something like <http://www.oracle.com/technetwork/java/codeconventions-141388.html#487>: "Blank lines improve readability...". -- Stanimir
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: static final int, but constructor with (final int) arguments Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-03-30 00:45 +0200
Re: static final int, but constructor with (final int) arguments Lew <noone@lewscanon.com> - 2011-03-29 19:03 -0400
Re: static final int, but constructor with (final int) arguments Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-03-30 19:05 +0200
[OT] Re: static final int, but constructor with (final int) arguments Stanimir Stamenkov <s7an10@netscape.net> - 2011-03-30 08:24 +0300
Re: [OT] Re: static final int, but constructor with (final int) arguments Merciadri Luca <Luca.Merciadri@student.ulg.ac.be> - 2011-03-30 19:05 +0200
csiph-web