JAVA±ÊÊÔÌâÑ¡ÔñÌâ
1ÏÂÃæÄĸöÊÇÕýÈ·µÄÀàÉùÃ÷£¿¼ÙÉèÿһ¶ÎÎı¾¶¼×öΪһ¸öÃû³ÆΪFred.javaµÄÎļþµÄÈ«²¿ÄÚÈÝ£¿ a
a).
public class Fred{
public int x = 0;
public Fred (int x){
this.x=x;
}
}
b).
public class fred{
public int x = 0;
public Fred (int x){
this.x=x;
}
}
c).
public class Fred extends MyBaseClass, MyOtherBaseClass{
public int x = 0;
public Fred(int xval){
x=xval;
}
}
d).
protected class Fred{
private int x = 0;
private Fred (int xval){
x=xval;
}
}
A. a)
B. b)
C. c)
D. d)
2.ÔÚÀàÉè¼ÆÖУ¬ÀàµÄ³ÉÔ±±äÁ¿ÒªÇó½ö½öÄܹ»±»Í¬Ò»packageϵÄÀà·ÃÎÊ£¬ÇëÎÊÓ¦¸ÃʹÓÃÏÂÁÐÄĸöÐÞ´Ç´Ê d
A. protected
B. public
C. private
D. ²»ÐèÒªÈκÎÐÞ´Ç´Ê
3.ÏÂÃæÄǸöÊÇRunable½Ó¿ÚµÄ·½·¨£¿a
A. run
B. start
C. yield
D. stop
4.¸ø³öÀà¿ò¼ÜÈçÏ£º
class Example{
private int x;
//rest of class body…
}
¼Ù¶¨Í¨¹ýjava Exampleµ÷ÓÃx£¬ÏÂÁÐÄĸöÓï¾äÄܹ»Ê¹µÃÔÚExample.javaµÄmain·½·¨ÖÐÖ±½Ó·ÃÎÊx? b
A. ÉùÃ÷xΪpublic¶ø²»ÊÇprivate
B. ÉùÃ÷xΪstatic¶ø²»ÊÇprivate
C. ÉùÃ÷xΪprotected¶ø²»ÊÇprivate
D. ÉùÃ÷xΪfinal¶ø²»ÊÇprivate
5.¸ø³ö£ºÒÔÏÂÀà
public class ReturnIt{
ReturnType methodA(byte x,double y){
return (short)x/y*2;
}
}
¶ÔÓÚÔÚµÚ¶þÐеķ½·¨methodA£¬ËûµÄ·µ»ØÖµµÄÀàÐÍÓ¦¸ÃÊÇ f
A. int
B. byte
C. long
D. short
E. float
F. double
6.ÏÂÃæÁгöµÄÄǸöÊÇjavaµÄ±£Áô×Ö£¿ b
A. if
B. goto
C. while
D. case
E. then
7.Ê®½øÖƱäÁ¿iµÄֵΪ12£¬ÄÇô°Ë½øÖƵıäÁ¿iµÄֵΪ£º d
A. O08
B. O10
C. O12
D. O14
E. O16
8.ÏÂÁÐÄÄЩ˵·¨ÊÇÕýÈ·µÄ£¿ d
A. ÔÚcollectionÀàÊ÷ÉÏ£¬×²ãµÄÀà
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
±¾ÔÂ3ÈÕSunµÄJ2SE 5.0ʵÏÖÒÑÖÕ½á·þÎñÖÜÆÚ£¨End of Service Life£¬¼´EOSL£©£¬ÕâÒ»ÌìÒ²ÊÇ×îºóµÄÒ»´Î5.0¸üз¢²¼ÈÕÆÚ£¨J2SE 5.0 Update 22£©¡£Ñ°ÇóSunÖ§³ÖµÄÓû§¿ÉÒÔÑ¡ÔñÉý¼¶µ½Java 6»òÊǶ©ÔÄSunµÄJava for Business³ÌÐò¡£
SunÌṩÁ˶àÖÖ¶àÑùµÄJava¸¶·ÑÖ§³Ö¡£Java¾µäÖ§³Ö£¨classic support£©º¸ÇÁË´Ó²úÆ··¢²¼Ö®ÈÕÆð3Äê ......
JavaÓïÑÔµÄÊäÈëÊä³ö¹¦ÄÜÊÇÊ®·ÖÇ¿´ó¶øÁé»îµÄ£¬ÃÀÖв»×ãµÄÊÇ¿´ÉÏÈ¥ÊäÈëÊä³öµÄ´úÂë²¢²»ÊǺܼò½à£¬ÒòΪÄãÍùÍùÐèÒª°ü×°Ðí¶à²»Í¬µÄ¶ÔÏó¡£ÔÚJavaÀà¿âÖУ¬IO²¿·ÖµÄÄÚÈÝÊǺÜÅÓ´óµÄ£¬ÒòΪËüÉæ¼°µÄÁìÓòºÜ¹ã·º:±ê×¼ÊäÈëÊä³ö£¬ÎļþµÄ²Ù×÷£¬ÍøÂçÉϵÄÊý¾ÝÁ÷£¬×Ö·û´®Á÷£¬¶ÔÏóÁ÷£¬zipÎļþÁ÷....±¾ÎĵÄÄ¿µÄÊÇΪ´ó¼Ò×öÒ»¸ö¼òÒªµÄ½éÉÜ¡£
......
JavaÊý¾Ý¿âÁ¬½Ó£¨JDBC£©ÓÉÒ»×éÓà Java ±à³ÌÓïÑÔ±àдµÄÀàºÍ½Ó¿Ú×é³É¡£JDBC Ϊ¹¤¾ß/Êý¾Ý¿â¿ª·¢ÈËÔ±ÌṩÁËÒ»¸ö±ê×¼µÄ API£¬Ê¹ËûÃÇÄܹ»Óô¿Java API À´±àдÊý¾Ý¿âÓ¦ÓóÌÐò¡£È»¶ø¸÷¸ö¿ª·¢É̵Ľӿڲ¢²»ÍêÈ«Ïàͬ£¬ËùÒÔ¿ª·¢»·¾³µÄ±ä»¯»á´øÀ´Ò»¶¨µÄÅäÖñ仯¡£±¾ÎÄÖ÷Òª¼¯ºÏÁ˲»Í¬Êý¾Ý¿âµÄÁ¬½Ó·½Ê½¡£
¡¡¡¡Ò»¡¢Á¬½Ó¸÷ÖÖÊý¾Ý¿ ......
¡¡¡¡»¥ÁªÍøµÄáÈÆð£¬Ê¹µÃPC´Ó²úÒµÖÐÐÄÏò±ßÔµ¹ý¶É£¬¶øÀú¾20ÓàÄêµÄ·¢Õ¹£¬PCÊг¡Ò²Ç÷ÓÚ±¥ºÍ£¬´½Íö³Ýº®£¬Õâ½Ð¿¿PC³Ô·¹µÄ΢ÈíÈçºÎ²»¼±£¿ÎüÈ¡Á˵±Ä꿪·¢ä¯ÀÀÆ÷Èí¼þµÄ½Ìѵ£¬2000Äê6Ô£¬Î¢ÈíÆô¶¯.Net¼Æ»®£¬½ø¾üÍøÂç·þÎñÊг¡£¬±È¶û·¸Ç´Ä×ÔÐŵسƣº"ÊÀ½çÉÏËùÓÐÒ»Çж¼½«°üÀ¨ÔÚ»¥ÁªÍø·þÎñÖС£"
¡¡¡¡.NETµÄ˼ÏëÆäʵÊÇÀ´Ô ......