ʵÏÖjava±Õ°üµÄÁíÒ»ÖÖÐÎʽ
¼ÇµÃµÚÒ»´Î½Ó´¥±Õ°üµÄʱºò£¬¾õµÃºÜÆæ¹Ö£¬µ«´Ó×ÖÃæÉϺÜÄÇÀí½â±Õ°üʲôÍæÒ⣬ºÍ±Õ°üÓеÄÒ»±ÈµÄµ±Êô¿ØÖÆ·´×ª£¬ÕæÕýÀí½âÁ˺ó¾õµÃ¾Íƽ³£ÁË¡£±Õ°ü¶þ×ÖÆäʵÊǺܾµäµÄ£¬±Õ°ü´úÂëËù±íÏֵĶ«Î÷¿É²»¾ÍÊÇÒ»¸ö·â±ÕµÄ¡¢×Ô³ÉÒ»ÌåµÄ¹¦ÄÜ¿éÂ𣿼òµ¥µÄ˵£¬±Õ°ü¾ÍÊÇÔÚÄÚ²¿¶¨ÒåµÄ·½·¨£¬Äõ½ÍâÃæȥʹÓ᣾µäµÄjavascript±Õ°üÐÎʽÈçÏ£º
Java´úÂë
Js´úÂë
function f1(){
var i = 20;
function closef(x){
alert(i+x);
}
return closef
}
var s = f1();
s(20);
function f1(){
var i = 20;
function closef(x){
alert(i+x);
}
return closef
}
var s = f1();
s(20);
javascriptµÄÕâÖÖ±Õ°üÐÎʽµÄÈ·Ï൱¼ò½à£¬ÀàËÆÓÚcÓïÑԵĺ¯ÊýÖ¸Õë
ÖÚËùÖÜÖª£¬javaʵÏÖ±Õ°üµÄÐÎʽÊÇÄÚ²¿À࣬¸ü³£ÓõĻ¹ÊÇÄäÃûÄÚ²¿À࣬¶øÕâͨ³£»¹ÐèÒª¶¨Òå½Ó¿Ú£¬Í¨¹ý½Ó¿ÚµÄÒýÓÃÀ´²Ù×÷ÄÚ²¿Àà¶ÔÏ󣬴ӶøʵÏÖ±Õ°ü£¬Ô¶Ã»ÓÐjavascript¼ò½à¡£ÕâÀï½éÉÜÎÒÔÚ¿ª·¢ÖÐʹÓõÄÒ»ÖÖjava±Õ°üÐÎʽ£¬µ±È»»¹ÊÇÄÚ²¿À࣬ÎÒÔÚʵÏÖµÄʱºò°Ñ·´Éä»úÖƼÓÁ˽øÀ´£¬Õâô×ö¾ÍÊǾ¡Á¿Ê¹ÓÃÆðÀ´¼òµ¥Ò»Ð©¡£´úÂëÈçÏ£º
Ïȶ¨ÒåÒ»¸ö½Ó¿Ú£¬½Ó¿Ú»¹ÊÇÐèÒªµÄ£¬ÔÚÒÔºóµÄ±Õ°üʹÓÃÖУ¬Ö»ÐèÒªÕâÒ»¸ö½Ó¿Ú¡£
Java´úÂë
package p;
public interface IMethod {
public Object invoke(Object ... objects );
}
package p;
public interface IMethod {
public Object invoke(Object ... objects );
}
¸Ã½Ó¿ÚµÄʵÏÖÀ࣬ÕâÀïÒýÈë·´É䣺
Java´úÂë
package p;
import java.lang.reflect.Method;
public class MethodObject implements IMethod {  
Ïà¹ØÎĵµ£º
windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£» 2 ......
ÓÃjavaÌṩµÄapiʵÏÖ´ÓÖ¤ÊéÎļþ(±¾ÊµÀýʵÑé¶ÔÏóΪ*.cerÎļþ)ÖлñÈ¡ÓÐЧÐÅÏ¢µÄ·½·¨..
public static X509Certificate getCert(String fileName) throws Exception {//´ÓÒ»¸öÓÐЧµÄÖ¤ÊéÎļþÀ´´´½¨Ö¤Êé..
InputStream inStream = new FileInputStream(fileName);
CertificateFactory cf = CertificateFactory.get ......
ÔÚJava
ÐéÄâ»úµÄ¹æ·¶Öж¨ÒåÁËһϵÁеÄ×Óϵͳ¡¢ÄÚ´æÇøÓò¡¢Êý¾ÝÀàÐͺÍʹÓÃÖ¸ÄÏ¡£ÕâЩ×é¼þ¹¹³ÉÁËJava
ÐéÄâ»úµÄÄÚ²¿½á¹¹£¬ËûÃDz»½ö½öΪJava
ÐéÄâ»úµÄʵÏÖÌṩÁËÇåÎúµÄÄÚ²¿½á¹¹£¬¸üÊÇÑϸñ¹æ¶¨ÁËJava
ÐéÄâ»úʵÏÖµÄÍⲿÐÐΪ¡£
Ã¿Ò ......
ÈçºÎÔÚUltraEditÖÐʹjavaÎļþÓï·¨¸ßÁÁÏÔʾ£¿
1. UltraEdit¹Ù·½ÍøÕ¾ÏÂÔØËùÐèÎļþ¸ñʽµÄÓï·¨·½, http://www.ultraedit.com/downloads/extras.html£¬Ñ¡ÔñjavaÏÂÔØ¡£
2. Ñ¡Ôñ“¸ß¼¶”->“ÅäÖÔ
3. Ñ¡Ôñ“±à¼Æ÷ÏÔʾ”->“Óï·¨¼ÓÁÁ”£¬µã»÷“ ......
¼×¹ÇÎÄÒѾÍê³ÉÁ˶ÔSUN¹«Ë¾µÄÊÕ¹º£¬ÓÚ1ÔÂ27ÈÕ·¢²¼Á˶ÔSun¸÷ÏîÒµÎñµÄÕûºÏ¹æ»®¡£×ÜÌåÉÏ˵£¬OracleÒª³ÉΪÈíÓ²¼þÒ»Ì廯µÄÕûÌå½â¾ö·½°¸µÄ³§ÉÌ¡£ ÒÔϾÍÆä¶Ô±¸ÊܹØ×¢µÄJava·½ÃæµÄ²ßÂÔ×ö¸ö½éÉÜ¡£
Java SE:
1£©ÍƳöJDK SE 7£¬ Ëü½«°üÀ¨¶à¸öÐµĹ¦ÄÜ£¬ÈçÌá¸ß¿ª·¢ÈËÔ±µÄЧÂÊ£¬Ìṩ¸ßÐÔÄÜ£¬¶Ô¶àºËоƬµÄÖ§³ÖµÈ¡£
2£©SunµÄHotSpot ......