java ¾²Ì¬´úÂë¿é
£¨Ò»£©java ¾²Ì¬´úÂë¿é ¾²Ì¬·½·¨Çø±ð
Ò»°ãÇé¿öÏÂ,Èç¹ûÓÐЩ´úÂë±ØÐëÔÚÏîÄ¿Æô¶¯µÄʱºò¾ÍÖ´ÐеÄʱºò,ÐèҪʹÓþ²Ì¬´úÂë¿é,ÕâÖÖ´úÂëÊÇÖ÷¶¯Ö´ÐеÄ;ÐèÒªÔÚÏîÄ¿Æô¶¯µÄʱºò¾Í³õʼ»¯,ÔÚ²»´´½¨¶ÔÏóµÄÇé¿öÏÂ,ÆäËû³ÌÐòÀ´µ÷ÓõÄʱºò,ÐèҪʹÓþ²Ì¬·½·¨,ÕâÖÖ´úÂëÊDZ»¶¯Ö´ÐеÄ.¾²Ì¬·½·¨ÔÚÀà¼ÓÔصÄʱºò ¾ÍÒѾ¼ÓÔØ ¿ÉÒÔÓÃÀàÃûÖ±½Óµ÷Óà ±ÈÈçmain·½·¨¾Í±ØÐëÊǾ²Ì¬µÄ£¬ÕâÊdzÌÐòÈë¿Ú
Á½ÕßµÄÇø±ð¾ÍÊÇ:¾²Ì¬´úÂë¿éÊÇ×Ô¶¯Ö´ÐеÄ; ¾²Ì¬·½·¨ÊDZ»µ÷ÓõÄʱºò²ÅÖ´Ðеġ£
¾²Ì¬·½·¨£º
£¨1£©ÔÚJavaÀ¿ÉÒÔ¶¨ÒåÒ»¸ö²»ÐèÒª´´½¨¶ÔÏóµÄ·½·¨£¬ÕâÖÖ·½·¨¾ÍÊǾ²Ì¬·½·¨¡£ÒªÊµÏÖÕâÑùµÄЧ¹û£¬Ö»ÐèÒªÔÚÀàÖж¨ÒåµÄ·½·¨Ç°¼ÓÉÏstatic¹Ø¼ü×Ö¡£ÀýÈ磺public static int maximum(int n1,int n2)
ʹÓÃÀàµÄ¾²Ì¬·½·¨Ê±£¬×¢Ò⣺
a£¬ÔÚ¾²Ì¬·½·¨ÀïÖ»ÄÜÖ±½Óµ÷ÓÃͬÀàÖÐÆäËûµÄ¾²Ì¬³ÉÔ±£¨°üÀ¨±äÁ¿ºÍ·½·¨£©£¬¶ø²»ÄÜÖ±½Ó·ÃÎÊÀàÖеķǾ²Ì¬³ÉÔ±¡£ÕâÊÇÒòΪ£¬¶ÔÓڷǾ²Ì¬µÄ·½·¨ºÍ±äÁ¿£¬ÐèÒªÏÈ´´½¨ÀàµÄʵÀý¶ÔÏóºó²Å¿ÉʹÓ㬶ø¾²Ì¬·½·¨ÔÚʹÓÃÇ°²»Óô´½¨ÈκζÔÏó¡£
b£¬¾²Ì¬·½·¨²»ÄÜÒÔÈκη½Ê½ÒýÓÃthisºÍsuper¹Ø¼ü×Ö£¬ÒòΪ¾²Ì¬·½·¨ÔÚʹÓÃÇ°²»Óô´½¨ÈκÎʵÀý¶ÔÏ󣬵±¾²Ì¬·½·¨µ÷ÓÃʱ£¬thisËùÒýÓõĶÔÏó¸ù±¾Ã»ÓвúÉú¡£
£¨2£©¾²Ì¬±äÁ¿ÊÇÊôÓÚÕû¸öÀàµÄ±äÁ¿¶ø²»ÊÇÊôÓÚij¸ö¶ÔÏóµÄ¡£×¢Òâ²»ÄÜ°ÑÈκη½·¨ÌåÄڵıäÁ¿ÉùÃ÷Ϊ¾²Ì¬£¬ÀýÈ磺
fun () {
static int i=0;//·Ç·¨¡£
}
£¨3£©Ò»¸öÀà¿ÉÒÔʹÓò»°üº¬ÔÚÈκη½·¨ÌåÖеľ²Ì¬´úÂë¿é£¬µ±Àà±»ÔØÈëʱ£¬¾²Ì¬´úÂë¿é±»Ö´ÐУ¬ÇÒÖ®±»Ö´ÐÐÒ»´Î£¬¾²Ì¬¿é³£ÓÃÀ´Ö´ÐÐÀàÊôÐԵijõʼ»¯¡£ÀýÈ磺
static {
&
Ïà¹ØÎĵµ£º
×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......
Google
¡¢
VMware
ÈÃ
Java
¿¸ÆðÔƼÆËã´óÆì
ͨ¹ýÓë
Google
¡¢
Salesforce.com
µÈ
ÆóÒµ
µÄºÏ×÷£¬ÐéÄ⻯³§ÉÌ
VMware
ÕýÔÚŬÁ¦Ê¹
ÔƼÆËã
±äµÃ¸üΪÇáÁ¿¡¢¿ÉÒÆÖ²£¬ÒÔ·ûºÏ¿Í»§µÄÒªÇó¡£
Èç¹ûÓÐÈËÎÊ
Java
²úÆ·¹©Ó¦É̶¼ÓÐÄÄЩ£¿
EMC
µÄ×Ó¹«Ë¾
VMware
µÄÅÅÃû¾ø¶Ô²»»á¿¿Ç°¡£¶Ô´ó¶àÊýÈËÀ´Ëµ£¬
V ......
public class Demo
{
static int i=1;
static
{
i++;
}
public Demo()
{
......
ÎÒÃÇÊ×ÏÈÀ´¿´Ò»¶Î´úÂ룺
Java´úÂë £º
String str=new String("abc");
½ô½Ó×ÅÕâ¶Î´úÂëÖ®ºóµÄÍùÍùÊÇÕâ¸öÎÊÌ⣬ÄǾÍÊÇÕâÐдúÂ뾿¾¹´´½¨Á˼¸¸öString¶ÔÏóÄØ£¿Ïà
ÐÅ´ó¼Ò¶ÔÕâµÀÌâ²¢²»Ä°Éú£¬´ð°¸Ò²ÊÇÖÚËùÖÜÖªµÄ£¬2¸ö¡£½ÓÏÂÀ´ÎÒÃǾʹÓÕâµÀÌâÕ¹¿ª£¬Ò»Æð
»Ø¹ËÒ»ÏÂÓë´´½¨String¶ÔÏóÏà¹ØµÄһЩJAVA֪ʶ¡£
ÎÒÃÇ¿ÉÒÔ°ÑÉÏÃæÕâÐдúÂë· ......
Spring Framework ¡¾Java¿ªÔ´ J2EE¿ò¼Ü¡¿
Spring ÊÇÒ»¸ö½â¾öÁËÐí¶àÔÚJ2EE¿ª·¢Öг£¼ûµÄÎÊÌâµÄÇ¿´ó¿ò¼Ü¡£ SpringÌṩÁ˹ÜÀíÒµÎñ¶ÔÏóµÄÒ»Ö·½·¨²¢ÇÒ¹ÄÀøÁË×¢Èë¶Ô½Ó¿Ú±à³Ì¶ø²»ÊǶÔÀà±à³ÌµÄÁ¼ºÃÏ°¹ß¡£SpringµÄ¼Ü¹¹»ù´¡ÊÇ»ùÓÚʹÓÃJavaBeanÊôÐ﵀ Inversion of ControlÈÝÆ÷¡£È»¶ø£¬Õâ½ö½öÊÇÍêÕûͼ¾°ÖеÄÒ»²¿·Ö£ºSpringÔÚÊ¹Ó ......