javaÃæÊÔÌâ »ù´¡Æª£¨1£©
1 Áо٠10¸öjavaÓïÑÔµÄÓÅÊÆ
Ãâ·Ñ£¬¿ªÔ´£¬¿çƽ̨£¬¼òµ¥Ò×Ó㬹¦ÄÜÍêÉÆ£¬ÃæÏò¶ÔÏ󣬽¡×³ÐÔ£¬¶àỊ̈߳¬½á¹¹ÖÐÁ¢£¬
ÆóÒµÓ¦ÓõijÉÊìƽ̨£¬ÎÞÏßÓ¦Óá£
2 ÁоÙjavaÖÐ 10¸öÃæÏò¶ÔÏó±à³ÌµÄÊõÓï
°ü£¬À࣬ʵÀý£¬·â×°£¬¼Ì³Ð£¬¶à̬£¬ÖØÔØ£¬ÖØд£¬¶ÔÏó £¬ÊôÐÔ£¬·½·¨£¬³éÏó¡£
3 ÁоÙjavaÖÐ6¸ö±È½Ï³£Óõİü£º
java.util; java.lang; java.io; java.text; java.sql; javax.swing;
4 javaÖÐÊý¾ÝÀàÐÍ
¼òµ¥Êý¾ÝÀàÐÍ£ºÊýÖµÐÍ£¨byte£¬short£¬int£¬long£¬float£¬double£©£¬×Ö·ûÐÍ£¨char£©£¬²¼¶ûÐÍ£¨boolean£©
¸½£º»ù±¾Êý¾ÝÀàÐÍת»»ÌâÄ¿£º
£¨1£©£ºswitch ÊÇ·ñÄÜ×÷ÓÃÔÚbyteÉÏ£¬ÊÇ·ñÄÜ×÷ÓÃÔÚlongÀàÐÍ ºÍ StringÀàÐÍÉÏ£¿
switch£¨expr1£© expr1 Ö»ÄÜÊÇÒ»¸öÕûÊý±í´ïʽ»òÕßö¾Ù³£Á¿,ÕûÊý±í´ïʽ¿ÉÒÔÊÇ»ù±¾Êý¾ÝÀàÐÍintºÍinteger°ü×°ÀàÐÍ
£¬ÓÉÓÚ£¬byte£¬short£¬char ¿ÉÒÔÒþº¬µÄת»»ÎªintÀàÐÍ£¬ËùÒÔÕâЩÀàÐ͵Ļù±¾ÀàÐͺͰü×°ÀàÐÍÒ²ÊÇ¿ÉÒԵġ£longºÍStringÀàÐÍ
²»·ûºÏswitch Óï¾ä¹æ¶¨£¬²¢ÇÒ²»Äܱ»Òþʽת»»³ÉintÀàÐÍ£¬ËùÒÔ£¬²»ÄÜ×÷ÓÃÓëswithÓï¾äÖС£
£¨2£©short s1 = 1; s1 = s1 + 1;ÓÐʲô´í? short s1 = 1; s1 += 1;ÓÐʲô´í?
¶ÔÓÚshort s1 = 1; s1 = s1 + 1; ÓÉÓÚs1+1ÔËËãʱ»á×Ô¶¯ÌáÉý±í´ïʽµÄÀàÐÍ£¬ËùÒÔ½á¹ûÊÇintÐÍ£¬ÔÙ¸³Öµ¸øshortÀàÐÍs1ʱ£¬±àÒëÆ÷½«±¨¸æÐèҪǿÖÆת»»ÀàÐ͵ĴíÎó¡£
¶ÔÓÚshort s1 = 1; s1 += 1;ÓÉÓÚ += ÊÇjavaÓïÑԹ涨µÄÔËËã·û£¬java±àÒëÆ÷»á¶ÔËü½øÐÐÌØÊâ´¦Àí£¬Òò´Ë¿ÉÒÔÕýÈ·±àÒë¡£
ÒýÓÃÊý¾ÝÀàÐÍ£ºÀ࣬Êý×飬½Ó¿Ú¡£
5 charÀàÐͱäÁ¿Äܲ»ÄÜ´æ´¢Ò»¸öºº×Ö£¬£¿ÎªÊ²Ã´£¿
charÐͱäÁ¿ÊÇÓÃÀ´´æ´¢Unicode±àÂëµÄ×Ö·ûµÄ£¬unicode±àÂë×Ö·û¼¯Öаüº¬Á˺º×Ö£¬ËùÒÔ£¬charÐͱäÁ¿Öе±È»¿ÉÒÔ´æ´¢ºº×ÖÀ²¡£²»¹ý£¬Èç¹ûij¸öÌØÊâµÄºº×ÖûÓб»°üº¬ÔÚunicode±àÂë×Ö·û¼¯ÖУ¬ÄÇô£¬Õâ¸öcharÐͱäÁ¿ÖоͲ»ÄÜ´æ´¢Õâ¸öÌØÊ⺺×Ö¡£²¹³ä˵Ã÷£ºunicode±àÂëÕ¼ÓÃÁ½¸ö×Ö½Ú£¬ËùÒÔ£¬charÀàÐ͵ıäÁ¿Ò²ÊÇÕ¼ÓÃÁ½¸ö×Ö½Ú¡£
Ïà¹ØÎĵµ£º
±ÊÕßÔÚJava¿ª·¢Öг£³£»áÓöµ½½«Êý¾Ý¿âÊý¾Ýµ¼³öµ½ExcelµÄÒªÇ󣬱ÈÈçÔÚÎÒµÄÒ»¸öÏîÄ¿ÖУ¬¿Í»§ÒªÇóËùÓвéѯ½á¹û¶¼¿ÉÒÔµ¼³öµ½Excel£¬¶ÔÓÚÊý¾ÝÁ¿²»´óµÄ£¨¼¸ÍòÌõ£©£¬Õâ±È½ÏÈÝÒ×ʵÏÖ£¬µ«¶ÔÓÚÊý¾ÝÁ¿±È½Ï´óµÄ£¨¼¸Ê®Íò¼°ÒÔÉÏ£¬¾ßÌåÒª¿´µ¼³öÄÚÈݵÄ×ֶθöÊýºÍ³¤¶Ì£©£¬ÔòÔÚÊý¾Ý¿â²éѯºÍÉú³ÉexcelÎļþÉ϶¼»áÓÐÂé·³¡£
ÒÔÎÒÔÚʵ¼ÊÏîÄ¿ÖеÄÒ»¸ ......
Õ⼸ÌìÍøÂçÓÐÎÊÌ⣬ËùÒÔ½ñÌìÒ»Æð×ܽá³öÀ´
ÀàµÄС½á
1£¬Àà³éÏóÁËËùÓоßÓÐÒ»¶¨¹²ÐÔµÄʵÌåµÄ¹²Í¬Ìسơ£Ò»¸öÀàÖУ¬±äÁ¿ÓÃÀ´±íʾÊôÐÔ£¬·½·¨ÓÃÀ´±íʾ¹¦ÄÜ£¬Àà°ÑÊý¾ÝºÍ¶ÔÊý¾ÝµÄ²Ù×÷·â×°³ÉÒ»¸öÕûÌå¡£³ÌÐòÓïÑÔÖУ¬Í¨¹ýÀà´´½¨¶ÔÏó¡£
2£¬¹¹Ô캯ÊýµÄ×÷ÓÃÔÚÓÚÉùÃ÷ÀàµÄ¶ÔÏóºó£¬ÎªÆä·ÖÅä´¢´æµ¥Ôª£¬¼´´´½¨ÊµÀý¡£
3,²»Í¬¶ÔÏóµÄʵÀý±äÁ¿½« ......
import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.Graphics;
import java.awt.event.*;
public class ThreadDemo extends JFrame {
/**
*
*/
private static final long serialVersionUID = 1L;
public ThreadDemo() {
JButton btn = new JButton("Click me");
btn.addActionL ......
һЩjavaÀàÖÐΪʲôÐèÒªÖØÔØ serialVersionUID ÊôÐÔ¡£
ÔÚJavaÖУ¬Èí¼þµÄ¼æ
ÈÝÐÔÊÇÒ»¸ö´óÎÊÌ⣬ÓÈÆäÔÚʹÓõ½¶ÔÏó´®ÐÐÐÔµÄʱºò£¬ÄÇôÔÚijһ¸ö¶ÔÏóÒѾ±»´®Ðл¯ÁË£¬¿ÉÊÇÕâ¸ö¶ÔÏóÓÖ±»Ð޸ĺóÖØв¿ÊðÁË£¬ÄÇôÔÚÕâÖÖÇé¿öÏ£¬
ÓÃÀÏÈí¼þÀ´¶ÁÈ¡ÐÂÎļþ¸ñʽËäÈ»²»ÊÇʲôÄÑÊ£¬µ«ÊÇÓпÉÄܶªÊ§Ò»Ð©ÐÅÏ¢¡£
serialVersionUID
À´½â ......
ѧjavaÓжÎʱ¼äÁË£¬ÒÔÏÂÊǸöÈ˵ÄÒ»µãÐĵÃÌå»á£¬Ï£ÍûÄܹ»°ïÖúÄÇЩ¸Õ¿ªÊ¼±à³ÌµÄͬ־ÃÇ¡£
¼¸ÌìÇ°£¬Ò»Í¬Ñ§ÈÃÎÒ°ïæ¿´ËûµÄ³ÌÐòµ½µ×³öÏÖʲôÎÊÌ⣬´úÂë±È½ÏÂÒ£¬Ò²Ã»ÓÐ×¢ÊÍ£¬ÎÒ¿´Á˺Ü
³¤Ò»¶Îʱ¼ä¾¹ÊÇÕÒ²»µ½ÎÊÌâËùÔÚ¡£³ÌÐò´óÌåÊÇÕâÑùµÄ£¬ÓÐÒ»¶ÎÎı¾taxt,´ÓÖ ......