When should we prefer to use LinkedList

when should we prefer to use LinkedList ?

i have read some where related to java performance...stating that
http://www.java-performance-portal.org/modules.php?name=News&file=article&sid=8
The ArrayList is quite fast for accessing the elements in direct or random order, but the pure sequential use the LinkedList might be concerned as the right List for an application. The Vector provides snchronized access to its elements and is a slower than the ArrayList.
what does it means exactly -------
accessing the elements in direct or random order or sequential ??

Similar Messages

  • When should we prefer to use JSF

    we work on web based applications in servlets and jsp .
    this is my first message in this forums...
    since nowadays i come across hearing JSF..i am interested to clarfiy that weather it is used along with jsp
    or it would replace jsp....
    say
    index.jsp----->index.jsf

    In the project I am working on we have adopted the convention of using the .jsf extension for JSPs that contain JSF tags (mainly forms) and .jsp for regular JSPs. This helps to differentiate the pages that are displayed via the Faces servlet and the distinction can be useful when writing build scripts or using other automated tools.
    -- Keith

  • When should a DSO be used?

    When should a DSO be used?

    Hi surya,
    1.Mainly ODS is used to store detailed level of data.
    2. Getting teh data overwrtten for key fiedls instead of appending.
    3. Delta functionality because of the Change log table.
    4.All Datasources in ECC will not support for Delta. In such scenarios will go for DSO before cube, as DSO has Overwrite functionality.
    If datasource does not support Delta, we can do full update to DSO and from there we can do Delta Update to Cube. We can maintain change log of each record in DSO,as it has chanege log table.
    Here is the detail of Type of DSO in BI,
    DataStore object types:
    Standard DataStore object
    Data provided using a data transfer process
    SID values can be generated
    Data records with the same key are aggregated during activation
    Data is available for reporting after activation
    Write-optimized DataStore object
    Data provided using a data transfer process
    SID values cannot be generated
    Records with the same key are not aggregated
    Data is available for reporting immediately after it is loaded
    DataStore object for direct update
    Data provided using APIs
    SIDs cannot be generated
    Records with the same key are not aggregated
    And you can find more information / examples on this topic at:
    http://help.sap.com/saphelp_nw04s/helpdata/en/F9/45503C242B4A67E10000000A114084/content.htm

  • When should object casting be used?

    Hi,
    just wondering something. Saw there that returning objects from methods and downcasting the returned object is bad. When should casting be used? I currently have a program that has an object that contains a HashMap as a field. When I try retrieve objects from the HashMap using the relevant key, I have to cast them to what they were originally! Is this bad programming practice or is it the only way to do things?
    Thanks.
    // example of retrieving object from key
    dbDirectory = (String)dbInfo.get("dbDirectory");

    LeWalrus wrote:
    Hi,
    just wondering something. Saw there that returning objects from methods and downcasting the returned object is bad. When should casting be used? I currently have a program that has an object that contains a HashMap as a field. When I try retrieve objects from the HashMap using the relevant key, I have to cast them to what they were originally! Is this bad programming practice or is it the only way to do things?
    Thanks.
    // example of retrieving object from key
    dbDirectory = (String)dbInfo.get("dbDirectory");
    Before generics, this was a perfectly acceptable practice. Generally speaking, you use type-casting when the compiler is unable to ensure the type validity at compile-time, but you know it is correct, so you supply the extra information to the compiler so it knows everything is correct. Sometimes you need to circumvent the strong type-checking part of the language for flexibility, but this is something that should be used very sparingly.
    Now it would be better to use generics so that the compiler will know at compile time that the values in your map are Strings, instead of just Objects.

  • When should this file be used?

    Hi!
    I have left this forum for a long while, but now I am back.
    Sorry, may I start with a question?
    I don't know when we should we use Context Listeners?
    Please help if you could!

    Do you mean ServletContextListener? Look it up in the J2EE API documentation (javax.servlet.ServletContextListener).
    A ServletContextListener is called when the context of the servlet it belongs to is created or destroyed, i.e. when the web application is started up or shut down. If you need to initialise or cleanup things for your web application, you could do it with a ServletContextListener.

  • When should mapping.getAttribute() be used in Struts?

    and why do we need attribute in Action mapping when we already have form bean?

    // you posted in the FCPX-forum intentionally? //
    pheewwww - where to start?
    'film'is a year long study, very academic.
    plus, due to about a 100 years in use, film'language' is part of public concious - there are perhaps 'rules' or common agreements, but an artist will break rules - for a reason.
    In MY simple understanding: a cross-dissolve 'combines', a fade-to-black/-white seperates.
    but that has to been seen - as in any language - in context.
    a dissolve could mean 'meanwhile'.
    a fade has, imho, some 'stop'.
    or some 'and now to something completely different!"
    (Python did NOT dissolve nor fade http://youtu.be/sZa26_esLBE)

  • I have loaded the new Flash version into Firfox several times, but none of my sites recognize it when using Firefox. It works fine on all other browsers, but I would prefer to use Firfox if this problem can be solved.

    I use Firefox 4.0.1 on a Mac running Os X10.5.8. When I try to run Facebook or other sites that are heavy users of Flash I get a message that the new version of Flash must be loaded. I have loaded the latest version several times, but still get the message and these sites will not run on Firefox. The sites run fine with Safari or Chrome but I prefer to use Firefox if it can be made to run these sites. Thank you for any suggestions you have to help fix this problem.

    Apparently it's related to the Firefox plug in.
    This isn't exactly a solution but more of a way to avoid opening PDFs with Firefox's plug in.
    1. Highlight "Tools" from the Menu Bar in the top left of the screen (or click "Options" if using the Firefox Compact Menu)
    2. Select to "Options
    3. Select "Applications"
    4. Look for "Adobe Acrobat Document" under Content Type and to the right under Action select "Use Adobe Reader (default)" instead of the using Adobe Acrobat in Firefox
    5. Open a test PDF. It should open in it's own window now.
    Again, not a complete solution but something that'll at least let you scroll with PDFs open.
    More info here: http://forums.mozillazine.org/viewtopic.php?f=38&t=2171033

  • When should I use static variable and when should not? Java essential

    When should I use static variable and when should not? Java essential

    Static => same value for all instances of the class.
    Non-static => each instance can have its own value.
    Which you need in which circumstances is completely up to you.

  • What is the necessity of the AC power cord (with Mac Book Air)? When should it be used with the power adapter?

    what is the necessity of the AC power cord (with the Mac book Air)? when should it be used?

    Gary, you wouldn't believe some of the questions people ask on this site.
    Why are both cords necessary?
    They are not.
    Other than the two reasons dominic23 sited are there any other reasons to use the AC power cord rather than the power adapter cord alone?
    No.

  • When i put in a compact flash card iphoto automaticaly comes up to import my photos. I have to exit out of iphoto to use the editing softwear that i prefer to use every time. It is very annoying. How do i prevent this from happening?

    When i put in a compact flash card iphoto automaticaly comes up to import my photos. I have to exit out of iphoto to use the editing softwear that i prefer to use every time. It is very annoying. How do i prevent this from happening? I have looked in system prefereces....maybe i am over looking something, Thanks

    iPhoto Menu -> Preferences -> General -> Connecting Camera opens.... And select your preferred app.
    You can also make the same choice in the Image Capture (in your Applications Folder) and Aperture preferences.
    Regards
    TD

  • What is a Transient Variable and when should it be used

    Hello everyone,
    I just want to know the details regarding the transient variable and when should we use it. what is the significance of this variable?

    Transient variables are not written out when the class is serialized.
    http://java.sun.com/docs/books/tutorial/essential/io/providing.html

  • J1INCHLN when should I use error control mode checkbox

    Hi Experts,
    I am using t-code J1INCHLN for creating remittance Challan.
    But in ECC6, EHP 5 there is new functionality added & no documentation available for same.
    There is one field with tick option called Error Control Mode.so when should i use this functionality.
    Can anyone help on this?
    Thanks and Regards,
    Sameer

    HI
    Please refer the note no :  1567443
    Manual Control in J1INCHLN to change currency key/doc type
    "After this, if you will run J1INCHLN, you will get a checkbox at the end
    with 'Error Control Mode' which will be selected by default. If you want
    to change document type, currency or rate during processing, you should
    uncheck it else it will take you to the last screen."
    I hope note is allready available in your system hence you are getting above cheeck box.
    If you want to change the document type and currency or rate during posting then you need use the check box.
    Regards
    Madhu M

  • When should use request scope

    hi
    i don't know when i should use request scope, the example is use session scope always.
    Can anyone help me?
    thanks!

    SpiderFromMars wrote:
    > What are the best practices for using the variables
    scope versus using the
    > request scope when assigning variables.
    >
    > In other words, when should I use <cfset variables.x
    = 'barf'> and when
    > should I use <cfset request.x = 'barf'>?
    >
    The variables scope is only accessible in the current
    template. The
    request scope is accessible in the current template and any
    other
    template, such as a custom tag or include file, that is used
    to build
    the current request.
    I.E
    <!---index.cfm--->
    <cfset variable.x = "foo">
    <cfset request.x = "bar">
    <cfoutput>#variable.x##request.x#</cfoutput>
    <cf_myCustomTag>
    <!---myCustomTag.cfm--->
    <cfset variable.x = "bob">
    <cfoutput>#variable.x##request.x#</cfoutput>

  • Why or When should we use Execute Immediate in PLSQL??

    Hi Frnds,
    Long Ago i have received a interview question that ...
    How can U create a table in the PLSQL object(Function or procedure)?
    But the thing y should we use execute immediate?
    In which scenario we should we should use????????????
    Why or When should we use Execute Immediate in PLSQL????

    OR
    http://stackoverflow.com/questions/18375990/oracle-what-does-execute-immediate-means
    For DML you'd use it when running statements that you don't have available at compile time, e.g. if the column list is based on a selection from the user.
    In your case it's being used because DDL cannot be run as static SQL from within PL/SQL. Only certain query, DML and TCL commands are valid. Anything else has to be treated as dynamic.
    I'd say it's rare to need to use DDL from a PL/SQL block. TRUNCATE might be reasonable; if you find anything creating or dropping objects on the fly then that might be more of a concern as it can suggest a suboptimal data model.
    EXECUTE IMMEDIATE itself does not automatically commit; but if you execute DDL then that will behave the same as if you ran it outside PL/SQL, so it will commit in your case, yes.
    Incidentally, I'm not sure why your code is using an intermediate variable to hold the statement; that's useful if you want to display what it's going to run maybe, but you don't seem to be doing that. What you have could be done as:
    EXECUTE IMMEDIATE 'TRUNCATE TABLE BD_BIDS_EXT_DET';
    Thank you

  • When I repair disk permissions using Disk Utility and it says it's completed the task, I click on it again and it repairs more. This has been going on for hours now. Could there be that many wrong permissions? Should it get to "all repaired" eventually?

    When I repair disk permissions using Disk Utility and it says it's completed the task, I click on it again and it repairs more. This has been going on for hours now. Could there be that many wrong permissions? Should it get to "all repaired" eventually?

    It's normal behavior. You don't have to worry about. Most of what's listed is just a report of what the utility finds., not necessarily that there is omething wrong.
    If you want to find out more, read the link below, or see the More Like This links on this page.
    http://support.apple.com/kb/TS1448?viewlocale=en_US

Maybe you are looking for

  • Delete in database based on multiselect list values

    Hi, I have a selectlist in Apex and a function in the database to do some delete based on the selected value from the select list. FUNCTION delete_batch (v_batch VARCHAR2) RETURN VARCHAR2 IS BEGIN IF v_batch like 'M%' THEN    RETURN ('A monthrun cann

  • What converter do I need to download for converting CR2 files into DNG?

    Used EOS Rebel T1i in camera raw setting. The Canon Camera Raw images will not open up because camera is not supported in Photoshop CS5 Extended, version 12.0.4 X64. Also tried to open by changing the the setting to Photoshop Raw but got a "Specified

  • MDI form feature in JDeveloper 10.1.3

    It's nice to see that you provide MDI form feature now for JClient in JDeveloper 10.1.3. Actually, you are having an even more powerful rich client framework that is quite more useful than MDI, witch is already available in your inventory. That is th

  • Infotype 0008 in Recruitment

    Hi Experts, I have a problem with the Infotype 0008 in Recruitment. When I try to create a new record through transactions PB30 or PB40, I meet the following error: No entry in table T510 for the key 99    2B3     Message no. RP100 I tried to customi

  • How to maintain calibration process in qm

    sir, i am new in qm module n and i m going to implement for qm module. so pl tell how i maintain qm configuration data n calibration process of qm.