Trending Up...

Trending Up...

图解eclipse+myelcipse开发EJB[ZZ] + My Deployment

在开发ejb之前,我们先得配置好服务器,我使用的是Weblogic9.0中文版,关于Weblogic9.0配置请看我的另一片文章。配置Weblogic9.0        首先需要配置好eclipse。我这里主要说明weblogic的配置。         注意JDK选择JDK5.0的版本。   ...

2007-06-20 14:49:00

阅读数 2436

评论数 0

Simplest HTTP-JSP-Servlet-Struts-JDBC-Hibernate demo

Java Webx86 Assembly = ServletC  = JSPC++  = JSF================================Online Shopping CartHTTP Cookies vs. HTTP QueryString/Web beacon=====...

2007-05-24 11:14:00

阅读数 1102

评论数 0

(Item 11) Comparable

(Item 11) ComparableWhy: by implementing comparable, your class can interoperate with many generic algorithms.Contract: compare the object with anoth...

2007-05-13 21:29:00

阅读数 782

评论数 0

(Item 10) Override clone() judiciously

 (Item 10) Override clone() judiciouslyGeneral Contractx.clone() != xx.clone().getClass() == x.getClass()x.clone().equal(x) == true In practice, a cl...

2007-05-13 21:16:00

阅读数 723

评论数 0

(Item 8) Override hashCode when you override equals()

(Item 8) Override hashCode when you override equals()Incentivepublic final class PhoneNumber {         private final short areaCode;         private ...

2007-05-11 00:23:00

阅读数 885

评论数 0

(Item 7) Override equlas()

(Item 7) Override equlas()1)    Use == to check “this”2)    Use instanceof to check type3)    Cast argument to correct type4)    Check equality of ea...

2007-05-11 00:07:00

阅读数 809

评论数 0

(Item 6) Avoid finalizer

(Item 6) Avoid finalizer1) Java Language Specification provide no guarantee that finalizer will get executed.2) Nothing time-critical should ever be ...

2007-05-07 00:09:00

阅读数 716

评论数 0

(Item 5) Eliminate obsolete object references

(Item 5) Eliminate obsolete object referencespublic class Stack {     private Object[] elements;     private int size = 0;      public Stack(int init...

2007-05-07 00:05:00

阅读数 730

评论数 0

(Item 4) Avoid creating duplicate objects, reuse immutable objects

(Item 4) Avoid creating duplicate objects, reuse immutable objectsString s = new String(“Created each time when executed!!”); // DON’T DO THISA impro...

2007-05-06 23:58:00

阅读数 712

评论数 0

(Item 2) singleton

(Item 2) singleton//use final fieldpublic class Elvis {        public static final Elvis INSTANCE = new Elvis(); //public field        private Elvis(...

2007-05-06 23:56:00

阅读数 683

评论数 0

(Item 1) use static factory to substitute constructors

(Item 1) use static factory to substitute constructorsmore meaningful name than constructor namedon’t require to create new instance each time they’r...

2007-05-06 23:54:00

阅读数 653

评论数 0

TIJ Note - Object creation process

[the content of this article is summaried from Thinking In Java]The process of creating an object. Consider a class called Dog: The first time an...

2007-05-06 12:05:00

阅读数 748

评论数 0

TIJ Note - Garbage collection

[the content of this article is summaried from Thinking In Java]1)      Your object might not get garbage collectedAll is controlled by JVM2)      Ga...

2007-05-06 12:00:00

阅读数 691

评论数 0

用linked list 来理解Decorator 模式

/* * decorator in linked list s point of view ?????? */class TestClass { String desc; TestClass tc; public TestClass(TestClass tc, String de...

2006-02-13 12:04:00

阅读数 877

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭