What is (Stack) in "(Stack)super.clone()"?

hi. There's this code from the java tutorial (in the topic "Being a Descendent of Object"):
protected Object clone() {
        try {
            Stack s = (Stack)super.clone();     // clone the stack   ---->look here
            s.items = (Vector)items.clone();     // clone the vector   -----> look here
            return s;                    // return the clone
        } catch (CloneNotSupportedException e) {
            // this shouldn't happen because Stack is Cloneable
            throw new InternalError();
}I'd like to know what "(Stack)" and "(Vector)" stand for.

they are casts.
http://java.sun.com/developer/onlineTraining/new2java/supplements/2002/mar02.html#1

Similar Messages

  • What is meant by stacked list

    hi
    what is meant by stacked list

    Hi Jyothsna,
    A stacked list is a list used in Module Pool programming.
    In an ideal scenario,you will define the screen sequence in either a static or a dynamic way.
    By the statc way,you define the next screen and enter the next screen's value in it.
    By the dynamic way,you code the statement CALL SCREEN XXX where the XXX means the screen number.The dynamic way overrides the static way of defining the screen sequences.
    Now,if you want to insert a screen sequence,i.e a sequence of screens which are not defined in the same ABAP program,you either do it by static or the dynamic way again using the above constructs.
    But in this case,a stack is loaded for a screen sequence and the screens are processed based on the sequence defined in it.
    Before leaving this screen sequence,you should always destroy or delete it usng the keyword LEAVE as it occupies a lot of memory.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • What is java.util.stack?

    Hi there,
    I am new to this so please excuse my knowledge of java.
    I want to know what is Java.util.stack?
    What is base class for that?
    And adventage and disadvantage?
    Please..
    thanks,,

    read up on stacks and their uses and other data structures:
    http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=data+structures&spell=1

  • What is the best way to clone a form field in BC

    Hi,
    What is the best way to clone a form field in BC.  I tried using jquery .clone.  It works fine on other forms for me but not on the BC forms, why? is it just me?  Any help would be great. Thanks

    I mean, duplicate a field with the click of a button.
    I think this should work, but it's not and  I am linked to the jquery library in the head of my page.
    <script type="text/javascript">
    $(document).ready(
      function() {
        $('input#tmpAddRow').click(
          function($e) {
            $e.preventDefault();
            $('tr#tmp').clone(true).removeAttr('id').appendTo('tbody');
        $('tr input[type=text]').focus(
          function() {
            $(this).addClass('myFocused');  
        ).blur(
          function() {
            $(this).removeClass('myFocused');
        </script>
    <img alt="" style="border: 0px solid; width: 200px; height: 134px; float: left;" src="/images/pv logo 3d.png" />
    <h3 style="text-align: center; color: #0000ff; text-shadow: #999999 0px 1px 5px;">Member Directory Listing</h3>
    <p style="text-align: center;">If you would like to be listed in the Pine Valley Middle School Directory, please fill out this form.  Only fill out the areas you would like to show up in our Directory.</p>
    <div style="margin-left: 130px;" class="form_bg">
    <form action="/CustomContentProcess.aspx?CCID=5656&amp;OID={module_oid}&amp;OTYPE={module_otype }" method="post" enctype="multipart/form-data" onsubmit="return checkWholeForm45842(this)" name="catcustomcontentform45842">
        <table cellspacing="0" cellpadding="2" border="0" class="webform">
            <tbody>
                <tr>
                    <td id="tmp"><label for="ItemName">First Name</label><br />
                    <input type="text" value="{module_firstname}" maxlength="255" id="ItemName" name="ItemName" class="cat_textbox_small" /><br />
                    <input type="button" id="tmpAddRow" value="Add a Row" />
                    </td>
                </tr>
                <tr>
                    <td><label for="CAT_Custom_131512">Last Name</label><br />
                    <input type="text" value="{module_lastname}" class="cat_textbox" id="CAT_Custom_131512" name="CAT_Custom_131512" maxlength="1024" /></td>
                </tr>
                <tr>
                    <td><label for="CAT_Custom_131509">Number</label><br />
                    <input type="text" value="{module_homephone}" class="cat_textbox" id="CAT_Custom_131509" name="CAT_Custom_131509" maxlength="1024" />
                    </td>
                </tr>
                <tr>
                    <td><label for="CAT_Custom_131510">Email</label><br />
                    <input type="text" value="{module_emailaddress}" class="cat_textbox" id="CAT_Custom_131510" name="CAT_Custom_131510" maxlength="1024" /></td>
                </tr>
                <tr>
                    <td><label for="ItemAddress">Address</label><br />
                    <input type="text" value="{module_homeaddress}" maxlength="500" class="cat_textbox" id="ItemAddress" name="ItemAddress" />
                    </td>
                </tr>
                <tr>
                    <td><label for="ItemCity">City</label><br />
                    <input type="text" value="{module_homecity}" maxlength="255" class="cat_textbox" id="ItemCity" name="ItemCity" /></td>
                </tr>
                <tr>
                    <td><label for="ItemState">State</label><br />
                    <input type="text" value="{module_homestate}" maxlength="255" class="cat_textbox" id="ItemState" name="ItemState" />
                    </td>
                </tr>
                <tr>
                    <td><label for="ItemZip">Zipcode/Postcode</label><br />
                    <input type="text" value="{module_homezip}" maxlength="255" class="cat_textbox" id="ItemZip" name="ItemZip" /></td>
                </tr>
                <tr>
                    <td class="hidden"><label for="FirstName">First Name</label><br />
                    <input type="text" value="{module_firstname}" class="cat_textbox" id="FirstName" name="CAT_Custom_131511" maxlength="1024" /></td>
                </tr>
                <tr>
                    <td><input type="submit" id="catcustomcontentbutton" value="Submit" class="cat_button" /></td>
                </tr>
            </tbody>
        </table>
        <script type="text/javascript" src="/CatalystScripts/ValidationFunctions.js"></script>
        <script type="text/javascript" src="/CatalystScripts/Java_DatePicker.js"></script>
        <script type="text/javascript">
    //<![CDATA[
    var submitcount45842 = 0;function checkWholeForm45842(theForm){var why = "";if (theForm.ItemName) why += isEmpty(theForm.ItemName.value, "Item Name");if (theForm.Days) why += isNumericIfVisible(theForm.Days, "days"); if (why != ""){alert(why);return false;}if(submitcount45842 == 0){submitcount45842++;theForm.submit();return false;}else{alert("Form submission is in progress.");return false;}}
    //]]>
    </script>
        <script type="text/javascript">
        jQuery("#ItemName").blur(function(){
            jQuery("#FirstName").val(jQuery("#ItemName").val());
    </script>
    </form>
    </div>

  • What's the best way to clone my boot drive?

    I just bought a new 500GB drive for my G4. What's the best way to clone my boot drive?
    Is there a way to put the new drive on the buss as a second drive and then copy everything from my boot drive to the new drive? How do I make the new drive bootable?
    Or
    Do I have to install OSX on the new drive, put the old boot drive on the buss as a second drive and migrate everything to the new drive with the Utilities Migration Assitant program?
    Are there programs available to make this easier? Where & how much?
    Thanks for any help I can get.

    bamim2:
    Dr. Smoke's FAQ Backup and Recovery has excellent advice on developing a backup strategy.
    You already have a larger extrnal HDD (Hopefully it is firewire?) The next step is to format and partition the HDD. (see step-by-step below). And thirdly you will need a good cloning utility. Carbon Copy Cloner has already been suggested, and the latest version is excellent. I, personally, prefer SuperDuper for its ease of use and efficiency. Both are great tools and relatively simple to use.
    I mentioned the hope that you have a firewire. One of the wonderful benefits of using an external firewire HDD for backing up is that you can make a bootable clone. This gives you an emergency boot drive in case of a problem. It also gives you an external device for running diagnostics and repairs from the extnernal to the computer and vice-versa.
    Congratulations on taking the first step toward securing your computer and your data!
    Formatting, Partitioning Zeroing a Hard Disk Drive
    Warning! This procedure will destroy all data on your Hard Disk Drive. Be sure you have an up-to-date, tested backup of at least your Users folder and any third party applications you do not want to re-install before attempting this procedure.
    Boot from the install CD holding down the "C" key.
    Select language
    Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    Option for formatting an External HDD
    Connect external HDD to computer
    Turn on external HDD
    Start up computer and log in
    Go to Applications > Utilities > Disk Utility and launch DU.
    Select your HDD (manufacturer ID) in left side bar.
    Select Partition tab in main panel. (You are about to create a single partition volume.)
    Select number of partition in pull-down menu above Volume diagram.
    (Note 1: One partition is normally preferable for an internal HDD. External HDDs usually have more than one. See Dr. Smoke’s FAQ Backup and Recovery for tips on partitioning external HDD
    Note 2: For more partitions than one, after you have selected the number of partitions you can adjust the size of the partition by selecting the top partition and typing in the size; then move down if more adjustments need to be made..)
    Type in name in Name field (usually Macintosh HD)
    Select Volume Format as Mac OS Extended (Journaled)
    Click Partition button at bottom of panel.
    Select Erase tab
    Select the sub-volume (indented) under Manufacturer ID (usually Macintosh HD).
    Check to be sure your Volume Name and Volume Format are correct.
    Optional: Select on Security Options button (Tiger) Options button (Panther & earlier).
    Select Zero all data. (This process will map out bad blocks on your HDD. However, it could take several hours. If you want a quicker method, don't go to Security Options and just click the Erase button.)
    Click OK.
    Click Erase button
    Quit Disk Utility.
    Good luck.
    cornelius

  • What is the significance of super() in constructor?

    excuse me, my english is poor.
    public class App2 extends App1{
    App2(String str){
    //there is a crytic super() *****why?****
    System.out.println(str);
    public static void main(String args[]){
    App2 tt=new App2("hello");
    class App1{
    App1(){
    System.out.println("App1 constructor");
    //end progarm
    why there is a crytic super()?
    What is the significance of super() in constructor?

    "public class App2 extends App1"
    implies that App2 inherits something from App1.
    e.g.
    App1 has member data a1, b1, c1 and App2 add its own member data a2, b2, c2. Since App2 extends App1, now App2 has member data a1, b1, c1, a2, b2, c2.
    If you call App2's constructor, you can initialize a2, b2, c2. How about a1, b1, c1? If you don't use super in App2's constructor, a1 b1 c1 won't be initialized. So, call super to let App1 initialize a1, b1 and c1.

  • What is use of stack canvas

    hi
    what is the use of stack canvas.
    Which scinario we can we the stack canvas. plz give example
    thanks

    A stack canvas can overlap a content canvas, it can be used either to extend the view of a canvas outside the screen view with a scrollbar, and it can have items on it where you can show the entire canvas and hide it at runtime.
    Tony

  • What is SAP SP stack

    Hi Expertise,
               I need your guidance in understanding the concept and difference between
               sap support package and sap sp stack. I know the concept of the sap support 
               package and applying it to  SAP R/3 but I am confused with sap sp stack in
               Netweaver.
               Please kindly clarify
    Thanks & Regards
    Satya207

    Hi Ventaka
    If you have R3 4.7 for example, you will have several compononts like BASIS, ABA and SAP_APPL and more. As you probably know there are support packages for each of these components. A SP Stack defineds a certain level of all your components. For example 4.7 SP Stack level 28 has BASIS/ABA packages up to 62 and SAP Appl packages up to 28.
    A SP Stack does also include the SAP Kernel for your platform with a given patch level and a SAPGUI patchlevel. So a SP Stack is a bundle of all components in your system.
    The philosophie is to apply a SP Stack to keep all your components and their dependances in sync.
    <a href="http://service.sap.com/sp-stacks">http://service.sap.com/sp-stacks</a>
    Regards Michael

  • What kind of tech stack would I need to install Web ADI?

    and also, how involved is the installation?

    Consistent with Oracle Applications 11is Self Service Web Applications (SSWA) technology, Web ADI takes advantage of Oracles proven technology stack. This would allow existing 11i users to install Web ADI seamlessly. If you are not currently on 11i, all you need to have is Oracle IAS 9i. Aside from that, Web ADI is just couple of server side patches to your existing system.

  • What is the software stack for Verizon Your Domain Pro?

    What operating system and software packages are included in the Verizon Your Domain Pro hosting product? If Linux, is shell access provided?

    FYI, you're primarily talking to other customers here.
    As you've seen, Verizon doesn't do support by email.
    When I call Verizon I try to do it during weekday business hours.  That often gets me a helpful representative located in the states.  It helps if you get to the retention people by selecting the options to cancel service.
    If you have an issue that you think other customers can help with, please post the details.
    Good Luck.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • Stacks not stacked?

    Hi -
    I recently upgraded to 10.5.7
    When I click on either of the preset stack folders, then only show up in what I assume is "folder," no matter how I set the preference.
    Any ideas? Am I missing something? I'm not sure I want to use the actual stack option, but it should be working...
    Ron

    If you are looking for the Fan display, that is what you need to select.
    Also note that the Fan display is not available if the Dock is on the Side of the screen.

  • Leaning Stack, Tilted Stack

    Can someone explain the logic behind the tilted or leaning Stack? Does anyone like the leaning stack? I think I understand what it is intended to represent but in reality it doesn't really come off as that. It looks "broken", like an unorganized stack or a too big stack ready to fall over - it says "Problem" - not "cute, creative, innovative" - despite the fact that I know it is an intentional effect. Reality is that - most things that lean, people fix or they have a desire to fix - Even a stack of paper or documents. I like Apple's thoughtfulness on most things but this - "not so much". Here is the real reason for the post, what do you do if you have full dock and your stack leans right off the page and you can't really see the top of the stack? Apple fix this. Recommendation to Apple - Straighten the stack and keep in mind its ok to not use all of the capabilities/"flexibility" that your operating system gives you (ala - transparent Menu Bar .
    Message was edited by: Michael McLennan

    I can only echo your sentiment. It's silly to have the stack running off the right edge.
    I have a fairly loaded dock and this makes it difficult to get at the items in the corners without activating Expose.
    Even viewing the folder as a grid means that maybe a tenth of the window is off the right edge, that is if you move the pointer into the stack window. When one clicks a stack it should open detached from the screen edge.
    I thought maybe it could be nice to put the Utility folder down there, but then it only shows about half of my utilities. So I don't really see a use for it unless it becomes a complete file browser.
    It probably would make more sense if one had a main dock on the bottom and then docks on the side to use for stacks.
    I'll have to see if there can be multiple docks and then test it.
    As it is works right now it's driving me crazy.

  • Stacks vs stacks?

    Maybe this is obvious to everybody else, but I never noticed it before: I stack two images that originated as different shots. Then I make a Duplicate Version of one of them and do stuff to it. Now they're all three in a stack -- but the new version and its original are in a substack that can't be broken up.
    If I try to order them as new version of shot 1, shot 2, old version of shot 1, there seems to be no way to do it. (I tried unstacking them all and restacking; the linked pair join up again.)
    I've often thought that Stacks were really for two different purposes: grouping versions of a shot, and grouping shots that seem related on some more general level. Now it looks as though Aperture *sort of* thinks that way. Is there a Feature Request lurking in here somewhere?

    Starting with PSE 6, Adobe changed the way stacks interact with version sets and albums.  The core issue is that Adobe intended stacks to be used in a way different than you are using them.
    In Adobe's design, stacks are similar to version sets and are intended for grouping similar versions of the same scene, where there is one “best” photo on the top of the stack. The PSE User Guide gives the following examples: “For example, create a stack to group together multiple photos of your family taken with the same pose; or, for example, photos taken at a sports event using your camera’s burst mode or auto-bracket feature.”   Some people try to use stacks instead of keyword tags to group disparate photos of the same subject (e.g. ten different photos of a wedding), and the stacks end up having many “best” photos buried inside the stack, with the photos having different keyword tags.
    Unfortunately, using stacks this way interacts badly with the Organizer’s search – if any photo inside a stack matches the search, all the photos in the stack are displayed in the search results, regardless of whether they match.  And as you've discovered, it makes using the stacks with albums more difficult.   The underlying problem is that the stacks contain more than one "best" photo -- they contain multiple photos that you may want to use in different situations.
    I'm not at all saying what you're doing is "wrong", just explaining how what you want to do differs from Adobe's intended uses.  People have been complaining about this since PSE 6 came out, and given that Adobe puts almost no effort into the Organizer anymore, I think it's unlikely it will change.

  • What format should I have super 8 transferred into to use imovie 8 to edit?

    I have a bunch of old super 8s that I will utilize a commercial lab to tranfer to digital so that I can edit them in imovie. What format would preserve the best quality and still be importable into imovie 8? I suppose I could also import into the previous version of imovie of need be as well so suggestions for both would be very helpful.
    Thanks

    You wouldn't really want them in a highly compressed format which is why you would be better with the miniDV tapes providing you can play them (HDV if they do them and you can play them) otherwise you might go for DV on a data DVD, but you'll only get 20 minutes on a disc.

  • ABAP and JAVA Stack ( Double Stack ) doesn't work with TDMS 3.0 correct ?

    Hi all
    I was in Walldorf and spoke with some Basis SAP persons and they told me that a "old"   "Double Stack" SAP couldn't transfer with TDMS. Is these answer correct and if its yes on which Guide i could read these ?
    Thanks for help
    SAPERLE

    Hi,
    here it is :
    TDMS shell creation
    Regards,
    Eddy

Maybe you are looking for