Abt try

hi
i have a small doubt abt try.
A try block should have either a catch block or a finally block, but it's not required to have both.
whts the use of ahving try block with out having catch..
thnx in advance
mysha

You use try/finally without catch when you're not going to handle any exceptions, but you are going to clean up, regardless of how the try block completes.
void foo() throws IOException, MyProcessingException {
    open a file
    try {
        for each line // reading a line can throw IOE
            process it // processing a line can trhow MyProcessingException
    finally {
        close the file
} Regardless of whether there's an exception reading the file or processing it, or the try block completes cleanly, finally ensures the file gets closed.

Similar Messages

  • Try to know abt ejb

    hai
    iam trying to get in to the world of J2EE
    i know some much of JSP and Servlet and now any body help me to get the knowledge of EJB plz
    my email is [email protected]

    http://www.google.com/search?q=ejb+tutorial
    And thanks for providing a spam address.

  • Why won't my iTunes library which has abt 300 songs on it let me transfer them onto my new iPhone 4s? Please help

    Why won't my iTunes library which has abt 300 songs on it let me transfer them songs onto my new iPhone 4s?? Please help

    Hey briannagrace96,
    Welcome to Apple Support Communities! I'd check out the following article, it looks like it applies to your situation:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    You'll want to go through the following troubleshooting steps, and for more detail on each step follow the link to the article above:
    Try the iPod troubleshooting assistant:
    If you have not already done so, try the steps in the iPod Troubleshooting Assistant (choose your iPod model from the list).
    If the issue remains after following your iPod's troubleshooting assistant, follow the steps below to continue troubleshooting your issue.
    Restart the iPod Service
    Restart the Apple Mobile Device Service
    Empty your Temp directory and restart
    Verify that the Apple Mobile Device USB Driver is installed
    Change your iPod's drive letter
    Remove and reinstall iTunes
    Disable conflicting System Services and Startup Items
    Update, Reconfigure, Disable, or Remove Security Software
    Deleting damaged or incorrect registry keys
    Take care,
    David

  • Where can i get info abt deadlocks

    Hi ,
    I want to get some info abt dead locks and when it happen.I have one scenario where 4-5 process writing to the same table at the same time.I want to find out how the process is gng to effect if i ncrease parallel processes.
    Thanks
    Anand

    Based on the above mentioned commands, it looks like it's just going to block the rows forever. Try the following
    1)Open two sessions of SQL Plus. Let's call them S1 and S2
    2)Run the following using S1
    CREATE TABLE DTEST (ID INT,NAME VARCHAR2(400));
    INSERT INTO DTEST (ID,NAME) VALUES (1,'NAME1');
    INSERT INTO DTEST (ID,NAME) VALUES (2,'NAME2');
    COMMIT;
    And then these
    S1: UPDATE DTEST SET NAME='NAME3' WHERE ID = 1;
    S2 : UPDATE DTEST SET NAME='NAME4' WHERE ID = 2;
    S1: UPDATE DTEST SET NAME='NAME4' WHERE ID = 2;
    S2: UPDATE DTEST SET NAME='NAME3' WHERE ID = 1;
    (While running the above mentioned commands,
    DBA_BLOCKERS, DBA_WAITERS views can be used to view the locks being held ofcourse
    by using separate sessions than the above mentioned ones)
    A deadlock will occur with the following error message
    ERROR at line 1:
    ORA-00060: deadlock detected while waiting for resource
    Hope this helps
    Regards

  • For stephan urgent abt og.pll

    i am running developer on the same machine so i know this will make much problems and the other thing abt the version problem okee i will try to find a new cd and from that paste the file og.pll. will this work or not? or can i take the file from another machine where developer forms5 is correctly installed? can i get form5i demo file from net? or in last tell me how can i upgrade from form 5 to form 6?

    upgrading from v5 to v6 will cost you, I'm sure. You can check the upgrade center on OTN for more information. I can't find any demos supported for version 5 here. You may have to go outside of Oracle support to find them because v5 demos may now be considered obsolete and no longer supported or available.
    Can anyone confirm/deny that removing (uninstalling) the developer suite tools has an affect on the database? I'm not too sure on this issue.
    Again, you will run into problems using a library that wasn't available until a later version. It is possible that someone out there has taken the version 6 copy and customized it to work with version 5. If this is the case, Oracle will not help you with any problems you encounter.

  • Adobe Bridge CS6 for mac: export modules, facebook export module gives an error every time i try to sign in

    in the export module for facebook every time i click "sign in to facebook" it gives the following error: "An error occurred while request facebook connection"

    "An error occurred while request facebook connection"
    The export module has been discontinued in Bridge CC and as long as it has been there the option for social media has worked only for FB in a few countries. Due to rights management (as we where told) there where restrictions for most other countries. But if it did work for you in the past you should try click on FB in export module or use the tiny menu icon in the export panel for preferences and try to set up a new connection.

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • My iPad wont let me download apps bc security questions, but when I try to make them it freezes

    Every time I try to download an app it tells me I need to update my security questions, but once I click to make the questions the box goes white. So I'm not sure how to fix it

    The new questions show on your account on http://appleid.apple.com ? If they do then try logging out and back into your account on your phone (assuming that is where you are trying to purchase from) and see if the new questions then show on it.

  • Firefox hangs on opening requiring force quit I have snow leopard mac It hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise m

    Firefox hangs on opening requiring force quit I have snow leopard Mac It even hangs when I try safe mode. I need to know how to remove all traces of firefox on my mac so I can reinstall. I have tried terminal as advised on firefox webpage. Please advise me
    == This happened ==
    Every time Firefox opened
    == I tried to update firefox add-ons ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    Try a new profile. See [[Recovering important data from an old profile]]

  • I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because

    I have a problem with wifi in my iphone 4s, i already try everything and download latest version 7.1(11D167) but wifi switch is not working, its my humble request to Apple support team that pls resolve this problem as soon as possible because its a prestiage of Apple Company.
    Pls inform me how can i resolve the problem of wifi.

    You have to go to autherized iPhone agent.

  • I am trying to install after effects, but no matter what version I try to download, there is always a different error not allowing me to open or use the program after I have already installed it.

    I have recently repurposed an iMac from late 2009 as an editing machine, and have been trying to install preferably After Effects CS6.  When I install and try to open it for the first time, the program quits unexpectedly and continues to do the same every time I try to reopen the program.  After no luck experimenting trying to fix the problem, I attempted to download the trial of After Effects CC 2014 to see if the problem was with the computer or with the application.  After installing CC, there was another error when I attempted to open it.  My final attempt was taking After Effects CS5 from an old hard-drive and attempting to open it on the iMac.  When I open CS5 I am greeted with another error message telling me to reinstall After Effects.  After reinstalling I get the same message. 
    I am confused to whether my computer can handle After Effects, or there is another error occurring.
    Any help would be appreciated.
    Thanks
    -Eli
    (Mac OSX 10.10
    3.06 GHz Intel Core 2 Duo,
    4 GB 1067 MHz DDR3
    NVIDIA GeForce 9400 256 MB)

    I don't know if these are important or not, but I thought I would include them anyways.
    Thanks again
    Eli

  • HT1925 I get a message saying The feature I am trying to use is on a network resource that is unavalable when I try to open iTunes.

    When I try to open iTunes a widow appears called Windows Installer.  It tells me that the feature you are trying to use is on a network resource that is unavalable.  It tell me to Click OK or try again or enter an alternative path to a folder containing the intallation package iTunes.msi.  I suggests I should find this in a drop down box in the window.  There is a box but no folder iTunes.msi.  If I click the cancel button iTunes will open and work. I wish to uninstall iTunes and then reinstall it.  I am finding that I can play music on iTunes OK through my sound card but if I try to play streamed music from the web in YouTube and fom My Space the music is a poor quality with crackles and distortion. Other forums suggest uninstalling iTunes and then re-installing it.  I ahve tried to uninstall iTunes but it comes up with the Window noted above and then stops.  I need to stop the crackle when streaming music. Please help.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Hi, I am trying to update an iPhone 4 from iOS 4.3.3 to iOS 7.0.4, and every time I try to update it comes up with an error message saying that there was a problem because the network connection was reset. Is there any way I can get past this and update?

    The full message said:
    There was a problem downloading the software for the iPhone "Judy's iPhone 4". The network connection was reset.
    Make sure your network settings are correct and your network connection is active, or try again later.
    I am trying to update the iPhone for my grandmother, Judy, as I am leaving for Paris on Wednesday night and we want to have Facetime installed on her iPhone before then, so we can stay in contact with each other. It is the simplest way for this to happen but the program simply will not allow me to update her iPhone.
    Is there any way to get past this error and update her iPhone? Any help will be greatly appreciated.

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • Each time I try to synch photos from my Windows 7 PC to my iPad2, iTunes stops working, and the error report says Problem Event Name:     APPCRASH   Application Name:     iTunes.exe   Application Version:     10.3.1.55   Application Timestamp:     4deec35

    Each time I try to synch photos from my Windows7 PC to my iPad2, iTunes stops working and the error message is:
    Problem Event Name:                          APPCRASH
      Application Name:                             iTunes.exe
      Application Version:                           10.3.1.55
      Application Timestamp:                    4deec351
      Fault Module Name:                          ntdll.dll
      Fault Module Version:                        6.1.7601.17514
      Fault Module Timestamp:                 4ce7ba58
      Exception Code:                                  c0000005
      Exception Offset:                                0002e3fb
      OS Version:                                          6.1.7601.2.1.0.768.3
      Locale ID:                                             1033
      Additional Information 1:                  0a9e
      Additional Information 2:                  0a9e372d3b4ad19135b953a78882e789
      Additional Information 3:                  0a9e
      Additional Information 4:                  0a9e372d3b4ad19135b953a78882e789
    I reloaded iTunes 10 (64 bit) successfully, but the problem remains the same.
    Any suggestions?

    I looked in the folder from which I want to synch photos, but there is no such thing as an "ipod photo cache" in that folder, or sub-folders, as suggested in the link which you were nice enough to provide.
    I have also tried removing photos from my iPad2 Photos App, and "iTunes has stopped working" shows up  again as soon as I click on the "Synch photos from" button.

  • I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".

    I have had my IPAD2 for quite a while but haven't activated my cellular data for about a year.  I am now trying to activate and when I go to cellular data, turn it on and try to tap view account i just get a message that says "connection to server lost".  I could swear the last time I used cellular data you would see the signal in the upper left corner and I only see "no service" there, I am in a location where I know I should have service.  Is there something I should do to my IPAD?  I tried resetting, I tried clearing cookies and history in Safari (after reading a post n these discussions).  I don't know what to do next. My IOS version is 6.1.3.  I did go into Network from the general tab and I see it says "SIM not provisioned".    HELP and Thank you in advance.

    Hello Theresa818,
    Thank you for using Apple Support Communities!
    It sounds like the cellular data will not activate for some reason on the iPad.
    I found this article that will help you resolve this issue here, named iPad (Wi-Fi + Cellular Models): Troubleshooting a cellular data connection, found here http://support.apple.com/kb/TS4249
    Check for a carrier settings update.
    Update your iPad.
    Toggle the Cellular Data setting off and on under Settings > Cellular Data.
    Restart your iPad.
    Tap Settings > General > About. Locate the Carrier entry and make sure that your carrier is correct.
    If your SIM card has SIM PIN enabled, try turning it off: Tap Settings > Cellular Data > SIM PIN.
    Make sure you're in an area of good coverage. If the cellular data connection works in another area, contact your carrier to report the original affected area.
    Reset network settings: Tap Settings > General > Reset > Reset Network Settings.
    Restore the iPad as new.
    If none of the above steps resolves the issue, make an appointment at an Apple Retail Store, contact your carrier, or contact AppleCare to troubleshoot further.
    I know you may have done one or two of the steps here, so you can skip those.
    Take care,
    Sterling

Maybe you are looking for