How to find that 2 references are pointing to same obejct??

how to find that 2 references are pointing to same obejct??
i feel that hashCode and equals will not work as far as i understood from javadoc

I wnat to know above because i want to check if ps in
this loop is same object or on each iteration new
object is created
for (int i = 0; i < 10 ;i ++)
PreparedStatement ps = con.prepareStatement(sql);
ps.setInt(1,i);
ps.executeUpdate();}
Here's a better question. Why in the world did you put that statement in the loop in the first place, unless the variable 'sql' is modified within?

Similar Messages

  • How to find that reports are in use or not?

    HI experts
    I have some set of reports under one InfoArea
    I want to know that any user is using them or not?
    And if someone is using then I want to find date on which it was last used..
    Can you please tell me??
    Regards
    Swati

    Hi Swathi,
    You can only get this information if the query/ workbook is enabled for statistics logging in transaction RSDDSTAT.
    If it is enabled you can goto table RSDDSTAT ( BW 3.5) or RSDDSTAT_OLAP( BI 7.0 ) to see the users who executed the query . These tables store all the information per query session and you will find more than one rows per session but you can find the information you want i.e. users executing a particular query / workbook.
    Also Tcode: SU01 will give you all the user lists in the server.
    Regards
    Pcrao.

  • How to find out the calling point of a Badi

    Hi Experts,
    Say one Badi is getting called in a particular screen of a transaction.
    Can anyone please guide me how to find out the calling point for that Badi.
    I checked for transaction CC31 screen 2000, method IF_EX_ECM_EXIT~OMR_CHECK_01
    is getting called.
    But I could not find the calling point.
    Please help.
    Thanks,
    Sonali.

    Go in to the perticular method, and click on where used list.That may help.
    Or get into the method in debugging, and press F7. That will take you to the calling point.

  • HR   how to find which personal area belongs to which country

    HR
    how to find which personal area belongs to which country
    thank you,
    Regards,
    Jagrut Bharatkumar shukla

    Hi,
        You can use the table T001P for finding that  for eg.,
    <b>Select molga from t001p where werks = 'Your Personnel area code'.</b>
    Thanks
    Yogesh

  • How to find users who are running IE with different credentials ?

    How to find users who are running IE with different credentials ? 
    Is there any tool or a solution in the market will help or a i can use GPO or even Power Shell ?
    thnx & Regards ,,

    Hi Salman,
    Based on your description, we can use Windows Credential Manager to check this. Windows Credential Manager stores credentials, such as user names and passwords  that we use to log on to websites or other computers on a network.
    Regarding Credential Manager, the following article can be referred to for more information.
    Credential Manager
    http://windows.microsoft.com/en-in/windows7/what-is-credential-manager
    Manage passwords in Internet Explorer using Credential Manager
    http://www.thewindowsclub.com/manage-passwords-internet-explorer-10
    Please Note: Since the above website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • I forgot my Email authentication how to find that ?

    i forgot that in which email the are sending me my Email authentication so tell me how to find that ?
    i also forgot my security questions
    so kindly send me this problem solution in my email ********   
    <Email Edited by Host>

    Hi Ahmad,
    Thank you for using Apple Support Communities.
    To get help with Apple ID security issues please contact account security in your country by following the link below.
    Apple ID: Contacting Apple for help with Apple ID account security - Apple Support
    Take care,
    Alex H.

  • If we dont know the request no  and program name how to find that program

    hi gurus
    can anyone suggest me
    if we dont know the request no  and program name how to find that program
    thank you
    regards
    kals.

    Hi,
                If u forget all the details It is very difficult to find,  u have to remember  at least some details regarding to that program..  for that
    1..   goto SE80  give u r package name  u will get all the programs which r u developed  according to the discription u can get some idea which u want.. and
    2... go to SE09 trcode.. display all  tr numbers..here all trs are there  what u developed,   u can get some idea by looking the description of the  tr numbers..
    I hope so u can get at least some thing .
    Thanks and Regards,
    Surya

  • How to find that a sales order for which there is  delivery but no goods

    Hi
    How to find that a sales order for which there is  delivery but no goods issue has been done i.e we have an open delivery for a sales order.
    How in VBUK table can we find  out with the sales order no .
    Thanks in advance

    make use of table VBFA.
    Regards
    Peram

  • How to find out what are all the change pointers assoicated for an idoc ??

    Hi ,
    How to find out what are all the change pointers activated for an idoc ??
    Thanks,
    Varma

    Verma,
    You can check what are the active Change Pointers for the message type in tcode <b>BD50</b>
    Use tcode <b>BD61</b> to check whether change pointers are active or not??
    Hope this helps..

  • How I find my iPod touch 4g without Internet acces.because my iPod lost on a trip so how I find that?

    How I find my iPod touch 4g without Internet acces.because my iPod lost on a trip so how I find that?

    you will have to use the old fashioned way, like if you lost a wallet or purse.

  • HT2497 I am finding that emails are disappearing from my Inbox without explanation.  Can anyone suggest what the problem might be?

    I am finding that emails are disappearing from my inbox without explanation.  Has anyone any ideas what might be causing this?

    I found a fix elsewhere for Mail.app.  I had to remove every sub-folder under INBOX (I moved them to a local folder) and then used the MAILBOX -> REBUILD command on INBOX.  It worked, but now I don't have any of the sub-folders.
    I am very disappointed with Apple.  I should never have to do that.  Tens of Billions of dollars in cash, just lying around, and they can't be bothered to make the most basic (and central)  of applications work.

  • 1...how to find that a function module belongs to normal function module or

    Hi to all.........
    1...how to find that a function module belongs to normal function module or remote enabled function module?
    Thanks and regards,
    K.Swaminath reddy

    Hi Swaminath,
    Go to Transaction SE37.
    In The Remote enabled function module, in the Attribute tab radio Button "Remote Enabled module will be selected and in the Normal Function Module, Normal Function Module will be selected.
    Regards,
    Mukesh Kumar

  • How to find which datasource are using  tables AFRU ,CAUFV and AUFM

    *how to find which datasource are using  tables AFRU ,CAUFV and AUFM*

    Hi,
    You can enter your table names in SE11 transaction and click "Display" and again click "Where -Used-List". Then it will show all the places where these tables are used(Datasources)
    Hope this helps.....
    Regards,
    SUman

  • HT5234 how to find that my MacBook charger is orginal or not ? i got two different adpter charger with my macbook pro now i dont know which is orginal or not ?

    HOW TO FIND THAT MY MACBOOK PRO POWER CHANGER IS ORGINAL OR NOT .
    WHERE TO FIND IT .

    They should both have an Apple logo on them.
    Clinton

  • How to find that how many times listener is restarted using listener.log

    How to find that how many times listener is restarted using listener.log

    Kishor wrote:
    OS =HP-UX
    RDBMS=Version 8.1.7.4.0
    i didn't find any line in listener.log file containing word "starting"
    grep starting listener.log|wc -l
    0Check when last time listener started, According to that search using that word.
    Example:-
    node1> cat listener.log|grep Started|wc -l
    2
    node1> Edited by: CKPT on Jan 28, 2012 9:49 PM

Maybe you are looking for

  • Installing 3rd party application in Portal

    Hi, We are running on NW Portal 7.0. Presnetly I have one req to install one Java application in Portal. I got a war file from the developer. now the problem here is the developer used mysql database to do the coding. Now we want to use SQL server200

  • How do I get signal from my Roland Fantom G8 to Logic Studio or GarageBand?

    My computer recently crashed, and since then I have not been able to record any music into either Logic Studio or GarageBand.  I need to get back up and running ASAP, as I'm in the middle of recording music for 5 different projects.  Here's all the g

  • How Do I Remove Older Versions of iPod for Windows

    According to my Add/Remove Programs utility I have iPod for Windows versions 3.8, 4.3, and 4.7 installed on my PC. It appears that these older versions take up quite a bit of memory; however, I am hesitant to try to remove these older versions using

  • Free Mac OS X v10.7 Lion

    Dear Sir, I bought new Mac book pro with Snow leopard operating system. and when I upgrade it to Lion it charge me !! My question is Apple still upgrade the new Macbooks from Snow leopard to Lion for free ? and what happened in my case ? Thank you.

  • Regarding VT11 Selection Screen

    Hi Guys,              I copied VT11 Selection Screen into my Z Program and added 2 new selection fields to VT11. My requirement is if the user enters any details I should get the shipment details. Should i copy the entire program of VT11 for this iss