javaÖеĶÔÏó¸³ÖµÎÊÌâ
ÔÚjavaÖÐ ¿ÉÒÔ½«Ä³¸ö¶ÔÏó¸³Öµ¸øÁíÒ»¸ö¶ÔÏó Ö»Òª¸ÃÁ½¸ö¶ÔÏóÊÇÊôÓÚͬһ¸öÀ༴¿É ´Ëʱ ÕâÁ½¸ö¶ÔÏóµÄËùÓгÉÔ±½«Ö¸Ïòͬһ¿éÄÚ´æ
eg£º
public class class1
{
public static void main(String args[])
{
book aa=new book();
aa.setBookName("SQL Server2000");
book bb=new book();
bb.setBookName("Oracel 10g");
aa=bb;
System.out.println(aa.getBookName());
 
Ïà¹ØÎĵµ£º
¶ÔÏóÐòÁл¯
ËüÃæÏòÄÇЩʵÏÖÁËSerializable½Ó¿ÚµÄ¶ÔÏ󣬿ɽ«ËüÃÇת»»³ÉһϵÁеÄ×Ö½Ú£¬²¢¿ÉÒÔÔÚÒÔºóÍêÈ«»Ö¸´³ÉÔÀ´µÄÑù×Ó¡£
ÐòÁл¯»úÖÆ¿ÉÒÔ×Ô¶¯²¹³¥²Ù×÷ϵͳ֮¼äµÄ²î±ð¡£WindowsÉϵĶÔÏó¿ÉÒÔͨ¹ýÍøÂç·¢Ë͸ølinux»úÆ÷£¬ÔÚÄ¿µÄ»úÉÏ¿ÉÒÔ׼ȷÎÞÎóµÄÖØÐÂ×°Åä¡£
ͨ¹ýÐòÁл¯ÕâÒ»¶ÔÏ󣬽«Æä´æ´¢ÔÚÓ²ÅÌÖУ¬ÒÔºóÔÚ³ÌÐòÖØÐµ÷Óà ......
¡¡¡¡¡¾IT168 Îĵµ¡¿Spring Framework ¡¾Java¿ªÔ´JEE¿ò¼Ü¡¿
¡¡¡¡SpringÊÇÒ»¸ö½â¾öÁËÐí¶àÔÚJ2EE¿ª·¢Öг£¼ûµÄÎÊÌâµÄÇ¿´ó¿ò¼Ü¡£ SpringÌṩÁ˹ÜÀíÒµÎñ¶ÔÏóµÄÒ»Ö·½·¨²¢ÇÒ¹ÄÀøÁË×¢Èë¶Ô½Ó¿Ú±à³Ì¶ø²»ÊǶÔÀà±à³ÌµÄÁ¼ºÃϰ¹ß¡£SpringµÄ¼Ü¹¹»ù´¡ÊÇ»ùÓÚʹÓÃJavaBeanÊôÐÔµÄInversion of ControlÈÝÆ÷¡£È»¶ø£¬Õâ½ö½öÊÇÍêÕûͼ¾°Ö ......
³£¿´ºÜ¶àÈëÃÅÄñÃÇÔÚfinal ºÍstaticÔËÓÃÉϸе½ÃÔ㣬ÏÖ×ܽáÒ»ÏÂfinalºÍstaticµÄÔËÓ÷½·¨£¬Ï£Íû¶Ô´ó¼ÒÓаïÖú¡£
£¨ÎÒÒ²ÊDzËÄñ£©
Ò»¡¢final
¸ù¾Ý³ÌÐòÉÏÏÂÎÄ»·¾³£¬Java¹Ø¼ü×ÖfinalÓГÎÞ·¨¸Ä±ä”»òÕß“ÖÕ̬”µÄº¬Ò壬Ëü¿ÉÒÔÐÞÊηdzéÏóÀà¡¢·Ç³éÏóÀà³ÉÔ±·½·¨ºÍ±äÁ¿¡£
finalÀ಻Äܱ»¼Ì³Ð£¬Ã»ÓÐ×ÓÀ࣬final ......
ÔÚÎÒÃÇÔÚд³ÌÐòµÄ¹ý³ÌÖÐ,ÓÐЩʱºòÐèÒªÖªµÀһЩµçÄÔµÄÓ²¼þÐÅÏ¢,±ÈÈçÎÒÃÇдһЩÐèҪע²áµÄ³ÌÐòµÄʱºò,¾ÍÐèÒªµÃµ½Ä³¸öµçÄÔÌØ¶¨µÄÐÅÏ¢,Ò»°ãÀ´Ëµ,Íø¿¨µÄÎïÀíµØÖ·ÊDz»»áÖØ¸´µÄ,ÎÒÃÇÕýºÃ¿ÉÒÔÓÃËüÀ´×öΪÎÒÃÇʶ±ðһ̨µçÄԵıêÖ¾.ÄÇÈçºÎµÃµ½Íø¿¨µÄÎïÀíµØÖ·ÄØ?ÎÒÃÇ¿ÉÒÔ½èÖúÓÚProcessBuilderÕâ¸öÀà,Õâ¸öÀàÊÇJDK1.5мӵÄ,ÒÔǰҲ¿ÉÒÔÓÃRu ......
Ò»¡¢¶àÖÖ·½Ê½¶ÁÎļþÄÚÈÝ¡£
1¡¢°´×Ö½Ú¶ÁÈ¡ÎļþÄÚÈÝ
2¡¢°´×Ö·û¶ÁÈ¡ÎļþÄÚÈÝ
3¡¢°´ÐжÁÈ¡ÎļþÄÚÈÝ
4¡¢Ëæ»ú¶ÁÈ¡ÎļþÄÚÈÝ
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
imp ......