Results 1 to 3 of 3
  1. #1
    rummy is offline Member
    Join Date
    Jan 2010
    Rep Power

    Default Reg: Difference between assignments

    Hi all,
    Can anybody tell, What is the difference between the following 2 assignments?

    List<Insurance> insuranceList = new ArrayList<Insurance>();
    insuranceList = insuList;
    List<Insurance> insuranceList = insuList;

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Rep Power

    Default Re: Reg: Difference between assignments

    As with the other topic, what do you think the difference is?

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Reg: Difference between assignments

    The first line is a tinny type of declaration while the second one isn't a definition or declaration at all; the third line is nice and woody; nice.

    kind regards,

    Jos ;-)
    Build a wall around Donald Trump; I'll pay for it.

Similar Threads

  1. Looking for freelance assignments
    By damax in forum Jobs Wanted
    Replies: 2
    Last Post: 03-18-2011, 04:11 AM
  2. Beginner Assignments?
    By maknib in forum New To Java
    Replies: 0
    Last Post: 11-03-2010, 09:39 AM
  3. Java Array Assignments?
    By abimaran in forum New To Java
    Replies: 9
    Last Post: 11-04-2009, 06:18 PM
  4. Bad practices - Variable Assignments
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-03-2007, 10:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts