When you say "Java does not" you really mean "javac does not".  javac is merely 
translating the source program form into the equivalent Java byte codes.  It is up to 
the JVM implementation (or JIT) to do this optimization.  The descriptions of many of 
the JIT implementations claim that they do it.

-AndyJ
> 
> From: "Paul Franz" <[EMAIL PROTECTED]>
> Subject: [jdjlist] Re: Shift Operator: What is it good for?
> 
> But according to JDJ currently Java does not.
> 
> Paul Franz
> ----- Original Message -----
> From: "Blair Wyman" <[EMAIL PROTECTED]>
> Subject: [jdjlist] Re: Shift Operator: What is it good for?
> 
> 
> >
> > On Thursday, 09/05/2002 at 02:40 AST, "Paul Franz" <[EMAIL PROTECTED]>
> > wrote:
> > > Dividing by a multiple of 2. This is faster than using the /  operator.
> >
> > Yup.  Good for multiplying, also. (though / is often more expensive than
> > *).
> >
> > FWIW, optimizing compilers regularly recognize and exploit this
> > opportunity.
> >
> > -blair
> >
> > Blair Wyman -- iSeries JVM -- (507) 253-2891



To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to