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ÀàÊ÷ÉÏ£¬×²ãµÄÀà
Ïà¹ØÎĵµ£º
Ä¿Ç°ÒÔEclipseΪÖ÷µÄÖØÁ¿¼¶¿ª·¢¹¤¾ß´óÐÐÆäµÀ.ËäÈ»¼«Îª·½±ã.µ«Èí¼þ°²×°¶ÔÓÚϵͳÅäÖò»¸ßµÄµçÄÔ»òÕßСÏîÄ¿¿ª·¢·Ç³£²»Àû.ÔÚÒÆÖ²¹ý³ÌÖл¹ÓÐÅäÖÃÎÊÌâ.±È½ÏÂé·³.Òò´Ë¶ÔÓÚһЩ³¬Ð¡ÏîÄ¿,ʹÓÃÇáÁ¿¼¶µÄ¿ª·¢·½·¨,ÏÔµÃÓÉΪ±ØÒª.Ëùν³¬ÇáÁ¿¼¶,¾ÍÊÇÓÃ×î¼òµ¥µÄ¹¤¾ßÍê³ÉJAVAϵͳµÄ¿ª·¢.ÔÚ¿ª·¢µ±ÖÐÒ²¿ÉÒÔÁ˽â ......
×°ÁËwin7ÒÔºóÖØÐÂÅäÖÃÁËjavaµÄ»·¾³±äÁ¿¡£
Ê×ÏÈ£¬JDKºÍJREµÄÇø±ð£ºjdk£¨java development toolkit£© jre£¨java run environment£©£¬Ç°Õß¾ÍÏñÊǸöjavaµÄ±àÒëÆ÷£¬ºóÕßÌṩһ¸öÔËÐл·¾³£¬javaÐéÄâ»ú°É¡£Ò»°ãÖ»ÓÃ×°jdk¾ÍÐÐÁË£¬ÀïÃæ×Ô¶¯»áÓиöjre¡£
ÎҵĹý³Ì£º
1. ÏȽâѹEclipse£¬ÔËÐÐÐèÒªÐéÄâ»ú
2. °²×°jre6£¬²»ÓÃÈκΠ......
JavaÊý¾Ý¿âÁ¬½Ó£¨JDBC£©ÓÉÒ»×éÓà Java ±à³ÌÓïÑÔ±àдµÄÀàºÍ½Ó¿Ú×é³É¡£JDBC Ϊ¹¤¾ß/Êý¾Ý¿â¿ª·¢ÈËÔ±ÌṩÁËÒ»¸ö±ê×¼µÄ API£¬Ê¹ËûÃÇÄܹ»Óô¿Java API À´±àдÊý¾Ý¿âÓ¦ÓóÌÐò¡£È»¶ø¸÷¸ö¿ª·¢É̵Ľӿڲ¢²»ÍêÈ«Ïàͬ£¬ËùÒÔ¿ª·¢»·¾³µÄ±ä»¯»á´øÀ´Ò»¶¨µÄÅäÖñ仯¡£±¾ÎÄÖ÷Òª¼¯ºÏÁ˲»Í¬Êý¾Ý¿âµÄÁ¬½Ó·½Ê½¡£
¡¡¡¡Ò»¡¢Á¬½Ó¸÷ÖÖÊý¾Ý¿ ......
¡¡¡¡»¥ÁªÍøµÄáÈÆð£¬Ê¹µÃPC´Ó²úÒµÖÐÐÄÏò±ßÔµ¹ý¶É£¬¶øÀú¾20ÓàÄêµÄ·¢Õ¹£¬PCÊг¡Ò²Ç÷ÓÚ±¥ºÍ£¬´½Íö³Ýº®£¬Õâ½Ð¿¿PC³Ô·¹µÄ΢ÈíÈçºÎ²»¼±£¿ÎüÈ¡Á˵±Ä꿪·¢ä¯ÀÀÆ÷Èí¼þµÄ½Ìѵ£¬2000Äê6Ô£¬Î¢ÈíÆô¶¯.Net¼Æ»®£¬½ø¾üÍøÂç·þÎñÊг¡£¬±È¶û·¸Ç´Ä×ÔÐŵسƣº"ÊÀ½çÉÏËùÓÐÒ»Çж¼½«°üÀ¨ÔÚ»¥ÁªÍø·þÎñÖС£"
¡¡¡¡.NETµÄ˼ÏëÆäʵÊÇÀ´Ô ......