What is the use of destroy() when there is an automatic garbage collector

what is the use of destroy() when there is an automatic garbage collector

what is the use of destroy() when there is an
automatic garbage collectorI don't recognize that particular method but some classes have a so called explicit termination method. Usually classes which allocate OS resources have such a method. It has to be called before the object is released for GC so the OS resourses can be returned properly.
Or do you mean finailize()? See "finalizers are not your friend" here,
http://www-128.ibm.com/developerworks/java/library/j-jtp01274.html

Similar Messages

  • What's the purpose of Launchpad when there is an "applications" folder in the Dock?

    What's the purpose of Launchpad when there is an "applications" folder in the Dock?

    I simply never use it - but then again I haven't used the Dock for anything either sice slighty before the stone age. Many years ago I discovered LaunchBar ( http://www.obdev.at/products/launchbar/index.html ) which does all my launching and a whole lot more too, for app switching I use Liteswitch X ( http://www.proteron.com/ ) which adds more bang to the Command-tab switcher, including Force Quit and along with Default Folder ( http://stclairsoft.com/DefaultFolderX/ ) they are literally the first things I install on a new Mac.
    But they are not for everybody. I drive by keyboard, some folks are happier using the mouse. Choice is the point.
    Regards
    TD

  • What is the use of jsp when compare with Struts

    what is the use of jsp when compare with Struts

    JSP Tag Libraries are great for reusable content formatting and ligic.
    For example, let's say you have this Shopping site. Each item you sell is stored in a database, and you get them out depending on Catagories, creating a List of ItemBeans. You allways want to display the items with a catagory header, then a <table> with the item number, the description and the price.
    Instead of creating a bunch of logic in the JSP that does this, you can pass it on to a Tag that might look like this in your JSP:
    <shopping:itemTable catagory="${selectedCatagory}" items="${itemsForCatagory}" />
    This would make the JSP easier to read and work with.
    The actual uses are incredible. Have you used the <jsp:useBean ...> tag? That is an example of a use of the Custom Tag Libraries.
    Furthermore, look into JSTL (JSP Standard Tag Libraries). They are a collection of tags (API by Sun, coding by Apache) used to do many of the standard actions you might want/need to do in JSPs, like a conditional tag (c:if only do something if the test is true), multiple-conditional tags (c:choos c:when c:otherwise) like an if [else if] else construct. Looping through an array or Collection (c:forEach), storeing values in scopes (c:set) formating numbers and dates (the fmt library), xml transformations (xml library), and lots of other things that you could replace scriptlet code with.

  • What is the use of Host in Technical system

    Hi experts,
    While creating Technical sytem what is the use of creating Host.
    while creating Business System we create Logical System.When we are creating for Sap system then there we give client logical sytem name,but while creating for third party systems what is the use of it.....
    while creating Technical system and Business system v have 4 radio buttons
    Web As ABAP
    Web as Java
    Standalone
    thirdParty
    what is the use of Standalone when and in which senario we use this Standalone.
    Note:valuable anser will be rewarded.
    Regards,
    Phani

    Hi
    1. Third Party: Can be any Tech System. For example you want to send a xml message from a file adapter residing on your PC. You can define your PC as a 3rd party Tech/Business System.
    2. StandAlone Java: WEBAS640 has got Basis and Java Stacks. If you installed <b>only the standalone java Stack on a server</b>, then you define a standalone java tech system.
    Regards
    krishna

  • What is the use of properites file

    what is the use of properites file

    Hi there
    Usally a program has some variables that the user can set.
    These variables are then saved in a file.
    The Property class can read these files and search for special keys in that file for example
    Lets say that the program that you have developed
    can change its background color.
    the user sets the color to pink
    and the program stores the valu in the property file.
    then the property file entry could look like this
    color = pink
    On windows systems this is verry much like the ini files if you are familiar with these. (I think allmost any OS has something similair)
    In JDK 1.4 there is a new system for dealing with property files. This new class is storing the attributes directly to the register on the os
    /Markus

  • What is the use of # in DAL script ?

    Hi Guys,
    In DAL script what is the use of # ? When I am not putting # the keywords are looking blue (Which I think its correct) but in the Help it mentioned with #. If I am putting # in the code then it became grey colour. Which one is the correct ?
    Thanks,
    Bikas

    Hi Bikas,
    # is used to validate numeric values. Please find the sample below.
    Scenario 1_:
    X = Getdata("!/xyz 1,10")
    X may take alphanueric values
    Scenario 2_:
    #X = Getdata("!/xyz 1,10")
    #X will only take numeric values.
    Based on your requirement you can use # accordingly.
    Please let me know if any information required.
    Thanks,
    Sravanthi M.

  • Firefox keeps freezing and using 50% cpu and memory usage shoots up most of the time it's when there's an auto update of anything addon, plugin or ff!

    Firefox keeps freezing and using 50% cpu and memory usage shoots up real fast and carries on going till it uses up all there is left. Most of the time it's when there's an auto update of anything addon, plugin or ff but not just neccessarily then! I find out it's happened when there's been an update after i restart and an extra webpage comes up with the particular addon/plugin/ff update. I have to restart most of time because nothing sorts it out. I'm using windows xp with the latest update of ff 13.0.1 it's not this version because it's been happening for a while. And it never started when i added a particular addon or plugin or when i added a new app to my pc either. Any idea as to what this may be or how i'd sort it out?
    Cheers

    Maybe disable hardware acceleration? This article should help: https://support.mozilla.org/en-US/kb/firefox-uses-too-much-memory-ram

  • What is the use of delta in BW side when we have delta in R/3

    Hi,
    what is the use of delta in BW side when we are already using delta in R/3 side?
    Like,
    Generic extraction:-
    with different delta extractions (Time stamp, Calendar day, Numeric pointer).
    Lo-Cockpit extraction with change log method.
    Co/Pa extraction with time stamp method.
    So from this delta activation first time full data will be loaded and after that only changed data will be loaded because of these deltas in R/3 side.
    So now my question is what is the exact use of delta in BW side with ODS/DSO because data already reached to BW with delta activation right.
    Can you please explain me what is the exact use of BW delta?
    Thanks in advance.
    Points to be added.
    Regards,
    Shyam.

    The purpose of Delta Queue is same in R/3 and BW.
    In BW, Delta Queue is used to capture changes made to objects within BW. (for Eg: BW Statastics)or Update data from one BW system to another BW system (if you have multiple BW systems).
    Message was edited by:
            Praveen Vujjini

  • What does the RHD symbol mean when using the multiple speakers?

    i have two 1st gen apple TVs and when i pull up the multiple speakers prompt, i see an acronym "RHD" after each device.
    what does the RHD symbol mean when using the multiple speakers?
    typically i was used to seeing the Apple TV-1  vs. Apple TV-1-RHD??
    What is the difference?

    It's been modified to run Remote HD.
    http://remotehd.com/

  • What is the use of commit work and rollback work

    hao friends,
    what is the use of commitwork and rollback work where we can use these open sql statements .
    thanks,
    anji

    hi all
    i have written the following code in my development system to change the records of my database.
    SELECT * FROM zyikostl INTO TABLE itab.
      LOOP AT itab INTO wtab.
        tabix = sy-tabix.
        DO.
          READ TABLE itab INTO ktab WITH KEY kostl_alt = wtab-kostl_neu.
          IF sy-subrc = 0.
            wtab-kostl_neu = ktab-kostl_neu.
            MODIFY itab FROM wtab INDEX tabix.
            CONTINUE.
          ELSE.
            EXIT.
          ENDIF.
        ENDDO.
      ENDLOOP.
    MODIFY zyikostl FROM TABLE itab.
    In the development system i have only few records its working fine,but when it is been moved to test system there are 2500 records in the database so the report is taking much time(more than 5 hours )
    i sthere any solution for this ....
    thanks,
    vaasu.

  • What is the use of Tcode: SM35

    Hi Experts,
    What is the use of Tcode: SM35
    If some one can brief me in detail it would be great help.
    Appreciate your early response.
    Regards
    Rajesh

    Hi Rajesh,
    SM35 is used to run Batch input sessions.
    These sessions can be created via LSMW or any batch-input ABAP program.
    To run a session, select the session and press "Process".
    You can either process foreground (as if you are entering the data), display errors only (runs in background as far as there is no error), background (you need to check the errors when the session is over).
    Regards,
    Dilek
    Edited by: Dilek Ersoz Adak on Dec 16, 2009 4:19 PM

  • Can't stop the dock icon bouncing when there is an "alert" from Thunderbird

    I posted this question on the MozillaZine forum, but no-one there answered so I thought I'd try here.
    I'm using Thunderbird 2.0.0.14 for my email. Is there a way to stop the dock icon bouncing when there is an "alert"? These happen relatively frequently in connection with my Yahoo account, and every time the icon bounces until I go to Thunderbird and click "ok" on the alert box. This is slowly driving me nuts. I have disabled the "animate dock icon" setting for new mail, and for my whole system when programs start or open, but it hasn't had any effect on the behaviour of the icon with regards to alerts.
    Thanks.
    C

    Sorry, I am not trying to be difficult. I'm just lost.
    Hey, no problem, really... we're here trying to help & just need to find out what is needed to help!
    You really should right click on the whole Thubderbird folder and Archive it first, so we can go back if need be.
    Then, it appears that if you just recreate the account, with the name, email, server, and smtp, then everything comes back for that account... at least for global accounts.
    If you wish to hold off on this then just move the original .js back and start T-Bird again, then I can search for a way to edit the existing .js file, because for some reason, when you change your prefs back, it's not changing that file like it should.

  • What is the use of sim card in ipad2 wifi +3G and how to use it?

    what is the use of sim card in ipad2 wifi +3G

    Use the SIM card to connect to the cell carrier 3G network when there is no wifi available.
    To set it up, see this -> http://support.apple.com/kb/HT4157

  • What is the use of lookup tranformation in odi

    Hi Experts,
    What is the use of lookup transformation in ODI.
    In ODI we use different kinds of joins, so my doubt is what is the difference between lookup transformation joins and normal joins we use in ODI.
    Please let me know with your valueable information.
    Thx,
    Sahadeva.

    Use the SIM card to connect to the cell carrier 3G network when there is no wifi available.
    To set it up, see this -> http://support.apple.com/kb/HT4157

  • What is the use of t-code MD74 - Reorganising independant requirements

    what is the use of t-code MD74 - Reorganising independant requirements

    basically it to delete the unwanted PIR for the last period.
    Let us say you planned PIR for 100.
    At the end of Period the total salae order were 90, PIR shows 10 excess, this has to be deleted. We can do it manually, but this can be done collectively
    pl go through the link below
    http://help.sap.com/saphelp_47x200/helpdata/en/cb/7f9b7043b711d189410000e829fbbd/frameset.htm
    With the reorganization function, you can delete planned independent requirements for which there are no sales orders in the database. You can delete the planned independent requirements history.
    A key date is required to carry out reorganization which is calculated as follows: the system checks whether a reorganizing interval is maintained in Customizing for the plant that you want to reorganize. If an interval is maintained for this plant, the system uses this information to calculate the key date. If no interval is maintained for this plant, the system checks whether intervals are maintained for any other plants, and selects the largest interval to calculate the key date. You can change the key date proposed in the initial screen for reorganization.
    You can change the proposed key date when deleting the history. You can set a shorter interval for deleting histories than for deleting the requirements records.

Maybe you are looking for