Difference between Map h = new HashMap() and HashMap h1 = new HashMap()

Hi,
I am new to Java.I am just confuse that what are the benifits or difference between these two approaches.
1. Map map = new HashMap();
2. HashMap hashMap = new HashMap();
Please reply as soon as possible.
Thanks
Sachin

Well the difference is that one declares the variable "map" as type "Map"
The second declares the variable as type "HashMap"
Why would you want to do this?
Lets say at some point in the future, you decide you want the Map sorted. ie use a TreeMap instead of a HashMap.
If you have used "HashMap" everywhere in your code, then you need to change all occurences of it to TreeMap.
However if you just used "Map", the only dependency on "HashMap" is in this one line of code.
Which do you think would be easier to change?

Similar Messages

  • What's the difference between old SAP appraisal system and the new SAP appraisal system?

    Hi Experts,
    What's the difference between old SAP appraisal system and the new SAP appraisal system?
    Can anyone shed some light please.
    Thanks.

    emgr_update no longer sets or gets the thesaurus from workbench. In 11 all workbench configurations are saved in IFCR configuration directly.
    Hence the thesaurus entry should be added directly in version 11 Workbench as opposed to xml file in older versions.
    And if you want to migrate the changes across environments then import_site script in control directory can be used.

  • Difference between the TABs  "All Content" and "Discussions" on the new forum?

    Hi,
    Does anyone know the difference between the TABs  "All Content" and "Discussions" on the new forum?  They seem to be the same.  I'm confused.
    Petey

    Petey,
    Though I was part of the forum update beta, there was some that we could not effectively test, plus some aspects (like "Like"), that some liked, but others did not. That sort of thing happens.
    Also, now that we have the full version, and all servers are synced, there will probably be things that the beta testers did not get to experience. We will all be learning, in the process too. Also remember, much of the new forum software was provided by Jive, and though many of us commented (pros and cons), only so much could be addressed. It was not quite like doing a beta on Adobe software, as there was a complete, separate layer in between.
    So far, what I see looks close to what we saw a few weeks (months?) ago. Now, I need to really put the real software through its paces, to see what got changed from then, until now.
    Good luck,
    Hunt

  • What is the difference between SAP NW PI7.1 and PI7.1 EHP1

    We have a customer using SAP PI7.1 EHP1. The application to be deployed
    isdeveloped on SAP Netweaver PI 7.1 SP06.
    We need to know if application developed and transported from PI7.1 is
    compatible with EHP1?
    Below are the Components used by the application .
    1) SSL communication using SOAP adapter
    2) Java mapping , Graphical mapping , XSLT mapping
    3) Customised EJB modules
    4) Adapter framework
    5) ALE layer for IDoc communication from ERP to PI
    6) RFC lookups to PI system and ERP system.
    Questions
    1)Will PI EHP1 be able to communicate with PI7.1 using SOAP adapter ?
    2) What is the difference between SAP NW PI7.1 and PI7.1 EHP1 ?
    Regards,
    Sneha

    Hi,
    EHP Pi7.1 new
    IPv6 Support in SAP Systems (new)
    Async/Sync and Sync/Async Bridge in the JMS Adapter (New)
    High Availability (New)   Locate the document in its SAP Library structure
    Use
    A new concept is available for setting up a high availability environment for SAP NetWeaver Process Integration (PI). To do this, you need SAP Web Dispatcher for load balancing, and you must reconfigure your HTTP, RFC, and RMI connections so that they can be used for load balancing. You must also make various configuration steps in other components of your PI environment.
    [Level 4: Document: XML to Text Conversion Module (New)] XML to Text Conversion Module (New)
    Message Packaging (New)
    Monitoring Milestones (New)   Locate the document in its SAP Library structure
    Use
    You can use the new scenario variant Monitoring Milestones of the Business Process Management scenario to define a monitoring process that can monitor events from different applications. A monitoring process can subscribe to events from SAP or non-SAP systems.
    check  given Link
    http://help.sap.com/saphelp_nwpi711/helpdata/en/61/8c3842bb58f83ae10000000a1550b0/frameset.htm
    Regards,
    Amit

  • Differences between SAP PI 7.0 and PI 7.1

    Hi Everyone,
    I have a requirement where i use webservices most. I feel PI 7.1 is good. Please suggest me. 
    Would anyone suggest which is the best. Is it PI 7.0 or PI 7.1
    What are the major differences between the two ?
    Regards,
    Varun.

    Hi Varun,
    New highlights for SAP NetWeaver Process Integration 7.1 are:
    Enterprise Services Repository as a central storage location for enterprise service definitions and lifecycle management data for all enterprise services
    Universal Description, Discovery, and Integration (UDDI) 3.0–compliant services registry for runtime management of enterprise services
    Improved support for standards such as Web Service Reliable Messaging (WS-RM), WS Policy, Security Assertion Markup Language (SAML)
    Extended support for high volume scenarios
    Business Activity Monitoring for process definition of milestone monitoring (event correlation)
    Improved SAP NetWeaver Administrator support for central configuration and administration of both mediated and point-to-point scenarios
    Further functional enhancements include:
    XML payload validation
    Process editor modeling enhancements: step groups, integrated alert management, configurable parameters
    Integration of human interaction (generic user decision)
    WS-BPEL 2.0 preview
    The message server and the enqueue server can be separated from the central instance (CI) to the ABAP SAP Central Services Instance (ASCS) in the ABAP stack
    also (recommended)
    In SAP NetWeaver 7.1 ,Only ASCS is supported
    SAP has changed the signatures of the relevant Java classes,So in these cases the Java coding effort should only be "mere syntax check".
    1. PI 7.0 is the part of Netweaver 2004s and PI 7.1 is key entity in eSOA.
    2. PI 7.1 have various mapping Enhancements as well as reusability of UDFs across the mappings etc. which is not available in PI 7.0
    3. PI 7.1 comes with the concept of folders for more flexibale and Organized way of developements.
    4.Advanced adapter engine is used in PI 7.1, which have overcome the various communication related limitations of previous versions
    5.High Volume support in PI 7.1
    SAP NetWeaver Process Integration 7.1 (SAP NetWeaver PI 7.1)
    You can use the ES Repository and Registry with SAP NetWeaver PI and take full advantage of the process integration capabilities of SAP NetWeaver. With the ES Repository, you can start modeling your business process and designing your interfaces, data types and mappings for the message exchange. The Integration Directory and Integration Server that are also available with SAP NetWeaver PI, enable you to configure and to run your business process in your individual system landscape.
    SAP NetWeaver Composition Environment 7.1 (SAP NetWeaver CE 7.1)
    SAP NetWeaver Composition Environment 7.1 offers full service provisioning capabilities, also for those who need to work with a lean development environment and do not focus on process integration. For those customers, the ES Repository and Registry offers capabilities for service provisioning and consumption
    PI7.1
    Display Adapter Synchronous Message Content in RWB of PI 7.1
    /people/william.li/blog/2008/02/07/display-adapter-synchronous-message-content-in-rwb-of-pi-71
    SAP PI 7.1 Mapping Enhancements Series: Using Graphical Variable
    /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    Monitoring the IDOC Adapter in XI/PI using IDX5
    /people/kamalkumar.ramakrishnan/blog/2008/02/13/monitoring-the-idoc-adapter-in-xipi-using-idx5
    Point-to-Point Connection using ABAP in SAP using PI 7.1
    /people/william.li/blog/2008/02/13/point-to-point-connection-using-abap-in-sap-using-pi-71
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    /people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
    SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series
    /people/jin.shin/blog/2008/02/14/sap-netweaver-process-integration-71-mapping-enhancements-blog-series
    SAP PI 7.1 Mapping Enhancements Series: Copy XML Subtree
    /people/william.li/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-copy-xml-subtree
    SAP PI 7.1 Mapping Enhancements Series: Correct Structural Inconsistencies
    /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-correct-structural-inconsistencies
    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    Go through this links...
    Difference betwwen PI7.0 and PI7.1
    Re: What  are the Technical  differences Between XI3.0/PI7.0/PI7.1
    Regards,
    Vinod.

  • Difference between Property binding, Aggregation Binding and Element binding?

    what is difference between Property binding, Aggregation Binding and Element binding?

    HI Rajesh,
    Firstly ,
    A binding path can either be absolute (starting with a slash), or relative (starting with a name token)
    1. Element Binding:
    Here we specify the refrenced object.
    eg if you bind company object to a layout, like
    var oMatrixLayout = new sap.ui.commons.layout.MatrixLayout();
    oMatrixLayout.bindElement("/company");
    then all the children of this layout can refer to the context of this object. like suppose company has name attribute, then we can directly pass it to the child like:
    oMatrixLayout.createRow(
    new sap.ui.commons.Label({text: "Name:"}),
    new sap.ui.commons.TextField({value: "{name}"})
    All the relative bindings within the control and all of its children are resolved relatively
    2. Property binding is similar to the context mapping in WebdnyPro. We bind it to a property of the UI. It is automatically updated when its vlaue is changed.
    3. Aggregation binding (basically a list) defines a template(a model which others can copy) and this template is cloned for each entry of the list. When we make an entry in the list, a clone of the template is created.When the clone is created, the context is set to the entry in the list. Thus all the binding to the template are resolved relative to the entry. This is maily used for large data sets where we will only clone the current entry and not the complete list.
    Regards,
    Nikhil

  • Difference between SY-SUBRC EQ 0 and SY-SUBRC EQ ' 0 '

    Dear All,
    I am not from abap background.
    I have a simple question.
    what is the difference between sy-subrc eq 0 and sy-subrc eq '0'
    How does it impact a statement like this for example
    SELECT /BIC/ZAGENT /BIC/ZBATCH_MO /BIC/ZDOC_NUM /BIC/ZCUSTOMER
               /BIC/ZSTORE /BIC/ZLINE_NUM /BIC/ZMATERIAL /BIC/ZBARCODE
          FROM /BIC/AZO_AMVN100
          INTO CORRESPONDING FIELDS OF TABLE it_aquisition
          WHERE /BIC/ZAGENT EQ SOURCE_FIELDS-/BIC/ZAGENT
          AND /BIC/ZDOC_NUM EQ SOURCE_FIELDS-/BIC/ZDOC_NUM
          AND /BIC/ZOCFLAG = '1'.
        if sy-subrc EQ '0'.
          SELECT SINGLE /BIC/ZDOC_NUM FROM /BIC/AZO_PMVN300
            INTO v_docnum
            WHERE /BIC/ZDOC_NUM EQ SOURCE_FIELDS-/BIC/ZDOC_NUM
            AND /BIC/ZAGENT EQ SOURCE_FIELDS-/BIC/ZAGENT
    kindly help me with this.
    Pleae do a little more research before posting questions here...even if you are new to ABAP.
    Edited by: kishan P on Aug 24, 2010 10:00 AM

    Hi,
    Please refer [Wiki post|http://wiki.sdn.sap.com/wiki/display/ABAP/Sy-Subrc].
    hope it help you,
    regards,

  • What's the difference between a not-initialed object and a null object

    hi guys, i wanna know the difference between a not-initialed object and a null object.
    for eg.
    Car c1;
    Car c2 = null;after the 2 lines , 2 Car obj-referance have been created, but no Car obj.
    1.so c2 is not refering to any object, so where do we put the null?in the heap?
    2.as no c2 is not refering to any object, what's the difference between c2 and c1?
    3.and where we store the difference-information?in the heap?

    For local variables you can't have "Car c1;" the compiler will complain.That's not true. It will only complain if you try to use it without initializing it.
    You can have (never used, so compiler doesn't care):
    public void doSomething()
       Car c1;
       System.out.println("Hello");
    }or you can have (definitely initialized, so doesn't have to be initialized where declared):
    public void doSomething(boolean goldClubMember)
       Car c1;
       if (goldClubMember)
           c1 = new Car("Lexus");
       else
           c1 = new Car("Kia");
       System.out.println("You can rent a " + c1.getMake());
    }

  • What is the difference between component(Y, Pb, Pr) and component(R,G,B)?

    [I previously posted this question in another thread as hadn't realised how to post new question]
    Q. What is the difference between component (Y, Pb, Pr) and component (R,G,B) ?
    I’d previously thought I was reasonably savvy on all things HD, but when I turned my thoughts to looking into getting a mac mini to run part of my home cinema I realise I have some confusions around the above.
    Here’s what I think I know:-
    The mac mini has a DVI output of the type which can output both digital and analogue, and so via physical adapters it could be used to connect to displays that take HDMI or VGA style RGB leads.
    I know on the market I can get a DVI to Component cable lead which would therefore lead me to assume it could drive my HD plasma with component input (Y,Pb,Pr), as I currently drive the HD TV via component cable with a SKY HD box (720p and 1080i), an xbox 360 (720p) and a progressive scan DVD player (480p), all through a Denon AV-amp.
    The problem is, I’ve heard somewhere that the DVI to component is R,G,B only and that it is not Y, Pb, Pr which is making me wonder it a) this will work and b) if I really understand component video afterall.
    I notice the Apple TV outputs Y,Pb,Pr but colours them red, green and blue, so am even more confused….
    Hopefully someone can help educate me on this !

    Thanks for this.
    My Plasma is a Panasonic 42" Viera March 2005 model. No HDMI, No VGA.
    It can process signals up to 720p and 1080i via the component (an interestingly it makes a huge difference over SD even though the native panel is 480..!?!)
    Am I right in thinking that the iPod component cable will also be R,G,B and therefor might be a suitable trial? Ie. if the TV accepts the input from the iPod then it should work for the mini?
    Only other thing of note is I'm doing all this via my Denon 1707 AV amp which does have the facility of upscaling, but I imagine it needs to stick to one format?
    Thanks.

  • Difference Between SAP ECC 6.0 and SAP Solution

    Dear Experts,
       We are in the process of implementing a new SAP Structure.
        We are taking a hosted model from vendor which is called SBH (Subscription Based Hosting) of SAP Solution
      So my question to all experts is that, what is the exact difference between SAP ECC 6.0 and SAP Solution SBH model.
       If any comparison chart,  it would be helfull.
    Do reply asap.
    Thanks in advance,
    Nilesh Jain

    Hi Nilesh,
    Looking at the image below, you will find out that ECC6 is under SAP ERP, and SAP ERP is under SAP Solution:
    SAP solution is of a bigger element and ECC 6 is a component of it.
    Regards,
    Rod

  • Difference between Reports in normal ABAP and Reports in CRM

    Hi Experts,
    I am new to CRM. Can someone tell me the Difference between Reports in normal ABAP and Reports in CRM.
    It will be very useful if someone explains with example.
    Some where in SDN i read in CRM we should not select statment. Then how to fetch data?
    Please give me more basic concepts about CRM programming.
    Thanks,
    RAGU

    Hi Ragu,
    You can find much information at http://service.sap.com/crm-inst.
    Go to Installation & Upgrade Guides -> SAP Business Suite Applications -> SAP CRM
    Check the CRM version in which you are working and get the documents.
    FMs are specific to the requirement. Like all Business Partner related FMs generally start with BUPA* or BAPI_BUPA*.
    For CRM transaction data you can get info using FM CRM_ORDER_READ. To create a new transaction use CRM_ORDER_MAINTAIN and CRM_ORDER_SAVE.
    More information can be fetched by surfing through the SDN threads and checking in SE37 t-code.
    Hope this helps!
    Regards,
    Saumya

  • Differences between the FMs of SAVE_TEXT and CREATE_TEXT.

    Hi Experts,
    Let me know that, the differences between the FMs of SAVE_TEXT and CREATE_TEXT.
    Like, Wht Wht scenarioes demand each FM?
    Which is best one, if both perform same functionality.
    replies appreciated.
    thanq

    CREATE_TEXT is used to create a new Text. It uses the SAVE_TEXT inside it.
    SAVE_TEXT is used to update the existing text.
    Regards,
    Naimesh Patel

  • Difference between Oracle developer suite 9i and 6i

    Hi -
    Can I know what's the release difference between oracle developer suite 9i and 6i , and what's new in oracle discoverer 9i in compare with last version , we have discoverer version of 4.1...
    I could not able to get from metalink anything like new features in 9i deve;oper suite.
    Existing oracle financial application 11.5.8 have their forms and reports in 6i version.
    What impact will have if changed with new version of application 11.5.10 in future .

    Oracle Developer Suite 9i is now called Oracle 9iDS. Oracle also sells Oracle 9iAS. You need to license iAS in order to run application created using iDS.
    9i is fully J2EE compliant. It offers improved integration between components. Its much more feature rich than 6i. See:
    http://www.oracle.com/ip/develop/ids/
    for more information.
    what's new in oracle discoverer 9i in compare with last versionThis question is best asked in Discoverer Forum.
    What impact will have if changed with new version of application 11.5.10 in future Reports offers backward compatibility between 6i and 9i reports with a few exceptions. See Oracle Reports Obsolescence plan on OTN:
    http://otn.oracle.com/products/reports/htdocs/getstart/whitepapers/movingto9i.pdf
    Regards
    Sripathy

  • Differences between Hyperion 9.3.1 and 11

    Hi All,
    Can any one let me know the full differences between Hyperion 9.3.1 and 11 version.
    Kindly let me know immedietly ......
    Thanks in advance,
    Ramachandran J

    Hi,
    For all the products have a look at the new features documentation at :- http://download.oracle.com/docs/cd/E12825_01/index.htm
    If it is just planning then have a read of :- http://download.oracle.com/docs/cd/E12825_01/epm.111/hp_new_features/new_features.html
    Ok?
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • What is the difference between the 4th generation ipad and the ipad 3 with retnia display?

    What is the difference between the 4th generation iPad and the "New iPad with retina display"? i don't quite understand. are they stilll the same size or would i have to get a different case?

    The 3rd and 4th generation iPads are the same size. The 4 has a faster processor, and a little better iSight camera for FaceTime. The 4 also has the lightning connector so your old cable will not work with the iPad 4.
    You should always check with the manufacturer of the case to see if it will fit. You can probably do that on the manufacturers website.
    This might be of some interest to you.
    http://www.zdnet.com/ipad-4-teardown-pretty-much-the-same-as-the-ipad-3-70000068 33/

  • Difference between abstract portal component ,dynpages and jsp dynpage

    Hi All,
    I am new to the SAP world.Can you help me out in finding the difference between abstract portal component ,dynpages and jsp dynpage in Portal development.Please send me  any information.

    Hi,
    Welcome to SDN Community
    This blog will brief you the differences between them,
    Java development methodologies (Part II)
    Regards
    Srinivasan T

Maybe you are looking for

  • Unable to see query when creating universe using new connection wizard

    Hi I created a query and released for OLEDB for OLAP. when i tried to create a universe after giving all the parameters like username,pwd,server,system no, id..... and check into OLAP cubes i can see the query which i developed on the multiprovider?.

  • Navigate to a URL in PL/SQL block?

    hi all, how do i programatically navigate to a URL inside a PL/SQL block? i've created a Button and a Process. In the process, I need to get some data from my database then navigate to a URL based on the data retrieved. data is actually an email addr

  • Javax.xml.parsers not found in import

    I have downloaded JAXP from java.sun.com. I put the jar files in ../jdk/jre/lib/ext/. Im getting "javax.xml.parsers not found in import" when I try to compile a program with an import statement like this: import javax.xml.parsers.*; What am i missing

  • IView and BI admin cockpit

    Hi, I will publish my own query to the BI admin cockpit. but when i use the publish to portal function in query designer, i can not find where i should publish. actually, i don't find any specific folder there(only PCD). Is there any documentation? M

  • New iMac vs older Mac Pro

    Hi Guys I currently have a Mac Pro (not the latest model, one back from that). It's a 2 x 3 GHz Quad-Core Intel Xeon machine with 5GB RAM. I do a lot of Final Cut Pro work and multitasking (Photoshop etc) and it seems to handle all of this fine. It's