JavaÌṩdelete¹Ø¼ü×Ö±ØÒªÐÔ
×î½üÔÚдJava³ÌÐò´¦Àí´óÁ¿Êý¾ÝµÄʱºòÄÚ´æÍùÍùËæ×ųÌÐòÖ´ÐеÄÊý´ÎÔö¼Ó¶øÔö¼Ó, ×î´óʱÉÏÕǵ½1.XGÒÔÉÏ, ×îÖÕJVMÄÚ´æÓþ¡, ³ÌÐòÒì³£ÖÕÖ¹,ÔÚ³ÌÐòÖÐÒѾ½«ÄÜ»ØÊյıäÁ¿¶¼ÖÃΪnullÁË, »¹ÊDz»ÄÜʵʱ»ØÊÕÄÚ´æ, Ïëµ½C++µÄµÄ×ö·¨, ÓÐÎö¹¹º¯ÊýºÍdelete, ¿ÉÒÔ¼°Ê±µÄ»ØÊÕÄÚ´æ, JCPÄÜ·ñ¿ÉÒÔ¿¼ÂÇÒ»ÏÂÔÚJDK7ÖÐÔö¼Ódelete¹Ø¼ü×Ö, ÈÃJavaÒ²ÄÜÏñC++Ò»Ñùʵʱ»ØÊÕÄÚ´æ?
Ïà¹ØÎĵµ£º
JDK 5.0 ÖÐÔö¼ÓµÄ·ºÐÍÀàÐÍ£¬ÊÇ Java ÓïÑÔÖÐÀàÐͰ²È«µÄÒ»´ÎÖØÒª¸Ä½ø¡£µ«ÊÇ£¬¶ÔÓÚ³õ´ÎʹÓ÷ºÐÍÀàÐ͵ÄÓû§À´Ëµ£¬·ºÐ͵ÄijЩ·½Ãæ¿´ÆðÀ´¿ÉÄܲ»ÈÝÒ×Ã÷°×£¬ÉõÖÁ·Ç³£Ææ¹Ö¡£ÔÚ±¾ÔµēJava ÀíÂÛºÍʵ¼ù”ÖУ¬Brian Goetz ·ÖÎöÁËÊø¸¿µÚÒ»´ÎʹÓ÷ºÐ͵ÄÓû§µÄ³£¼ûÏÝÚå¡£Äú¿ÉÒÔͨ¹ýÌÖÂÛÂÛ̳Óë×÷ÕßºÍÆäËû¶ÁÕß·ÖÏíÄú¶Ô±¾ÎĵĿ´·¨¡ ......
¿ÉÄܺܶ࿪·¢Õß»áÃæ¶Ô¿Í»§ÕâÑùµÄÐèÇó£¬ÔÚδʹÓÃϵͳ֮ǰ£¬ËûÃǺܶàÊý¾Ý¶¼ÊDZ£´æÔÚWord»òÕßExcelµÈһЩµç×Ó±í¸ñÖУ¬ÏÖÔÚËûÃÇÐèÒª½«ÔÀ´µÄÊý¾Ý×Ô¶¯µ¼È뵽ϵͳÖÐÈ¥£¬¶ø²»ÊÇÒ»ÌõÒ»ÌõµØÊÖ¹¤Â¼Èë¡£ÎÒ¾ÍÅöµ½ÁËÕâÑùµÄÐèÇ󣬾¹ýÒ»·¬ÕÛÌÚÖ®ºó£¬ÖÕÓÚʵÏÖÁË£¬ÎÒÊDzÉÓõÚÈý·½¿Ø¼þJXLʵÏֵģ¬ÔÀíÊDZȽϼ ......
Ò»µÀÌ⣬±æJavaʵÁ¦
ÕâÀïÓÐÒ»µÀ¹ØÓÚJavaµÄ»ù´¡µÄ²»ÄÜÔÙ»ù´¡µÄÌ⣬¸÷λѧJavaµÄ¿´¿Í¿ÉÒÔ×ÁÄ¥×ÁÄ¥£¬¿´Êä³öʲô£¬ÎªÊ²Ã´¡£
Èç¹û¿´¿ÍÄÜÕýÈ·»Ø´ð¸ÃÎÊÌ⣬²¢¸ø³öÀíÓÉ£¬ËµÃ÷¿´¹Ù¶ÔJavaµÄÀí½âÒ²ÒÑ´ïµ½Ò»¶ ......
public class testthree {
public static void main(String[] args) {
testthree t = new testthree();
t.test();
}
private static void test() {
int d = 0;
int f = 4;
int x = 0;
int y = 6;
for (i ......