首页 开发技术 Java     /    Java常用的3中设计模式代码即工厂模式、单例模式、观察者模式demo

Java常用的3中设计模式代码即工厂模式、单例模式、观察者模式demo

上传者: it_java_wh | 上传时间:2025/11/18 19:41:27 | 文件大小:17KB | 文件类型:rar
Java常用的3中设计模式代码即工厂模式、单例模式、观察者模式demo
java三种设计模式Demo其中对单例模式做了详细的讲解,及性能和线程安全方面的优化其中Singleton.java为经典单例模式。
本软件ID:5993945

文件下载

资源详情

[{"title":"(40个子文件17KB)Java常用的3中设计模式代码即工厂模式、单例模式、观察者模式demo","children":[{"title":"testWeb","children":[{"title":".project <span style='color:#111;'>1.02KB</span>","children":null,"spread":false},{"title":"WebContent","children":[{"title":"WEB-INF","children":[{"title":"lib","children":null,"spread":false}],"spread":true},{"title":"js","children":[{"title":"test.js <span style='color:#111;'>72B</span>","children":null,"spread":false}],"spread":true},{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'>39B</span>","children":null,"spread":false}],"spread":true},{"title":"testJS.jsp <span style='color:#111;'>635B</span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"factory","children":[{"title":"Nvwa.java <span style='color:#111;'>308B</span>","children":null,"spread":false},{"title":"Test.java <span style='color:#111;'>579B</span>","children":null,"spread":false},{"title":"Li.java <span style='color:#111;'>309B</span>","children":null,"spread":false},{"title":"People.java <span style='color:#111;'>117B</span>","children":null,"spread":false},{"title":"Zhang.java <span style='color:#111;'>314B</span>","children":null,"spread":false}],"spread":true},{"title":"observer","children":[{"title":"Cstudent.java <span style='color:#111;'>419B</span>","children":null,"spread":false},{"title":"Bstudent.java <span style='color:#111;'>423B</span>","children":null,"spread":false},{"title":"Teacher.java <span style='color:#111;'>1.07KB</span>","children":null,"spread":false},{"title":"Astudent.java <span style='color:#111;'>431B</span>","children":null,"spread":false}],"spread":true},{"title":"singleton","children":[{"title":"Singleton1.java <span style='color:#111;'>341B</span>","children":null,"spread":false},{"title":"Singleton3.java <span style='color:#111;'>338B</span>","children":null,"spread":false},{"title":"Singleton2.java <span style='color:#111;'>360B</span>","children":null,"spread":false},{"title":"meiwenti","children":[{"title":"Singleton4.java <span style='color:#111;'>434B</span>","children":null,"spread":false},{"title":"Singleton.java <span style='color:#111;'>954B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'>49B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'>345B</span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>395B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'>6B</span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'>475B</span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'>503B</span>","children":null,"spread":false}],"spread":true},{"title":"build","children":[{"title":"classes","children":[{"title":"factory","children":[{"title":"Nvwa.class <span style='color:#111;'>749B</span>","children":null,"spread":false},{"title":"Zhang.class <span style='color:#111;'>698B</span>","children":null,"spread":false},{"title":"Li.class <span style='color:#111;'>692B</span>","children":null,"spread":false},{"title":"People.class <span style='color:#111;'>151B</span>","children":null,"spread":false},{"title":"Test.class <span style='color:#111;'>704B</span>","children":null,"spread":false}],"spread":true},{"title":"observer","children":[{"title":"Cstudent.class <span style='color:#111;'>805B</span>","children":null,"spread":false},{"title":"Astudent.class <span style='color:#111;'>805B</span>","children":null,"spread":false},{"title":"Teacher.class <span style='color:#111;'>1.09KB</span>","children":null,"spread":false},{"title":"Bstudent.class <span style='color:#111;'>806B</span>","children":null,"spread":false}],"spread":true},{"title":"singleton","children":[{"title":"Singleton2.class <span style='color:#111;'>455B</span>","children":null,"spread":false},{"title":"Singleton1.class <span style='color:#111;'>465B</span>","children":null,"spread":false},{"title":"Singleton3.class <span style='color:#111;'>488B</span>","children":null,"spread":false},{"title":"meiwenti","children":[{"title":"Singleton$SingletonInstanceClass.class <span style='color:#111;'>703B</span>","children":null,"spread":false},{"title":"Singleton4.class <span style='color:#111;'>599B</span>","children":null,"spread":false},{"title":"Singleton.class <span style='color:#111;'>619B</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":".classpath <span style='color:#111;'>841B</span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • j1329664619:
    我用上了代码写的很可以2015-06-10
  • linhongjie_only:
    对初学者的帮助挺大的2015-04-25
  • u011037163:
    还行吧,虽然对我没有多大用处2015-04-20
  • yunzhonmghe:
    不错,适合初学者...2014-09-01
  • cmxiaoerlang:
    还可以,很容易理解2014-08-18

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明