{"id":65854,"date":"2021-07-16T04:10:06","date_gmt":"2021-07-16T08:10:06","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/scjp-more-rules-java-short-notes-scjp\/"},"modified":"2022-05-10T20:04:08","modified_gmt":"2022-05-11T00:04:08","slug":"scjp-more-rules-java-short-notes-scjp","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=65854","title":{"rendered":"SCJP: More Rules #Java Short Notes #SCJP"},"content":{"rendered":"<ul>\n<li> java -classpath gFolder\/Game.jar civilization.java:           In such command, -classpath will override (replace)           CLASSPATH environment variable.    <\/li>\n<li> 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.    <\/li>\n<li> If you want java compiler to recognize your jar file,         either you have to mention the location of the jar          file in javac command using -classpath switch or you          have to add the jar file in the CLASSPATH environment         variable. Mentionable &#8211; you need to add the file,          adding upto the directory will not work.   <\/li>\n<li> Garbage collection: can Java program run out of         memory? yes.   <\/li>\n<li> Can objects be garbage collected even if it has a         valid reference? yes. when no live thread         has access to the object.   <\/li>\n<li> Can Objects created within inner classes be eligible         for garbage collection.? yes.    <\/li>\n<li> Do garbage collector deletes objects from the stack?        No. As objects reside in heaps not in the stack.    <\/li>\n<li> If an object&#8217;s finalize method runs to completion         will it always be garbage collected? No. The         finalize method may create some other references.   <\/li>\n<li> Arrays.equals(Object[] a1, Object[] a2) : Returns true if         the two specified arrays of Objects are equal to one        another    <\/li>\n<li> The results of Binary search on an unsorted array          are undefined    <\/li>\n<li> <a> Alpha go(int i) is a valid method         declaration with a generic return type. class          Alpha{}  <\/a><\/li>\n<\/ul>\n<p> From: http:\/\/sitestree.com\/?p=4891<br \/> Categories:Java Short Notes, SCJP<br \/>Tags:<br \/> Post Data:2010-06-26 02:46:16<\/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 -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 the location of the jar &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=65854\">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-65854","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":65818,"url":"http:\/\/bangla.sitestree.com\/?p=65818","url_meta":{"origin":65854,"position":0},"title":"SCJP: Classpath and Jar #Java Short Notes #SCJP #Blog","author":"Sayed","date":"July 15, 2021","format":false,"excerpt":"Java certification exams like SCJP test your knowledge about java classpath. Check here for an excellent resource on the topic . System classpathWe can specify classpath in the command line or make use of a `system' class path. The IDEs have their own way of maintaining class paths. System class\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":22132,"url":"http:\/\/bangla.sitestree.com\/?p=22132","url_meta":{"origin":65854,"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":65858,"url":"http:\/\/bangla.sitestree.com\/?p=65858","url_meta":{"origin":65854,"position":2},"title":"SCJP Essential Knowledge #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"int x=5; String y=\"3\"; System.out.print(x + 1 + y); Output: 63 When there is no live reference to an object, the object becomes eligible for garbage collection. The concrete interface method implementation must be public. When a class implements Comparator, it must implement a compare method. When a class implements\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":65854,"position":3},"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":67418,"url":"http:\/\/bangla.sitestree.com\/?p=67418","url_meta":{"origin":65854,"position":4},"title":"Apache Axis: Installation: Application Deployment: SOAP Message Monitoring #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 21, 2021","format":false,"excerpt":"Apache Axis: Installation: Application Deployment: SOAP Message Monitoring ..... .... .... .... .... ... ... ... ... Video Tutorial Explaining the Concepts in this Short-Note JAX-RPC is about SOA, SOAP, XML, Remote communications Apache Axis implements JAX-RPC API. Hence, when you code to this API, your application will run with\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":67404,"url":"http:\/\/bangla.sitestree.com\/?p=67404","url_meta":{"origin":65854,"position":5},"title":"How to create apache axis based SOA application #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 21, 2021","format":false,"excerpt":"Tools required\/Used: J2SE6, Tomcat 6.0.16, Apache Axis 1.4, mailapi.jar and activation.jar. Tools can be downloaded from Apache Axis Based SOA Application Development DID NOT MENTION in the Video: You have to keep tools.jar from J2SE6 in the classpath or make it accessible from the application anyhow Set your CATALINA_HOME 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":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65854","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=65854"}],"version-history":[{"count":2,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65854\/revisions"}],"predecessor-version":[{"id":74738,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/65854\/revisions\/74738"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=65854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=65854"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=65854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}