9 Reasons Why Java EE 6 Will Save Real Money
1.Prototyping: in general (Enterprise) Java projects start with evaluation which frameworks to use. This can take from few hours, to several months (although these times are hopefully over). Java EE 6 comes with “one stop shopping”. You can download Java EE 6 with the IDE (eclipse, netbeans, jdeveloper and commercial IntelliJ) and just start hacking. You can install and develop a prototype in minutes. The package sizes are small e.g. NetBeans 6.8 with Glassfish v3, Derby and all required plugins take 146 MB Eclipse with Glassfish / Java EE tooling is also small: 147 MB for MacOS X.
2.Development: Java EE 6 implementations are lightweight. Glassfish comes with 30 MB for the Web Profile, or 75 MB (everything). Deployment takes only few milliseconds. Incremental deployment is supported out-of-the-box. You only have to save the file. The other application servers (JBoss, Caucho's Resin, Geronimo / openEJB) are expected to be similarly lightweight. Because the majority of the libraries and frameworks is already located on the server, you have only to deploy the application code. The deployment archive contains mainly your application code and is so surprisingly small - a kilobyte deployment is possible.
3.Production: Glassfish, JBoss, Geronimo and probably the others do follow the opensource model. You can decide whether you need commercial support or not. You can start small - then scale.
4.Licensing: Java EE 5/6 applications are surprisingly portable - there are no more vendor specific deployment descriptors required. You can easily port your application from one server to another. It is actually the matter of copying of an WAR / EAR archive from one directory to another. We actually did it in the past to ensure application server independence. These are is possible since Java EE 5 and so 2006. Knowing that, you have a good position to be able to get better offers for licensing / support. You are not dependent on a particular vendor and can pick the most
Ïà¹ØÎĵµ£º
Áù¡¢javaµÄÃæÏò¶ÔÏó³ÌÐòÉè¼Æ(Ïê½âequals·½·¨)
/**
* Ïê½âequals·½·¨.
*/
class Equals
{
private int i;
public void setI(int i)
{
this.i = i;
}
public Equals()
{
i = 1;
}
public Equals(int i)
{ ......
µÚÒ»ÕÂ
¿Î³Ì¸ÅÊö
javaµÄÉè¼ÆÄ¿±ê
¼òµ¥
¿ÉÒÆÖ²--
ÃæÏò¶ÔÏó--
·Ö²¼Ê½¶ÔÏó
¸ßÐÔÄÜ
½¡×³
°²È«
¶¯Ì¬
Ìåϵ½á¹¹ÖÐÁ¢
javaÊDZà³ÌÓïÑÔ Ìåϵ¼Ü¹¹ ˼¿¼·½Ê½ ÔËÐл·¾³
javaÈýÖÖºËÐÄ
javaÐéÄâ»ú jvm
À¬»øÊÕ¼¯»úÖÆ
´úÂ밲ȫÐÔ¼ì²â
¼ÆËã»ú¸ß¼¶ÓïÑÔÀàÐÍ£º±àÒëÐÍ ½âÊÍÐÍ
javaÊÇÁ½ÖÖÀàÐ͵ĽáºÏ
javaÔ´³ÌÐò ×Ö½ÚÂëÎļþ »úÆ ......
µÚ¶þÕÂ
ÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ
Èí¼þ¿ª·¢µÄÎå¸ö½×¶Î
ÐèÇó·ÖÎö ³éÏó½¨Ä£
ϵͳÉè¼Æ Ä£ÐÍϸ»¯
±àÂëʵÏÖ
²âÊԽ׶Î
ϵͳά»¤
Àà(class)ºÍ¶ÔÏó(object)ÊÇÃæÏò¶ÔÏó·½·¨µÄºËÐĸÅÄî
ÀàÊǶÔÒ»ÀàÊÂÎïµÄÃèÊö ÊdzéÏóµÄ¸ÅÄîÉϵĶ¨Òå
¶ÔÏóÊÇʵ¼Ê´æÔڵĸÃÀàÊÂÎïµÄÿ¸ö¸öÌå Òò¶ø³ÉΪʵÀýinstance ......
µÚÁùÕÂ
javaÀàÉè¼Æ
extendsÀàµÄ¼Ì³Ð
objectÀàÊÇËùÓÐjavaÀàµÄ×î¸ß²ã¸¸Àà
javaÖ»Ö§³Öµ¥¼Ì³Ð ²»ÔÊÐí¶àÖؼ̳Ð
Ò»¸ö×ÓÀàÖ»ÓÐÒ»¸ö¸¸Àà Ò»¸ö¸¸Àà¿ÉÓÃÓжà¸ö×ÓÀà
public default protected public
·½·¨ÖØд
ÔÚ×ÓÀà¿ÉÓøù¾ÝÐèÒª¶Ô¸¸Àà¼Ì³ÐµÄ·½·¨½øÐиÄÔì--·½·¨µÄÖØд
ÖØд·½·¨±ØÐëºÍ±»ÖØд·½·¨¾ßÓÐÏàͬµÄ·½·¨Ãû³Æ ²ÎÊýÁбí ......
µÚÆßÕÂ
¸ß¼¶ÀàÌØÕ÷
static
ÀàÊôÐÔÓɸÃÀàµÄËùÓÐʵÀý¹²Ïí
public static int total=0;
µ±totalËùÊôÀà±»Êý´ÎʵÀý»¯µÄʱºò totalÖ»ÓÐÒ»¸ö¶ø²»ÊǶà¸ö
Ò²¿É¾²Ì¬³õʼ»¯static
public static int total£»
static{
total=100;
}
static±ê¼ÇµÄ±äÁ¿»òÕß·½·¨ÓÉÕû¸öÀà(ËùÓÐʵÀý)¹²Ïí
µ¥×Óģʽ
class Single{
......