{"id":66312,"date":"2021-07-18T11:24:36","date_gmt":"2021-07-18T15:24:36","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/java-design-patterns-and-examples-java-short-notes\/"},"modified":"2021-07-18T11:24:36","modified_gmt":"2021-07-18T15:24:36","slug":"java-design-patterns-and-examples-java-short-notes","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=66312","title":{"rendered":"Java Design Patterns and Examples #Java Short Notes"},"content":{"rendered":"<ul>\n<li> <a href='http:\/\/java.sun.com\/blueprints\/corej2eepatterns\/Patterns\/' target='new' rel=\"noopener\">J2EE core design patterns: Click on a pattern rectangle to explore<\/a> <\/li>\n<li> <a href='http:\/\/java.sun.com\/blueprints\/patterns\/DAO.html' target='new' rel=\"noopener\">Data Access Object<\/a><\/li>\n<li> <a href='http:\/\/java.sun.com\/blueprints\/corej2eepatterns\/Patterns\/TransferObject.html' target='new' rel=\"noopener\">Transfer Object<\/a><\/li>\n<li><\/li>\n<\/ul>\n<p> From: http:\/\/sitestree.com\/?p=4934<br \/> Categories:Java Short Notes<br \/>Tags:<br \/> Post Data:2007-06-04 16:27:01<\/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>J2EE core design patterns: Click on a pattern rectangle to explore Data Access Object Transfer Object From: http:\/\/sitestree.com\/?p=4934 Categories:Java Short NotesTags: Post Data:2007-06-04 16:27:01 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<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-66312","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":22529,"url":"http:\/\/bangla.sitestree.com\/?p=22529","url_meta":{"origin":66312,"position":0},"title":"Resources Checked Recently on PHP, OOP, OOD, Java, Angular, Bootstrap, Design Patterns #Root #By Sayed Ahmed #Misc. Reading","author":"Author-Check- Article-or-Video","date":"March 15, 2021","format":false,"excerpt":"Resources Checked Recently on PHP, OOP, OOD, Java, Angular, Bootstrap, Design Patterns http:\/\/www.fluffycat.com\/PHP-Design-Patterns\/PHP-Job-Interview-Questions\/ http:\/\/php.net\/manual\/en\/language.oop5.object-comparison.php http:\/\/www.programmerinterview.com\/index.php\/design-pattern-questions\/design-pattern-interview-questions-and-answers\/ https:\/\/www.glassdoor.co.in\/Interview\/canada-software-developer-interview-questions-SRCH_IL.0,6_IN3_KO7,25.htm http:\/\/www.tutorialspoint.com\/design_pattern\/decorator_pattern.htm http:\/\/www.fluffycat.com\/PHP-Design-Patterns\/ http:\/\/programmers.stackexchange.com\/questions\/7055\/what-is-the-most-frequently-used-design-pattern http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=893 http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=987 Abstract Factory: https:\/\/sourcemaking.com\/design_patterns\/abstract_factory\/php\/2 Decorator Pattern: http:\/\/www.tutorialspoint.com\/design_pattern\/decorator_pattern.htm Singleton: http:\/\/stackoverflow.com\/questions\/8776788\/best-practice-on-php-singleton-classes http:\/\/stackoverflow.com\/questions\/203336\/creating-the-singleton-design-pattern-in-php5\/203359#203359 https:\/\/ttmm.io\/tech\/making-singletons-safe-in-php\/ Java http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=858 http:\/\/stackoverflow.com\/questions\/9948008\/what-is-sapi-and-when-would-you-use-it Cookie - securing Cookie http:\/\/blog.teamtreehouse.com\/how-to-create-totally-secure-cookies http:\/\/salearningschool.com\/displayArticle.php?table=Articles&articleID=1357&title=PHP%20Security%20-%20Guidelines https:\/\/www.quora.com\/What-is-the-difference-between-htmlentities-and-htmlspecialchars-in-PHP http:\/\/stackoverflow.com\/questions\/46483\/htmlentities-vs-htmlspecialchars Prevent CSRF in PHP http:\/\/stackoverflow.com\/questions\/1780687\/preventing-csrf-in-php PHP Security Package:\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":67688,"url":"http:\/\/bangla.sitestree.com\/?p=67688","url_meta":{"origin":66312,"position":1},"title":"Java: Some basic important stuffs #Computer Game Design #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 27, 2021","format":false,"excerpt":"Data types to represent telephone numbers:a string of ten digits can represent all ten-digit telephone numbers.an object can hold data (integers or strings) of the elements of a telephone numberan integer data type can represent all ten-digit numbers--a boolean can only represent two valuesan enumerated type can only represent 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":[]},{"id":65963,"url":"http:\/\/bangla.sitestree.com\/?p=65963","url_meta":{"origin":66312,"position":2},"title":"Generics in Java #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 18, 2021","format":false,"excerpt":"Generics can prevent many run time errors. A generic class:public class Box { private T t; \/\/ T stands for \"Type\" public void add(T t) { this.t = t; } public T get() { return t; }}Object creation:Box integerBox = new Box(); Generic method syntax: public void inspect(U u){}Type Erasure:Check\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":65906,"url":"http:\/\/bangla.sitestree.com\/?p=65906","url_meta":{"origin":66312,"position":3},"title":"Opening and reading files with Java JDK 1.0.x #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 17, 2021","format":false,"excerpt":"1. Open the file with the File class; 2. Create a FileInputStream object using the File object; 3. Convert the FileInputStream to a BufferedInputStream to greatly increase file reading speed; 4. Convert the BufferedInputStream to a DataInputStream; the methods of DataInputStream give a fair amount of flexibility in reading the\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":66308,"url":"http:\/\/bangla.sitestree.com\/?p=66308","url_meta":{"origin":66312,"position":4},"title":"EJB 3.0: Specifications : Simplified API #Java Short Notes","author":"Author-Check- Article-or-Video","date":"July 18, 2021","format":false,"excerpt":"Focused on annotations - reduces the number of classes and interfaces, eliminates the need for a deployment descriptor Encapsulation of environmental dependencies and JNDI access: annotations, dependency injection, simple lookup mechanism Simpler enterprise bean types session beans: business interface can be a plain Java interface session beans: no need for\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":65870,"url":"http:\/\/bangla.sitestree.com\/?p=65870","url_meta":{"origin":66312,"position":5},"title":"SCJP Training: Lesson 6: Collections \/ Generics #Java Short Notes #SCJP","author":"Sayed","date":"July 16, 2021","format":false,"excerpt":"Object OrderingObject as a SuperclassGeneric TypesDeclaring ClassesDefining an InterfacePassing Information to a Method or ConstructorReturning a Value from a MethodGeneric TypesGeneric Methods and ConstructorsWildcardsAlgorithms From: http:\/\/sitestree.com\/?p=5053 Categories:Java Short Notes, SCJPTags: Post Data:2012-07-21 07:53:36 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\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\/66312","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\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=66312"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/66312\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=66312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=66312"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=66312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}