{"id":65848,"date":"2021-07-16T04:10:05","date_gmt":"2021-07-16T08:10:05","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/scjp-java-concurrency-java-short-notes-scjp\/"},"modified":"2022-05-28T19:53:50","modified_gmt":"2022-05-28T23:53:50","slug":"scjp-java-concurrency-java-short-notes-scjp","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=65848","title":{"rendered":"SCJP: Java Concurrency #Java Short Notes #SCJP"},"content":{"rendered":"<ul>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/highlevel.html' target='new' rel=\"noopener\">Java High Level Concurrency Objects<\/a>  <\/li>\n<li> constructors cannot be synchronized  <\/li>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/liveness.html' target='new' rel=\"noopener\">Liveness of multi-threaded applications<\/a><\/li>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/immutable.html' target='new' rel=\"noopener\">Immutable Objects<\/a><\/li>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/procthread.html' target='new' rel=\"noopener\">An application may have one or more processes. A process may have one or more threads.<\/a><\/li>\n<li><a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/runthread.html' target='new' rel=\"noopener\">Two ways to create threads<\/a><\/li>\n<li><a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/sleep.html' target='new' rel=\"noopener\">Thread.sleep(4000); To pause a thread. The time like 4000 ms is really dependent on the os and not precise<\/a><\/li>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/interrupt.html' target='new' rel=\"noopener\">Thread Interrupts<\/a><\/li>\n<li><a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/concurrency\/join.html' target='new' rel=\"noopener\">Thread Join<\/a><\/li>\n<li><a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/regex\/index.html' target='new' rel=\"noopener\">Regular Expression<\/a><\/li>\n<li> Regular expression &#8211; meta characters: ([{^-$|]})?*+.<\/li>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/regex\/char_classes.html' target='new' rel=\"noopener\">Character Classes for Regular Expressions<\/a><\/li>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/regex\/pattern.html' target='new' rel=\"noopener\">Pattern Class<\/a><\/li>\n<li> <a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/regex\/matcher.html' target='new' rel=\"noopener\">Matcher Class<\/a><\/li>\n<li> System.getenv(): get environment variables in a hashmap.<\/li>\n<li> System.getProperty(&#8220;path.separator&#8221;); System.setProperties : read and write system properties.<\/li>\n<li><a href='http:\/\/java.sun.com\/docs\/books\/tutorial\/essential\/environment\/properties.html' target='new' rel=\"noopener\">How to use Properties to keep application properties<\/a><\/li>\n<li> Access SecurityManager: SecurityManager appsm = System.getSecurityManager();<\/li>\n<\/ul>\n<p> From: http:\/\/sitestree.com\/?p=4879<br \/> Categories:Java Short Notes, SCJP<br \/>Tags:<br \/> Post Data:2009-04-19 03:15:05<\/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>Java High Level Concurrency Objects constructors cannot be synchronized Liveness of multi-threaded applications Immutable Objects An application may have one or more processes. A process may have one or more threads. Two ways to create threads Thread.sleep(4000); To pause a thread. The time like 4000 ms is really dependent on the os and not precise &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=65848\">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_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917,1954],"tags":[],"class_list":["post-65848","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":22132,"url":"http:\/\/bangla.sitestree.com\/?p=22132","url_meta":{"origin":65848,"position":0},"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":65848,"position":1},"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":74773,"url":"http:\/\/bangla.sitestree.com\/?p=74773","url_meta":{"origin":65848,"position":2},"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":65872,"url":"http:\/\/bangla.sitestree.com\/?p=65872","url_meta":{"origin":65848,"position":3},"title":"SCJP Training: Lesson 7: Fundamentals #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"Controlling Access to Members of a ClassUsing Package MembersCommand-Line ArgumentsCommand-Line I\/O ObjectsPassing information to a Method or ConstructorUsing ObjectsManaging Source and Class FilesAssignment, Arithmetic, and Unary OperatorsEquality, Relational, and Conditional OperatorsObject as a SuperclassComparing Strings and Portions of Strings From: http:\/\/sitestree.com\/?p=5054 Categories:Java Short Notes, SCJPTags: Post Data:2009-05-18 14:59:18 Shop Online:\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":65854,"url":"http:\/\/bangla.sitestree.com\/?p=65854","url_meta":{"origin":65848,"position":4},"title":"SCJP: More Rules #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"java -classpath gFolder\/Game.jar civilization.java: In such command, -classpath will override (replace) CLASSPATH environment variable. java -classpath gFolder\/Game.jar civilization.java: if both gFolder and current directory contain Game.jar then the jar file under gFolder will be used. If you want java compiler to recognize your jar file, either you have to mention\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":65824,"url":"http:\/\/bangla.sitestree.com\/?p=65824","url_meta":{"origin":65848,"position":5},"title":"SCJP: Garbage Collection #Java Short Notes #SCJP","author":"Sayed","date":"July 15, 2021","format":false,"excerpt":"Garbage Collection Java itself does memory management. You do not need to allocate memory at the time of object creation; also you do not need to free memory explicitly Object is created either on the heap or on a stack Memory heap: Objects created with new keyword are placed in\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\/65848","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=65848"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65848\/revisions"}],"predecessor-version":[{"id":74741,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65848\/revisions\/74741"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65848"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65848"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65848"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}