Whats the difference between arrayCollection = null and arrayCollection.removeAll()?

Whats the difference between arrayCollection = null and
arrayCollection.removeAll()?

In arrayCollection = null; statement you're setting this
reference to null and potentially making it available for garbage
collection. I say 'this reference' and potentially because, as you
may know, there might be other references to this array collection
object that won't be affected by this statement and hence it won't
be GC'ed.
arrayCollection.removeAll() says that I want to empty this
array collection for all the reference that we pointing to it. That
is, remove all the objects from the collection -- and of course
make them 'potentially' available for the GC -- the size of the
array collection would be reduced down to zero and all the
references would be pointing to a valid but empty collection.
Hope this helps.
ATTA

Similar Messages

  • Whats the difference between an INTERFACE and a CLASS?

    Whats the difference between an INTERFACE and a CLASS?
    Please help.
    Thanx.

    http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A31&qt=Difference+between+interface+and+class

  • Hi I have the old photo shop elements 10 on my computer and want to update and was wondering what the differences between photoshop, lightroom and photoshop elements are? Also when I upgrade does it have to be with a monthly membership or can I just purch

    Hi I have the old photo shop elements 10 on my computer and want to update and was wondering what the differences between photoshop, lightroom and photoshop elements are?
    Also when I upgrade does it have to be with a monthly membership or can I just purchase the product out right like you use to be able?

    You cannot "update" from what you have to any of the applications you mention. It will have to be a straight purchase or subscription at full price.
    Photoshop is a professional level application that makes no apologies for its very long and steep learning curve.
    Lightroom is all about volume, and very light editing.
    The Photoshop Elements forum is at:
    https://forums.adobe.com/community/photoshop_elements/content
    Remember, you are not addressing Adobe here in the user forums.  You are requesting help from volunteers users just like you who give their time free of charge. No one has any obligation to answer your questions.
    I do not know where there is such a comparison table as you seek, but someone else might, or you can google.

  • What the difference between Canvas,View and Form

    hi
    What the difference between canvas and view and form
    why asking becoz i find form builder reference
    built in like FIND_CANVAS
    FIND_VIEW
    FIND_FORM
    What the difference between these 3
    thanks in advance
    prasanth a.s.

    Asuri - with all these questions you are posting it looks like you are sitting and exam or an interview. The best advice I can give you is the skill of being able to research answers yourself.
    I would encourage you to get familiar with the online help and the various documents on OTN - this will give you knowledge; not just answers.
    Regards
    Grant Ronald
    Forms Product Management

  • Backup SQL Agent Jobs - whats the difference between "create to" and "drop to" using "script job as"?

    Hi,
    This should be straightforward, but being new to SQL Server 2008, can someone advise the difference between "create to" and "drop to" using "script job as"?
    Thanks
    IT Support/Everything

    hello,
    "CREATE TO" create a CREATE statement for the job, e.g. to execute this script on a other server to create the same job there.
    "DROP TO" means you get a script to delete an existing job.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • HT204074 whats the difference between managed devices and authorized computers

    What is the difference between the 10 managed devices and 5 authorized machines? What cant I do on the Unauthorized device that is a managed device?

    This is my understanding of it.
    Authorisation only applies to computers, not devices (iPads, iPhones, iPod Touches) - it allows you to play/use your iTunes downloads on that computer e.g. playing music, films etc., and to sync that content to a device. Up to 5 computers can be authorised at a time.
    Having a device associated (or managed) with your account, which can be up to 10 computers and devices (and as each associated computer must also be authorised to your account it means that at most 5 of the 10 can be computers) means that you've used iTunes Match, automatic downloads and/or re-downloaded past purchases on them. Once a device or computer is associated to an account it will be tied to that account for 90 days. You can still sync content to a device without it being on the associated list.
    A managed computer must also be an authorised computer, so you can't have one that is unauthorised but associated.

  • Whats the difference between wifi sync and icloud?

    Good afternoon...am a little confused about syncing over wifi with itunes and wirelessly with icloud.  Right now the computer I sync my devices with is an older macbook that can't be updated to Lion.  I am confused though by wifi sync ability...does my macbook have to be up and running while my ios devices are powered to sync or will the devices sync anywhere to the icloud?   Since my macbook can't update to Lion will I still be able to take advantage of this icloud goodness?  My macbook is not my main computer but it has all of my itunes content and playlists.  Hope this made sense.

    My first question is this: Have your devices all been updated to iOS 5? Assuming they were running 4, then updated to 5, all your data should be on the device. From here, if you were to sync everything to the cloud, all your data will be in the cloud. It will take all the info from your devices and sync it to the cloud. However, make sure on each device you choose what you want to sync, because it will pretty much make everything the same accross all your devices. Obviously your classic isn't going to be included, so you will still need to sync that, but with the phone and the ipad, you will need to decide what you want to sync between the two. I don't own two separate devices, so I don't know exactly what the conduct between the two is, but be carefull when syncing them to the cloud.

  • Whats the differences between Master collection and single each?

    Why ADOBE Master Collection is much cheaper than each individual program altogether ?what's the difference?for exp,Master collection is sold $2599,and the photoshop cs5 extend $999,if it were sold seperately,we should afford a lot more money.so i doubt that is there any difference between them?

    Functionally there's no difference. The difference is in the licensing.
    The big UPside with the Master Collection is that you get a lot of software for one low upfront price compared to buying each software component individually.
    The big DOWNside is that when a new version of Adobe software is released, you must upgrade to a suite, even if you only want to upgrade one software component such as Photoshop.
    e.g.
    You can upgrade Master Collection CS4 to any CS5 Suite.
    You cannot upgrade an individual component (e.g. Photoshop CS4) in Master Collection CS4 to standalone Photoshop CS5.
    Looking at it a different way, buying Master Collection (or any Suite) means you forfeit some flexibility in future upgrade options (Suites are your only options) and you're placing yourself on an expensive path for future upgrades (Suites only).

  • Whats the difference between producing output and returning a value?

    I've just started learning Java. I am having difficulty understanding what it means to "return a value".
    If a method has an argument, then whenever this method is called the variable named will be used for output.
    If you create a method to return a new value rather than display it, you would exchange the 'void' for 'double' e.g. public static double predictRaise(double moneyAmount). My book states that a return statement causes a value to be sent from a called method back to the calling method. Their example is not clear to me. Here is what they show for when only 'output' is produced:
    <code>
    Public static void predictRaiseUsingRate (double money, double rate)// 2 arguments
              double newAmount;
              newAmount = money * (1 + rate);
              System.out.println (?With raise, new salary is ? + newAmount);
    </code>
    And their example of a returned value:
    <code>
    public static double predictRaise(double moneyAmount)
              double newAmount;     
              newAmount = moneyAmount * 1.10;
              return newAmount;
    </code>
    Their explanation: "This return statement causes a value to be sent from a called method back to the calling method. The value stored in newAmount is      sent back to any method that calls predictRaise() method."
    For some reason this is just not sinking in. Does anyone have a better example/explanation? I could not find anything with a better explanation in archives.
    Are they tring to tell me: "if the original method declares an argument that is declared as 257 in the method call, that when that same method is called again, it will always be 257? But if you do a return statement, any changes in the return statement will now always be used in all methods calling that method?
    Thanks for your help.
    Gizelle

    To use an older and possibly more easily understood terminology. Methods can either be "functions" almost in the mathematical sense or they can be "procedures" in the sense of a process.
    A function is a mapping between a "domain", its arguments, and a "range", its result. An example of a function in mathematics is cosine, which takes an argument in degrees or radians and returns a result between -1 and 1. In java functions are just methods that declare a result type. eg. public int foo(int arg).
    A procedure is a program that doesn't return any result, it's not something that fits well into mathematics, but it occurs all the time in real life. For example, walking the dog does not map something from a domain to a range, but it may have some side effects, which is why I always carry a plastic bag with me. Procedures in java are methods that are declared as "void". eg. public void foo(int arg).
    All the well known arithmetic operations are functions, they take one or two arguments in the domain of numbers and return a result in the same set. Eg, x = a + b, the operator + is a function that takes two numbers, calculates the arithmetic sum of them and returns a result. Functions are very handy since you can string them together, eg. z = a+foo(b)*max(c+d). This doesn't work with procedures.
    Procedures are often used for much longer and more involved operations, there is no immediate result, but a lot of things may occur while they run. Data may be printed on a screen or paper, a database or file may get updated and email messages might get send. But no other expession is waiting for a resulting value so it can carry on. Procedures may also happen asynchonously, ie. outside the timeframe of their caller, see threads. Functions cannot do this, or if they do, they turn into procedures by throwing away their result. For example, you can schedule a procedure to send an email to your friends every Friday inviting them to go out for drinks, but you don't wait around for the result.
    In a way functions are a bit like phone calls, you wait for a response, procedures are more like snail mail, you send it off and check on what happened later.
    I hope this helps.

  • Whats the difference between high-density and low-density ram?

    I bought what I thought was supposed to be a cheap 256 mb chip (pc100 or 133) but the g4 400 read only 128mb, The fellow in the store that sold it flipped out when I told him I had a Mac and said something about high density and low-density.Another guy in the store described it as being one sided and two sided.
    I don't know what my machine needs. I got my money back but he would'nt let me exchange the chip for another, me thinking it was simply mislabeled.

    The QuickSilvers use PC-133 SDRAM and are compatible with high-density memory chips (256 Megabit), so that 16-chip 512 MB and 8-chip 256 MB non-ECC DIMMs are supported. A low density, 16-chip (128 Megabit) 256 MB DIMM is also supported.

  • Whats the difference between camera roll and photo stream?

    Sometimes my iPhone photos come across to my iPad and iMac in photostream sometimes individual ones don't seem to.
    If I've taken a photo on the phone its in my camera roll. Sometimes its in my photostream as well, sometimes not.
    Confused!
    Frustrated when I want to use a photo off my phone on my iMac (say attached to an email) and photostream there doesn't have it.
    iPhoto no longer has a photostream folder at left but it has an iCloud one. Is that the same thing and Apple (as usual) are just trying to confuse me?
    Help?
    TIA
    Davepez

    That does not involve iPhtoo for the Mac - this is the iPhoto for Mac forum
    try this article - http://www.apple.com/support/icloud/photo-stream/ - or ask in the IOS forum for your device or software
    LN

  • Whats the difference between a JFrame and a jsp?

    I recently came across "JFrame" from an online tutorial, the create .java. I thought jsp's were used for building web interfaces not .java. Can I use JFrames to design forms for a web site?
    Okay, I'm new to this so humor me.
    Thaks-

    JFrames are typically used with applications.
    From the API:
    An extended version of java.awt.Frame that adds support for the JFC/Swing component architecture. You can find task-oriented documentation about using JFrame in The Java Tutorial, in the section How to Make Frames.
    A JSP page is a web page interperted by a http server and sent to a client browser.
    JJ

  • Whats the difference between a Apple and IBM

    Is Apple IBM, and vice versa? Is IBM still around? I was always under the impression that IBM became Apple or the Apple bought IBM. Also does Apple make a computer called Macintosh anymore? Or was it shorted to Mac?

    Apple has always made Macintosh (shortened to Mac) computers & has never been associated with IBM. In addition to computers and software, Apple has designed & sells other electronic items like the iPod, iPhone & soon to be released, the iPad. IBM's computer business was sold to a China company.
    Read about Apple Inc here http://en.wikipedia.org/wiki/Apple_Inc.
     Cheers, Tom

  • Whats the difference between Rich Client and Desktop Client? (BO XI 3.2)

    Hello,
    maybe someone has a matrix oder something like that?
    Thanks for helping...
    Biegel

    There are a number of reasons for using Web Intelligence Rich Client to
    work with WID documents:
    u2022 You want to work with Web Intelligence documents but you are unable
    to connect to a CMS (while traveling, for example).
    u2022 You want to improve calculation performance: Web Intelligence Rich
    Client performs calculations locally, rather than on the server, and local
    calculations can perform better than server calculations.
    u2022 You want to work with Web Intelligence documents without installing a
    CMS or application server.
    Deski
    1. VB Macro
    2. Slice and Dice functionality
    3. Database Ranking is not there
    4. Column can be conditionally hidden
    5. Free-hand sql, SP can be used as data providers
    6. No time out error.
    7. Needs to be installed on all the desktop machines
    Gracias...!!

  • Whats the difference between Data Synchronization and Data Replication with a truncated Target?

    Hi Brian: Sorry, the Data Replication task wizard does not support ODBC sources. I don't think there's an easy way to truncate the target tables using a Data Synchronization task, but you should be able to read data from an ODBC source and write it to your target. Cheers,Josh

    I would like to replicate data using an ODBC connection as the source, but the connection does not show up in Data Replication (only Data Sync).  I want to truncate and load everything from the source--can I just use Data Sync for this process? Thanks!!

Maybe you are looking for