What makes subclass of exception checked exception

Hi
When I make a exception class
class TestException extends Exception{}
This exception is a "checked exception". Understood
But the predefined java class RunTimeException is also a subclass of Exception what makes it an unchecked exception. Does compiler treat this class differently.
How I can make unchecked exception class when I extend my custom exception class from Exception.
Thanks
Abhishek

>
But the predefined java class RunTimeException is also a subclass of Exception what makes it an unchecked exception. Does compiler treat this class differently.
How I can make unchecked exception class when I extend my custom exception class from Exception.
>
The answer to both of these questions can be found in Chapter 11.2 'Compile-Time Checking of Exceptions of the Java Language Specification. Suggest you read the entire section.
http://docs.oracle.com/javase/specs/jls/se5.0/html/exceptions.html
>
The unchecked exceptions classes are the class RuntimeException and its subclasses, and the class Error and its subclasses. All other exception classes are checked exception classes.
>
These two other subsections give the reasons the designers of Java made the choices above
>
11.2.4 Why Errors are Not Checked
11.2.5 Why Runtime Exceptions are Not Checked

Similar Messages

  • What happens if the exception occurs in a thread when it has a lock

    what happens if the exception occurs in a thread when it has a lock
    on object. Is the lock released ?

    Rastogha wrote:
    ok so lock is released if we are putting code in try-catch block. . right ?
    1) But suppose what abt runtime exceptions which i am not catching. It doesn't matter what kind of exception it is. The lock is released when control is transferred outside the sync block.
    2)Also the thread will be suspended in both the cases or not ( both cases mean for runtime exception and checked exception)Again, the kind of exception doesn't matter. Whether you're in a sync block or not doesn't matter: When an exception occurs, control transfers to the nearest catch block that can handle it. If you don't provide a handler for it, the thread terminates.
    If something is not clear, post code that shows the specific situations you're curious about. Make sure you use the CODE button or [code] and [/code] tags.

  • What is standard and exception aggregation?

    What is standard and exception aggregation?

    hi there ,
    check out this link for scenarios of exception aggregation :
    http://help.sap.com/saphelp_nw04/helpdata/EN/d2/e0173f5ff48443e10000000a114084/content.htm
    regards,
    Supriya

  • Pls Aadvice me  what is making the exception code 20 show up in the POs.

    Dear All,
    Need to know what is making the exception code 20 show up in the two open purchase orders.  The exception code is causing MRP to create requisition to order additional stock when we are already above MAX.
    TIA
    Kogi

    Exception code is to cancel the open Purchase orders. The req may be created due to some material master parameters- rounding value , lot size, safety stock, coverage profile etc. and maybe in excess of what is required. Check the material master.

  • What is the default exception aggregation for the NCKF IO STOCK

    Hi all of you,
    What is the default exception aggregation for the Non Cumulative Key Figure info object Stock?
    When I am selecting Maximum, or minimum or Avereage (all values) its not selecting any of these values but only Average (weighted with the number of days) is getting selected.
    Please explain.
    Thank you.
    TR.

    Hi Vinod,
    Thank you for your reply.
    I had selected Last value as exception aggregation and activated it. But again when I double click on the IO STock, in the aggregation tab besides exception aggregation I find the option Average (Weighted with the number of days).
    Is it getting selected by default when I check the radio button Ncum. value with in- and out-flow?
    Please explain.
    Thank you.
    TR.

  • My iphone 4 does not make any sound except when i have call. Any sound notification for example whatsapp or email or playing song i could not hear a pip, but when blug the earphone i could hear all sound via earphone, any advise??

    My iphone 4 does not make any sound except when i have call. Any sound notification for example whatsapp or email or playing song i could not hear a pip, but when blug the earphone i could hear all sound via earphone, any advise??

    Check the Mute switch, which is on the left side of the phone above the volume buttons.

  • Hi! I have an iPhone 4S with iOS 6.1.3 and I have iTunes 11.1.3.8. on my Windows 8. Now I can't sync my iPhone, because the device is not recognised by iTunes. Somebody have any idea why, or what can I do (except refresh the iPhone software) ?

    Hi! I have an iPhone 4S with iOS 6.1.3 and I have iTunes 11.1.3.8. on my Windows 8. Now I can't sync my iPhone, because the device is not recognised by iTunes. Somebody have any idea why, or what can I do (except refresh the iPhone software) ?

    Hi Drazse,
    Thanks for visiting Apple Support Communities.
    If your iPhone is not recognized by iTunes for Windows, the troubleshooting steps in this article may help:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538
    Cheers,
    Jeremy

  • What happens when an exception occurs at finalize method ?

    What happens when an exception occurs at the time of cleaning objects in finalize methods?
    Will program crashes?

    1.) Why don't you try it? You can simply throw your own exception.
    2.) For this kind of questions the JVM specification is a good resource, for your concrete problem the chapter about finalization might be interested (look for the sentence starting with "If an uncaught exception ...").

  • What is Structure and Exception Cell?

    What is Structure and Exception Cell?

    Structure:
    lets assume u have a query with 'Plant' in rows and 'revenue' in columns.
    This report shows all plants values and corresponding revenue values..
    if create a sturucture in rows>from context menu>new selection-->drag and drop plant and provide description as 'plant'.
    now you have two structures one is kf structure and one characteristic structure(Plant).
    this report shows aggragated 'revenue' for all plants.i.e. you will not see individual plants in rows.Just one row 'plant' and aggregated value of revenue of all plants.
    Exception:
    In exception reporting you select and highlight objects that are in some way different or critical. Results that fall outside a set of predetermined threshold values (exceptions) are highlighted in color. This enables you to identify immediately any results that deviate from the expected results.

  • What makes a file unreadable or readable when trying to move it into the library

    What makes a file unreadable or readable when trying to move it into the library

    Any more info? It could be many things including what you are doing - you do not "move" anything to the iPhoto library - you use iPhoto (or image capture) to "import" into iPhoto
    We know nothing except what you tell us so full information and correct terminology is critical to getting valid answers - the more that is left to one guessing and assuming the better the chance of a bad answer
    LN

  • What makes my iphone 3gs shuts off?

    What makes my iphone3gs shuts off? Do I need a new battery? Is it related to the IOS?

    My 23 month old iPhone 3GS would shut off randomly and then show no battery. Sometimes I could turn it back on and the battery would be about 50%. So I'd plug it in and within minutes it would back up to 100%. Then a few minutes later, it was off again. This happened on 3G, wifi, phone call, Safari, games, with all the bells and whistles turned off, etc. I spent weeks researching the web and found one post about replacing the battery. I just wanted my iPhone to last until the 5 came out. Since the genius bar fix (back up, synch, restore, etc.) didn't work, I gave this a try. ifixit.com sells OEM batteries and a replacement kit for about $30. The directions were very complete (except connector 5 was a little more difficult than I was expecting). I was very nervous about doing this but figured the phone was useless to me anyway, so why not. Amazingly, when I got it put back together, everything worked and the phone functioned just like it did when it was new. This was about 3 months ago and everything is still working. And I haven't had to turn off all the features I got the phone for, either. There are other companies that sell these kits but ifixit.com has a great reputation.
    If you do this, MAKE SURE YOU GET THE RIGHT BATTERY. You cannot use any other battery other than the OEM one. And don't be discouraged if it doesn't work. There was a bad batch of batteries a few months ago. ifixit.com will immediately replace whatever they sent you.
    Lately I've been reading posts complaining that this only started happening after one of the 4.x upgrades. I found a few answers about one of those upgrades not being compatible with the original battery. So if your 2 year old iPhone 3GS is shutting off randomly and the battery meter is funky, or this just started happening, try replacing the battery.

  • Do you have any idea, what makes to fix this error in creating PO.

    The error is u201CDocument 101600 does not existu201D
    Do you have any idea, what makes to fix this error in creating PO.The error is u201CDocument 101600 does not existu201D  Here the 101600 is PO no.

    Hi
    Please check in t.code: RZ20 .
    You can find out the nature of this error
    Regards
    G.Ganesh Kumar

  • What makes the separation in VL10X ?

    Hi !
    It would be big help if you could help me with stock transfer document
    (sorry, I don't know how to say in English)
    made by ME21N.
    I made 2 stock transfer documents by ME21N ,and tried to make delivery document by VL10X,
    with the idea that I could make 1 delivery document.
    (as 2 stock transfer documents has the same delivery point, plant as Vendor, etc.)
    But  there are 3 delivery document generated by VL10X.
    I wonder what makes this separation !?
    thanks in advance.

    Dear wazukanahikari,
    This delivery split would have happened because of different warehouse number. Warehouse number is assigned to the combination of Plant and Storage Location. Therefore, even if plant is same, there could be delivery split based on warehouse number.
    So kindly check if warehouse number is same or different. The setting for the same can be checked using OVLP i.e. delivery item category
    Kindly let me know if you get different solution
    regards,
    sagar

  • What make of RAM should be in a MacPro and would they all be the same make in a new computer?

    My MacPro is only just over 3 years old and 6 of the 8RAM have stopped functioning.
    I put the question - how long should RAM last - and had some replies.
    One of the replies led me to wonder what make of RAM should be or should I expect to be in a New MacPro.
    Should they all have been the same make when new?
    2 of the 6 broken RAM are hynix which I believe are used by Apple.  I don't know what the make of the 2 functioning RAM are?
    The other 4 defunk RAM were made in Singapore with a logo - an oval with an M running through it. I can't find any reference to this on the web.
    I am in discussion with the supplier of my Mac so any information would be of help.
    8Gb of RAM should last longer than 3years.
    The other downer/bad luck was that the Apple care package I bought ran out in January just a few months ago although this slowing of my computer started before then but only bad enough last week to have it checked out.
    So disappointed with MacPro.  I expected better.
    I am having to go back to a PC which the Mac replaced which is still functioning after 7 years so......Mac or PC??????
    At this moment in time the PC is proving more reliable and much cheaper!!!!
    Thanks in advance

    The cpu heat sinks are not attached to the ram and this is off topic so I am not going to debate it further with you.  If you have a mac pro open it up and look inside for youself.  If you don't stop speculating.
    I should add these dimms do have their own heat sinks but they are physically part of each dimm itself.

  • What makes the SBO-COMMON_log grow...

    Does anyone know what makes this file grow?
    We have a client with only a handful of users and not much data. Their production database is only 433 MB, but their common log grew to 25 GB (it was set to restrict growth to 26 GB).
    On the other hand, we have another client with 16 users and a decent amoung of data being entered. Their production database is 2.5 GB, and even though their common log file was set to restrict growth to 2048 GB (that is not a typo and has been changed), it was only at 1.27 GB.
    What would make one grow that much bigger than another?
    Thanks for any help.

    Dear Vaughn,
    Please check the SAP note 1002099 at first and apply the suggestion from
    there.
    If still you will get the same issue, then run the following query according
    SAP note 625546:
    DBCC SHRINKFILE ('sbo-common_log', 10)
    This should shrink the log file.
    To prevent this situation in the future you have to set the recovery
    model of the SBO-Common to simple:
    Open the MS Enterprise Manager and right-click on the database
    SBO-Common   > Properties   > Options   > Recovery Model   > Simple
    For the SBO-Common it not necessary to use the log file.
    For detailed information regarding issue please refer to:
    http://channel.sap.com/sbo/documentation -> Support for SAP Business One
    -> Archive: Empowerment Sessions -> SYSTEM / SDK - Installation,
    Upgrades etc. -> Basics for Optimizing Performance from 07.11.2006.
    Regards,
    Rakesh Pati
    SAP Business One Forum Team

Maybe you are looking for

  • HT1338 I have lost my mail cannot access it can someone help me please?

    Can some one help me? The other day I went to update my I-Mac PC then went to click on my Mail icon and it came up with the following message ou can't use this version of Mail with this version of Mac OS XYou have Mail version 4.5 (1084/1085). It can

  • How to use a .folio file?

    I have been given a .folio file (which I understand is a DPS app, finalized and packaged with live links, etc.., ready to publish) and I need to include or place it inside another folio that I am doing. Anyway to do this? If not how do I use the .fol

  • Transparency issues when printing from Illustrator CS5

    I recently designed a flyer for an event that a group of artists and I are doing as a not-for-profit organization that we started, to help clean up the area and promote the arts. When I print the file (saved as an AI), the colors are bold, the font i

  • How do i talk to some one regarding a broken nano 6 gen ???

    i live in Brazil and need to change my broken Nano the technical assistance in Brazil said 1 month ago that there is no way to change it for a new one than last week my wife went to the New York Central Park store to understand why , and the guy said

  • Can't Chat with BB OS 10 Users

    Hi, please i need assistance. I have been unable to chat with user's on th BB 10 series for over 2 weeks on  blackberry messenger. I receive their chats but mine doesn't get delivered to them. In addition, all the groups on my phone wiped out. I trie