javaÖеÄÏÝÚ壬Äã×¢ÒâÁËô£¿
´ð°¸Òþ²ØÁË£¬Ctrl+AÏÔʾ¡£½¨ÒéÏÈ˼¿¼Ò»Ï½á¹û£¬È»ºóÔËÐдúÂëÊÔÑé¡£Ò²ÐíÄã»á»ÐÈ»´óÎò¡£
1¡¢ÕÒÆæÊý£º
view plaincopy to clipboardprint?
public static boolean isOdd(int i){
return i % 2 == 1;
}
public static boolean isOdd(int i){
return i % 2 == 1;
}
ÉÏÃæµÄ·½·¨ÕæµÄÄÜÕÒµ½ËùÓÐµÄÆæÊýô£¿
A£ºÃ»Óп¼Âǵ½¸ºÊýÎÊÌ⣬Èç¹û´«²ÎÊǸºÊý£¬ÄÇôÓÀÔ¶²»Äܵõ½½á¹û£¡Ó¦¸ÃÊÇ£ºreturn i % 2 != 0;
2¡¢¸¡µãÊýÏë¼õ
view plaincopy to clipboardprint?
System.out.println(2.0-1.9);
System.out.println(2.0-1.9);
ÉÏÃæ»á´òÓ¡0.1ô£¿
A:²»»á£¬×Ô¼ºÊÔÑé¾ÍÖªµÀ½á¹ûÁË¡£ÕýÈ·×ö·¨£ºÓÃdecimal¡£
3¡¢½»»»
view plaincopy to clipboardprint?
int x = 2010;
int y = 2012;
x^=y^=x^=y;
System.out.println("x= " + x + "; y= " + y);
int x = 2010;
int y = 2012;
x^=y^=x^=y;
System.out.println("x= " + x + "; y= " + y);
x¡¢yµÄÖµºô»½ÁËô£¿
A:ûÓУ¬javaÔËËã˳ÐòÊÇ´Ó×óµ½Óҵģ¬Ó¦¸ÃÕâôд£ºy=(x^= (y^= x))^ y;
4¡¢×Ö·ûºÍ×Ö·û´®
System.out.println("H" + "a");
System.out.println('H' + 'a');
System.out.println("H" + "a");
System.out.println('H' + 'a');
ÉÏÃæÁ½¸öÓï¾äÊä³ö½á¹ûÏàͬô£¿
A£º²»Ïàͬ£¬×Ö·û»á±»×ª»»³ÉÔÚÊý×Ö¡£ËùÒÔµÚÒ»¾äÊä³ö£ºHa£¬µÚ¶þ¾äÊä³öÁ½¸ö×Ö·ûµÄassiiÂëÏà¼ÓµÄÊý×Ö¡£
5¡¢ÎÞÏÞÑ»·
view plaincopy to clipboardprint?
public static final int END = Integer.MAX_VALUE;
public static final int START = END - 100;
public static void main(String[] args) {
int count = 0;
for (int i = START; i <= END; i++)
count++;
System.out.println(count);
}
public static final int END = Integer.MAX_VALUE;
public static final int START = END - 100;
public static void main(String[] args) {
int count = 0;
for (int i = START; i <= END; i++)
count++;
System.out.println(count);
}
ÉÏÃæ³ÌÐòÔËÐеĽá¹ûÊÇʲô£¿
A£ºÎÞÏÞÑ»·¡£½«i<=END¸Ä³Éi<END£¿ÎªÊ²Ã´ÄØ£¿ÄãÖªµÀµÄ£¬ºÇºÇ£¡
6¡¢¼ÆÊýÆ÷ÎÊÌâ
view plaincopy to clipboardprint?
int minutes = 0;
for (int ms = 0; ms < 60*60*1000; ms++)
if
Ïà¹ØÎĵµ£º
Ò»¡¢Ö÷Òª¹¦ÄÜ£º
1¡¢Ö§³Ö´¿Êý×Ö¡¢´óд×Öĸ¡¢Ð¡Ð´×Öĸ£¬¼°Á½Á½»ìºÏ»òÈýÕß»ìºÏÀàÐÍÑéÖ¤Â룻
2¡¢Ö§³Ö×Ô¶¨ÒåÌØÊâ×Ö·ûÅųý£¨Èç0oOi1jI£©£»
3¡¢Ö§³ÖͼƬ¼°ÎÄ×ÖÁ½ÖÖÀàÐÍÑéÖ¤Â룻
4¡¢Ö§³Ö×Ô¶¨ÒåÑéÖ¤ÂëͼƬ´óС£»
5¡¢Ö§³Ö×Ô¶¨Òå¸ÉÈÅÏßÌõÊý£»
6¡¢Ö§³Ö×Ô¶¨Òå¼°Ëæ»ú¶¨ÒåͼƬ¡¢ÎÄ×Ö¡¢¸ÉÈÅÏßÑÕÉ«£»
......
Spring Framework ¡¾Java¿ªÔ´ J2EE¿ò¼Ü¡¿
SpringÊÇÒ»¸ö½â¾öÁËÐí¶àÔÚJ2EE¿ª·¢Öг£¼ûµÄÎÊÌâµÄÇ¿´ó¿ò¼Ü¡£ SpringÌṩÁ˹ÜÀíÒµÎñ¶ÔÏóµÄÒ»Ö·½·¨²¢ÇÒ¹ÄÀøÁË×¢Èë¶Ô½Ó¿Ú±à³Ì¶ø²»ÊǶÔÀà±à³ÌµÄÁ¼ºÃϰ¹ß¡£SpringµÄ¼Ü¹¹»ù´¡ÊÇ»ùÓÚʹÓÃJavaBeanÊôÐ﵀ Inversion of ControlÈÝÆ÷¡£È»¶ø£¬Õâ½ö½öÊÇÍêÕûͼ¾°ÖеÄÒ»²¿·Ö£ºSpringÔÚʹ ......
×î½üÏîÄ¿ÖÐÐèÒªÔÚÒ³ÃæÖÐÔ¤ÀÀwordÎļþ£¬Ëä˵word±¾Éí¾Í¿ÉÒÔÔÚÒ³ÃæÖдò¿ª£¬µ«ÊÇÓÐÁ½¸ö±×¶Ë£¬1Êǿɿͻ§¶Ë±ØÐë°²×°word£¬ 2Êǿͻ§¶ËµÄ»·¾³ÒÔ¼°office°æ±¾ÓвîÒ죬»áÔì³ÉÔ¤ÀÀ²»Îȶ¨¡£ÔÚÍøÉÏÕÒÁËһϣ¬·¢ÏÖpoi¿ÉÒÔ°Ñword×°»»³Étxt,µ«ÊǸñʽ¶¼¶ªÁË,Ö»ÓйâͺͺµÄÎı¾,ÓÖËÑjacob, ÍøÓÑÃÇÖÚ˵·×ç¡, ×îºó»¹ÊÇ×Ô¼ºsourceforgeÉÏÏÂÔØjaco ......
JSP¾Å´óÄÚÖöÔÏó£º
1.ÓëServletÓйصÄÒþº¬µÄ¶ÔÏó
(1)page page¶ÔÏó¶ÔÓ¦JavaÖеĹؼü×Öthis,Ëü´ú±íµ±Ç°JSPÒ³Ãæ
(2)config Config¶ÔÏóʹÓÃWebÈÝÆ ......
ÓÉÓÚÊÖÍ·ÓиöÏîÄ¿ÐèÒªÓõÄJavaµÄÊäÈëÊä³ö²Ù×÷£¬
¡¡¡¡ËùÒÔ£¬¿ÐÁ˼¸ÌìÊ飬¶ÔJavaµÄÁ÷¼¼ÊõÓÐЩÁ˽⣬²»¹ý£¬»¹ÊÇÓкܶ಻ÊǺÜÃ÷°×£¬ÏÂÃæÊÇÎÒ¿´ÊéÕûÀíµÄһЩ±Ê¼Ç£¬ÑϸñµÄ˵Ӧ¸Ã²»ÊÇÔ´´£¬ÎÒÌù³öÀ´Ö»ÊÇÏ£Íû¶Ô´ó¼ÒÓÐһЩ°ïÖú
¡¡¡¡
¡¡¡¡1¡¢JavaÓµÓÐÒ»¸öÍêÕûµÄÁ÷ÀàÐÍ£¬×ÜÊý³¬¹ý60£¬¶øËĸö³éÏóÀ๹³ÉÁËÕâЩÀàµÄ»ù´¡
¡¡¡¡
¡¡¡¡In ......