JavaÄÚ´æÊÍ·ÅÐĵÃ
1 Èç¹ûÒ»¿éÄÚ´æÇøÓòÄܹ»Öظ´ÀûÓã¬×îºÃ²»ÒªÉêÇëеġ£Õâ¸öÄÚ´æÇøÓòÓпÉÄÜÊÇϵͳµÄÒ»¸öÀ࣬×Ô¼ºµÄÒ»¸öÄÚ²¿ÓÐÊý×éÔªËØ£¬»òÕßÄܹ»·Å´óÁ¿Êý¾ÝµÄ½á¹¹¡£
2 ×îºÃ²»ÒªÔÚÑ»·ÀïÃæÉêÇëÄڴ棬ѻ·Ô½´ó£¬Ô½»µÊ¡£»»¾ä»°Ëµ£¬ÉêÇëÄÚ´æÆµÂʱðÌ«¸ß¡£ºÃ±ÈÒ»¸öÈËÿ¶Ù³ÔÁ½Íë·¹ÕýºÃ£¬ÉíÌåµÄÏû»¯ÏµÍ³¿ÉÒÔ³ÐÊÜ£¬Èç¹ûÈÃËûÒ»¶Ù°ÑÊ®¶ÙµÄ¶¼³Ôµô£¬²»ÕÍËÀ²Å¹Ö£¡
3 ÈÃÿ¸öʵÀý¶ÔÏóµÄÉúÃüÖÜÆÚ¾¡Á¿¶ÌһЩ£¬ÓÈÆäÊÇÄÇЩҪռÓôóÄÚ´æµÄ¡£ÒòΪÀ¬»øÊÕ¼¯Æ÷µÄËã·¨ÓÅÏÈ¿¼ÂÇÄÇЩÉúÃüÖÜÆÚ¶ÌµÄ¡£ºÍ¶àÈÎÎñ²Ù×÷ϵͳµ÷¶È½ø³Ì£¬·ÖÅäcpuµÄÔÀíÀàËÆ¡£
4 ¶ÔÒ»¿é´óµÄÄÚ´æµÄÒýÓòã´Î²»ÒªÅªµÃÌ«¸´ÔÓ£¬À¬»øÊÕ¼¯Æ÷¶ÔÕâÖÖÀàÐ͵ÄÄÚ´æ¿ìÊÕ¼¯ÆðÀ´£¬Ò²ÊDZȽÏÂéľµÄ¡£
5 Ñø³ÉºÃϰ¹ß£¬²»ÓõĶÔÏóÏÔʽÉèÖóÉnull¡£ÔÚÏ£ÍûÊÕ¼¯²ã´Î±È½Ï¸´ÔӵĶÔÏóµÄʱºò£¬ÏȽ«¸Ã¶ÔÏóÄÚ²¿±£´æµÄÆäËûÒýÓö¼ÖÃnullÁË£¬Ð§¹û»áºÃһЩ¡£
6 ×îºóÒ»ÕУ¬Ê¹ÓÃÈõÒýÓã¬ÐéÒýÓᣲ»¹ý£¬Ò»°ã³öÁËÄÚ´æÎÊÌ⣬¶¼ÊÇǰ5Ìõ×öµÃ²»ºÃ£¬ÐèÒªÓõ½6µÄÉÙÖ®ÓÖÉÙ¡£
Ïà¹ØÎĵµ£º
×Ô¶¨ÒåÒì³£ : ²½Öè:
Ò»:´´½¨Ò»¸öÀà¼Ì³ÐÓÚThrowable»òÆä×ÓÀà;
¶þ:Ìí¼Ó¹¹Ôì·½·¨;
Èý:ÔÚÒ»¸ö·½·¨ÖÐʹÓÃthrowÅ׳öÒì³£
ËÄ:ÔÚÁíÒ»¸ö·½·¨Öв¶»ñ²¢´¦ÀíÒì³£
ʾÀý:
Ò»¡¢ ¼Ì³ÐThrowable Àà
public class MySecondException extends Throwable {
public MySecondException() {
s ......
½ñÌìûÓÐʲô´óÊ£¬ÏëÕÒjavaµÄ×ÊÁϾÍÀ´µ½ÕâÀïÁË£¡¸Ð¾õ»¹ÊÇCsdnµÄ×ÊÁϱȽ϶ࡣ
×î½ü»»Á˹¤×÷£¬ÒòΪһЩÔÒòÒÔǰµÄ¹¤×÷¡£ÎÒÒÔǰÊÇ×öCµÄ£¬ÏÖÔÚÒòΪ¹¤×÷µÄÐèҪȴҪ×öjava¡£
ÏÖÔÚ´ó¸Å¿´ÁËÒ»µãjavaµÄ¶«¶«£¬¸Ð¾õjavaµÄÓÃ;ºÜ¹ã£¬Ò²ºÜÓÅÐã¡£µ«ÊÇÏà±ÈÓÚCȴȱÉÙÁËһЩ͸Ã÷¶È£¬µ«Ò²¿ÉÄÜÕýÊÇÒòΪÕâЩ͸Ã÷
²ÅʹµÄËü·¢Õ¹µ½ÏÖÔÚ°É¡£java ......
package com.whlongyi.sys.blob.bean;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
im ......
java×öµÄϵͳ¸øÈ˵ÄÓ¡ÏóÊÇʲô£¿Õ¼Äڴ棡˵µÀÕâ¾ä»°¾Í»áÓÐN¶àÈËÕ¾³öÀ´Îªjava±ç»¤£¬²¢¾Ù³öÒ»¶ÑµÄÐÔÄܲâÊÔ±¨¸æÀ´Ö¤Ã÷ÕâÒ»µã¡£Æäʵ´ÓÀíÂÛÉÏÀ´½²java×öµÄϵͳ²¢²»±ÈÆäËûÓïÑÔ¿ª·¢³öÀ´µÄϵͳ¸üÕ¼ÓÃÄڴ棬ÄÇôΪʲôȴÓÐÕâôN¶àÀíÓÉÀ´Ö¤Ã÷ËüȷʵռÄÚ´æÄØ£¿Á½¸ö×Ö£¬ÂªÏ°¡£
£¨1£©±ðÓÃnew Boolean()¡£
Ôںܶೡ¾°ÖÐBooleanÀàÐÍÊDZØÐ ......
ºÜ¶àÅóÓÑÔÚJava¿ª·¢ÖУ¬Ê¹ÓÃOracleÊý¾Ý¿âµÄʱºò£¬¾³£»áÅöµ½ÓÐORA-01000: maximum open cursors exceeded.µÄ´íÎó¡£
ʵ¼ÊÉÏ£¬Õâ¸ö´íÎóµÄÔÒò£¬Ö÷Òª»¹ÊÇ´úÂëÎÊÌâÒýÆðµÄ¡£
ora-01000: maximum open cursors exceeded.
±íʾÒѾ´ïµ½Ò»¸ö½ø³Ì´ò¿ªµÄ×î´óÓαêÊý¡£
ÕâÑùµÄ´íÎóºÜÈÝÒ׳öÏÖÔÚJava´úÂëÖеÄÖ÷ÒªÔÒòÊÇ£ºJava´úÂëÔÚÖ´ ......