Re: did the multiplication rules change!?



shakah <shakahshakah@xxxxxxxxx> wrote:
> mark.olive...@xxxxxxxxx wrote:
> > Thanks! That seems to do the trick. So, basically, those numbers are
> > being multiplied as ints (as opposed to the longs I was expecting)? I
> > assume the Ls tell the JVM to treat them as longs... is that accurate?
> >
> > Thanks again for the help.
>
> You have it right as far as I'm concerned ("bare" numbers are indeed
> ints), though I'm sure some Usenet/Java zealot will seize this
> opportunity to explain why this simplistic view isn't correct.

No, you're exactly right.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
.



Relevant Pages

  • Re: Integer / Long comparison
    ... Mike Schilling wrote: ... unit test should check that it is in range, ... I'm also wondering why Longs and Integers insread of longs and ints. ...
    (comp.lang.java.programmer)
  • Re: did the multiplication rules change!?
    ... >> being multiplied as ints (as opposed to the longs I was expecting)? ... >> assume the Ls tell the JVM to treat them as longs... ... though I'm sure some Usenet/Java zealot will seize this ...
    (comp.lang.java.programmer)
  • Re: What is this?
    ... Hence everything is 4-bytes: chars, ints, longs, floats... ...
    (comp.lang.c)
  • Re: Integer / Long comparison
    ... Arne Vajhøj wrote: ... unit test should check that it is in range, ... I'm also wondering why Longs and Integers insread of longs and ints. ...
    (comp.lang.java.programmer)
  • Re: did the multiplication rules change!?
    ... That seems to do the trick. ... > being multiplied as ints? ... > assume the Ls tell the JVM to treat them as longs... ... Prev by Date: ...
    (comp.lang.java.programmer)