{"id":163615,"date":"2018-06-27T02:40:00","date_gmt":"2018-06-26T18:40:00","guid":{"rendered":"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/?guid=2d8c95ff8c4e9937e42ce34aa446792b"},"modified":"2019-08-30T02:40:00","modified_gmt":"2019-08-29T18:40:00","slug":"mastering-java-exceptions-part-1-exception-handling-basics","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2018\/06\/27\/mastering-java-exceptions-part-1-exception-handling-basics\/","title":{"rendered":"Mastering Java exceptions, Part 1: Exception handling basics"},"content":{"rendered":"<article>\n<section class=\"page\">\n<p>Java exceptions are library types and language features used to represent and deal with program failure.\u00a0If you&#8217;ve wanted to understand how failure is represented in source code, you&#8217;ve come to the right place. In addition to an overview of Java exceptions, I&#8217;ll get you started with Java&#8217;s language features for throwing objects, trying code that may fail, catching thrown objects, and cleaning up your Java code after an exception has been thrown.<\/p>\n<p>In the first half of this tutorial you&#8217;ll learn about basic language features and library types that have been around since Java 1.0. In the <a href=\"https:\/\/www.javaworld.com\/article\/3269037\/mastering-java-exceptions-part-2-advanced-features-and-library-types.html\" rel=\"noopener\" >second half,<\/a>\u00a0you&#8217;ll discover advanced capabilities introduced in more recent Java versions.<\/p>\n<p class=\"jumpTag\"><a href=\"https:\/\/www.javaworld.com\/article\/3269036\/mastering-java-exceptions-part-1-exception-handling-basics.html#jump\">To read this article in full, please click here<\/a><\/p>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<article>\n<section>\n<p>Java exceptions are library types and language features used to represent and deal with program failure.&nbsp;If you&#8217;ve wanted to understand how failure is represented in source code, you&#8217;ve come to the right place. In addition to an overview of Java exceptions, I&#8217;ll get you started with Java&#8217;s language features for throwing objects, trying code that may fail, catching thrown objects, and cleaning up your Java code after an exception has been thrown.<\/p>\n<p>In the first half of this tutorial you&#8217;ll learn about basic language features and library types that have been around since Java 1.0. In the <a href=\"https:\/\/www.javaworld.com\/article\/3269037\/mastering-java-exceptions-part-2-advanced-features-and-library-types.html\" rel=\"noopener\" target=\"_blank\">second half,<\/a>&nbsp;you&#8217;ll discover advanced capabilities introduced in more recent Java versions.<\/p>\n<p><a href=\"https:\/\/www.javaworld.com\/article\/3269036\/mastering-java-exceptions-part-1-exception-handling-basics.html#jump\">To read this article in full, please click here<\/a><\/p>\n<\/section>\n<\/article>\n<p> <a href=\"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2018\/06\/27\/mastering-java-exceptions-part-1-exception-handling-basics\/\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":123,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"slim_seo":[],"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[12,2,315,240],"tags":[398,402,397,414,413,528,410,409,407,408,406,399,400,394,318,526,375,523,183,184,529,524,232,10,401,396,381,403,412,411,395,405,404,525,457,530,363,384,321,320,319,316,26,527,317],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7prtj-GyX","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/163615"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/users\/123"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/comments?post=163615"}],"version-history":[{"count":3,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/163615\/revisions"}],"predecessor-version":[{"id":173820,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/163615\/revisions\/173820"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/media?parent=163615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/categories?post=163615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/tags?post=163615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}