{"id":65862,"date":"2021-07-16T22:44:07","date_gmt":"2021-07-17T02:44:07","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/scjp-training-lesson-2-flow-control-java-short-notes-scjp\/"},"modified":"2022-05-27T22:38:20","modified_gmt":"2022-05-28T02:38:20","slug":"scjp-training-lesson-2-flow-control-java-short-notes-scjp","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=65862","title":{"rendered":"SCJP Training: Lesson 2:  Flow Control #Java Short Notes #SCJP"},"content":{"rendered":"<ul>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/java\/nutsandbolts\/if.html\" rel=\"noopener\">The if-then and if-then-else Statements<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/java\/nutsandbolts\/switch.html\" rel=\"noopener\">The switch statement<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/java\/nutsandbolts\/for.html\" rel=\"noopener\">The for Statement<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/java\/nutsandbolts\/while.html\" rel=\"noopener\">The while and do-while Statements<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/java\/nutsandbolts\/branch.html\" rel=\"noopener\">Branching Statements<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/java\/javaOO\/QandE\/creating-questions.html\" rel=\"noopener\">Questions and Exercises:Classes (assertion example)<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/handling.html\" rel=\"noopener\">Catching and Handling Exceptions<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/try.html\" rel=\"noopener\">The try Block<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/catch.html\" rel=\"noopener\">The catch Blocks<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/finally.html\" rel=\"noopener\">The finally Block<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/putItTogether.html\" rel=\"noopener\">Putting It All Together<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/catchOrDeclare.html\" rel=\"noopener\">The Catch or Specify Requirement<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/declaring.html\" rel=\"noopener\">Specifying the Exceptions Thrown by a Method<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/putItTogether.html\" rel=\"noopener\">Putting It All Together (ArrayIndexOutOfBoundsException)<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/exceptions\/throwing.html\" rel=\"noopener\">How to Throw Exceptions (NullPointerException)<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/environment\/cmdLineArgs.html\" rel=\"noopener\">Command-Line Arguments (NumberFormatException)<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/collections\/interfaces\/order.html\" rel=\"noopener\">Object Ordering (ClassCastException, IllegalStateException)<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/collections\/interfaces\/queue.html\" rel=\"noopener\">The Queue Interface (IllegalStateException)<\/a><\/li>\n<li><a class=\"TutorialLink\" target=\"new\" href=\"http:\/\/java.sun.com\/docs\/books\/tutorial\/collections\/interfaces\/list.html\" rel=\"noopener\">The List Interface (IllegalStateException)<\/a><\/li>\n<\/ul>\n<p> From: http:\/\/sitestree.com\/?p=5049<br \/> Categories:Java Short Notes, SCJP<br \/>Tags:<br \/> Post Data:2007-05-18 16:05:29<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The if-then and if-then-else Statements The switch statement The for Statement The while and do-while Statements Branching Statements Questions and Exercises:Classes (assertion example) Catching and Handling Exceptions The try Block The catch Blocks The finally Block Putting It All Together The Catch or Specify Requirement Specifying the Exceptions Thrown by a Method Putting It All &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=65862\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1917,1954],"tags":[],"class_list":["post-65862","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","category-scjp-ocjp","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":74773,"url":"http:\/\/bangla.sitestree.com\/?p=74773","url_meta":{"origin":65862,"position":0},"title":"Are you interested in becoming a Java Developer and OCJP","author":"Sayed","date":"May 31, 2022","format":false,"excerpt":"Are you interested in becoming a Java Developer and OCJP? OCJP: Oracle Certified Java Programmer? Are you interested in a Java based career track? Short Notes on: OCJP: Oracle Certified Java Programmer Certification. Written long back in the SCJP time. These are for quick review purposes, not really to learn\u2026","rel":"","context":"In &quot;\u09ac\u09cd\u09b2\u0997 \u0964 Blog&quot;","block_context":{"text":"\u09ac\u09cd\u09b2\u0997 \u0964 Blog","link":"http:\/\/bangla.sitestree.com\/?cat=182"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22132,"url":"http:\/\/bangla.sitestree.com\/?p=22132","url_meta":{"origin":65862,"position":1},"title":"SCJP: Sun Certified Java Programmer: All that you need to know #SCJP","author":"Sayed","date":"March 10, 2021","format":false,"excerpt":"Introduction to Sun Certified Java Programmer Certification CourseJava : SCJP: Important ResourcesJAVA: Some links: useful for exams like scjp\/scjaSCJP Essential KnowledgeSCJP Practice ExamsSCJP Training: Lesson 1: Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65866,"url":"http:\/\/bangla.sitestree.com\/?p=65866","url_meta":{"origin":65862,"position":2},"title":"SCJP Training: Lesson 4: Concurrency #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"Defining and Starting a ThreadThe SimpleThreads ExampleThread InterferenceMemory Consistency ErrorsSynchronized MethodsIntrinsic Locks and SynchronizationAtomic AccessGuarded Blocks From: http:\/\/sitestree.com\/?p=5051 Categories:Java Short Notes, SCJPTags: Post Data:2006-11-03 06:59:23 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium:\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65868,"url":"http:\/\/bangla.sitestree.com\/?p=65868","url_meta":{"origin":65862,"position":3},"title":"SCJP Training: Lesson 5: OO Concepts #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"InheritanceInheritanceOverriding and Hiding MethodsUsing the Keyword superOverriding and Hiding MethodsDefining MethodsUsing the Keyword super From: http:\/\/sitestree.com\/?p=5052 Categories:Java Short Notes, SCJPTags: Post Data:2009-12-15 16:31:08 Shop Online: https:\/\/www.ShopForSoul.com\/ (Big Data, Cloud, Security, Machine Learning): Courses: http:\/\/Training.SitesTree.com In Bengali: http:\/\/Bangla.SaLearningSchool.com http:\/\/SitesTree.com 8112223 Canada Inc.\/JustEtc: http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) Shop Online: https:\/\/www.ShopForSoul.com\/ Medium: https:\/\/medium.com\/@SayedAhmedCanada","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65864,"url":"http:\/\/bangla.sitestree.com\/?p=65864","url_meta":{"origin":65862,"position":4},"title":"SCJP Training: Lesson 3: API Contents #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"The Number Classes Characters Strings The StringBuilder Class Character Streams (FileReader, FileWriter) Buffered Streams (BufferedReader, BufferedWriter) Formatting (PrintWriter) File Objects (File) Data Streams Object Streams Manipulating Characters in a String (String split method) Methods of the Pattern Class Methods of the Matcher Class Scanning Formatting Formatting (PrintWriter, formatting parameters) Formatting\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":65840,"url":"http:\/\/bangla.sitestree.com\/?p=65840","url_meta":{"origin":65862,"position":5},"title":"SCJP: Interfaces #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"Interface An interface is a reference type, similar to a class Interfaces can contain only constants, method signatures, and nested types No method is implemented Interfaces cannot be instantiated They can only be implemented by classes or extended by other interfaces Interfaces are not part of the class hierarchy A\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65862","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=65862"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65862\/revisions"}],"predecessor-version":[{"id":74729,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65862\/revisions\/74729"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65862"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}