advantages of shorthand operator

Discussion in 'Java' started by asit, Jun 29, 2008.

  1. asit

    asit Guest

    shorthand assignment operator provides two advantages
    1>needs less typing
    2>java compiler handles in an efficient way

    What is the efficient way ???
    asit, Jun 29, 2008
    #1
    1. Advertising

  2. In article
    <>,
    asit <> wrote:

    > shorthand assignment operator provides two advantages
    > 1>needs less typing
    > 2>java compiler handles in an efficient way
    >
    > What is the efficient way ???


    They are called Compound Assignment Operators, and you don't have to
    read very far in the relevant section to learn what efficiency they
    afford:

    <http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html>

    Now that you know what they're called, the relevant section will be easy
    to find:)

    --
    John B. Matthews
    trashgod at gmail dot com
    home dot woh dot rr dot com slash jbmatthews
    John B. Matthews, Jun 29, 2008
    #2
    1. Advertising

  3. asit

    Roedy Green Guest

    On Sun, 29 Jun 2008 07:00:48 -0700 (PDT), asit <>
    wrote, quoted or indirectly quoted someone who said :

    >shorthand assignment operator provides two advantages
    >1>needs less typing
    >2>java compiler handles in an efficient way
    >
    >What is the efficient way ???


    see http://mindprod.com/jgloss/mccarthyandoperator.html
    --

    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com
    Roedy Green, Jun 29, 2008
    #3
  4. asit

    Arne Vajhøj Guest

    Roedy Green wrote:
    > On Sun, 29 Jun 2008 07:00:48 -0700 (PDT), asit <>
    > wrote, quoted or indirectly quoted someone who said :
    >> shorthand assignment operator provides two advantages
    >> 1>needs less typing
    >> 2>java compiler handles in an efficient way
    >>
    >> What is the efficient way ???

    >
    > see http://mindprod.com/jgloss/mccarthyandoperator.html


    shorthand assignment != short circuit logical operator

    Arne
    Arne Vajhøj, Jun 29, 2008
    #4
  5. asit

    Roedy Green Guest

    Roedy Green, Jul 3, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. foreach shorthand

    , Mar 25, 2005, in forum: C++
    Replies:
    2
    Views:
    592
    =?iso-8859-1?Q?Ali_=C7ehreli?=
    Mar 25, 2005
  2. David W
    Replies:
    0
    Views:
    886
    David W
    Jan 17, 2007
  3. Foxpointe

    Shorthand for namespaces

    Foxpointe, Oct 31, 2006, in forum: XML
    Replies:
    4
    Views:
    437
    Foxpointe
    Oct 31, 2006
  4. Replies:
    7
    Views:
    406
  5. Archos

    Shorthand operator for AND, NOT

    Archos, Dec 19, 2011, in forum: Javascript
    Replies:
    5
    Views:
    579
    Archos
    Dec 22, 2011
Loading...

Share This Page