Java¸ß¼¶ÌØÐÔ 1
1.¾²Ì¬µ¼È룺
¾²Ì¬µ¼ÈëÊÇJDK1.5ºóмӵŦÄÜ£¬Ò»°ã²»Ôõô³£Ó㬺ܼòµ¥¸øÄã¾Ù¸öÀý×ÓÄã¾ÍÄÜÃ÷°×ÁË£¬¿´Õâ¶Î´úÂ룺
import static java.lang.System.out;//µ¼Èëjava.lang°üϵÄSystemÀàµÄ¾²Ì¬·½·¨out;
public class HelloWorld{
public static void main(String[] args){
out.print("Hello World!");//¼ÈÊÇÔÚÕâÀï²»ÓÃÔÙд³ÉSystem.out.println("Hello World!")ÁË£¬ÒòΪÒѾµ¼ÈëÁËÕâ¸ö¾²Ì¬·½·¨out¡£
}
}
import xxxx ºÍ import static xxxxµÄÇø±ðÊÇÇ°ÕßÒ»°ãµ¼ÈëµÄÊÇÀàÎļþÈçimport java.util.Scanner;ºóÕßÒ»°ãÊǵ¼È뾲̬µÄ·½·¨£¬import static java.lang.System.out;
¾²Ì¬µ¼ÈëÖ÷ÒªÊÇÖ¸¿ÉÒÔͨ¹ý¾²Ì¬µ¼ÈëÒ»¸öÀàµÄ·½·¨£¬¾Í¿ÉÒÔÔÚÒÔºóֻҪд·½·¨µÄÃû×־ͿÉÒÔ£¬²»ÓÃÁ¬ÀàµÄÃû×ÖҲдÁË¡£Ö÷ÒªÊʺÏÔÚ±à³ÌÖÐʹÓÃÂʺܸߵĺ¯Êý£¬Ê¹ÓÃÂʱȽϵ͵ĺ¯ÊýÕâÑù×öÏà·´ÓÐЩÂé·³ÁË¡£ÎÒ¾õµÃÕâÒ²ËãÊÇÒ»¸öС¼¼ÇÉ°ÕÁË¡£
2.¿É±ä²ÎÊýÓëforÑ»·ÔöÇ¿£º
Õâ¸öÊÇÒ»°ãµÄÓ÷¨£º
public static void loop(String[] args){
for(int i=0;i<args.length;i++)
{
System.out.println(args[i]);
}
}
Õâ¸öÊÇJDK Ôö¼ÓµÄÐÂÌØÐÔµÄÓ÷¨£¡
public static void loop(int x,int... args ) { //ÕâÀïµÄ²ÎÊýÒ»¶¨ÒªÒÔÕâÑùµÄÐÎʽÊäÈë
for(int i:args)
{
System.out.println(i);
}
}
¿É±ä²ÎÊýÓëforÑ»·ÔöÇ¿£º¿É±ä²ÎÊýµÄÌص㣺ֻÄܳöÏÖÔÚ²ÎÊýÁбíµÄ×îºó£¬...λÓÚ±äÁ¿ÀàÐͺͱäÁ¿ÃûÖ®¼ä£¬Ç°ºóÓÐÎÞ¿Õ¸ñ¶¼¿ÉÒÔ¡£¶ÔÓڿɱä²ÎÊýµÄʹÓÃÒ²·½±ãÁËÎÒÃDZà³Ì£¬ÒÔÇ°Óöµ½ÕâÖÖÇé¿öµÄʱºòÎҿ϶¨Ê×ÏÈÏëµ½µÄÊÇÖØÔغ¯Êý¡£Ã¿Ò»´Îjava°æ±¾µÄÉý¼¶¶¼»á¸øÎÒÃǵıà³Ì´øÀ´±ãÀû¡£ÀýÈçpublic static int add(int x,int ...args)ÕâÑù¾Í¿ÉÒÔʵÏÖÈÎÒâ¸ö²ÎÊýµÄÏà¼ÓµÄºÍ¡£
forÑ»·ÔöÇ¿Æäʵ¾ÍÊÇʹÓÃÁ˵ü´úµÄÔÀí£¬ÐÎÈçfor(int arg:args)ÿ´Îµü´úÊý×éÖеÄÒ»¸öÔªËØ£¬Õâ¸öÆäʵֻÊÇforÑ»·µÄÒ»ÖÖ¼ò±ãµÄд·¨¡£×¢ÒâÊÂÏµü´ú±äÁ¿±ØÐëÔÚ()Öж¨Ò壡ÈçºÎµü´ú¼¯ºÏÀ࣬±ØÐëÊÇʵÏÖÁËIteratable½Ó¿ÚµÄÄÇЩÀà¡£
3.ö¾Ù£º
ö¾Ù¾ÍÊÇÒªÈÃÒ»¸öÀàÐͱäÁ¿µÄȡֵΪÈô¸É¸ö¹Ì¶¨µÄÖµ£¬·ñÔò£¬±àÒëÆ÷¾Í»á±¨´í¡£Ã¶¾ÙÊÇÒ»ÖÖÌØÊâµÄÀà¡£ÆÕͨö¾Ù¶¨ÒåÈçÏÂenum TrafficLamp{RED,GREEN,YELLOW}¡£
´ø·½·¨µÄö¾ÙµÄ¶¨ÒåÈçÏ£ºenum TrafficLamp{RED,GREEN,YELLOW;public abstract getTitle();}¿ÉÒÔ¶¨Ò
Ïà¹ØÎĵµ£º
2008 Äê 6 ÔÂ 24 ÈÕ
ÔÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......
×òÌìÓиöÅóÓÑÎÊÎÒ£¬Ñ§µÃ»á²»,°³ËµÑ§µÄ»á£¡
ºóÀ´ËûÓÖÎÊÎÒ£¬ËûÈç¹ûѧµÄ»°£¬Ñ§µÄ»áѧ²»»á£¬°³ËµÖ»Òª²»±¿µ°£¬°ÑÐÄ˼·ÅÔÚjavaÉÏ£¬¾ÍÒ»¶¨Ñ§µÄ»á£¡
ʱ¼äÒ»Ö±¹ýµÄ¶¼ºÜ¿ì£¬Ã¿¸öÈËÄÜ°ÑÎÕµÄÒ²Ö»ÓнñÌ죬ËùÒÔ¼´Ê¹À§ÄÑÔٶֻ࣬ÓдËʱ´Ë¿Ì×Ô¼ºÔÚ²»Í£µÄŬÁ¦¡£
ÄÄÅÂÏñÎÏÅ£Ò»ÑùµÄÇ°½ø£¬Ò²Ò»¶¨Óгɹ¦µÄÒ»Ì죬¾ÍÅÂ×Ô¼º·ÅÆú£¬ÅÂ×Ô¼ºÃ»ÓÐÐÅÐÄ£ ......
ÔÚDOMINOÖÐʹÓÃHibernateʱ£¬»á³öÏÖÒÔϵĴíÎó£º
ÎÊÌâÊÇÓÉÓÚdomino jre µÄĬÈÏ°²È«²»Ö§³ÖReflectPermission "suppressAccessChecks";
ÔÚDOMINO JVMµÄ°²È«²ßÂÔÎļþÖмÓÈë
permission java.lang.reflect.ReflectPermission
" ......
ÎÒÃÇÖªµÀ£¬ÔÚJavaÖÐÉèÖñäÁ¿ÖµµÄ²Ù×÷£¬³ýÁËlongºÍdoubleÀàÐ͵ıäÁ¿ÍⶼÊÇÔ×Ó²Ù×÷£¬Ò²¾ÍÊÇ˵£¬¶ÔÓÚ±äÁ¿ÖµµÄ¼òµ¥¶Áд²Ù×÷ûÓбØÒª½øÐÐͬ²½¡£
ÕâÔÚJVM 1.2֮ǰ£¬JavaµÄÄÚ´æÄ£ÐÍʵÏÖ×ÜÊÇ´ÓÖ÷´æ¶ÁÈ¡±äÁ¿£¬ÊDz»ÐèÒª½øÐÐÌرðµÄ×¢ÒâµÄ¡£¶øËæ×ÅJVMµÄ³ÉÊìºÍÓÅ»¯£¬ÏÖÔÚÔÚ¶àÏ̻߳·¾³ÏÂvolatile¹Ø¼ü×ÖµÄʹÓñäµÃ·Ç³£ÖØÒª¡£
ÔÚµ±Ç° ......
¿´µ½Ô°×ÓµÄͬÁÅÃÇдµÄ¡¶¿çƽ̨¡·ÏµÁÐÖ®ºóÕæµÄÊÇÈÈѪ·ÐÌÚ£¬ÓÐЩ»°²»µÃ²»Ëµ£¬²»Äܲ»Ëµ¡£ÎÒÒª½ÒµôJavaÕâÒ»²ã²ãÃÀÀöµÄ“»Æ¤”,Èôó¼Ò¿´¿´»Æ¤Ö®ÏÂÊÇʲô£¿ÎÒÃÇ¿´µ½µÄ¶¼ÊÇһЩʲô£¿ÎÒ±¾È˲¢²»ÊÇÒ»¶¨µÃÍƼö´ó¼ÒÓÃ.NETƽ̨£¬µ«ÊÇÎÒ¾ÍÊÇ¿´²»¹ÜÓÐЩÈËÎóµ¼³õѧÕߣ¬ÏòËûÃÇ´«µ¼Ê²Ã´¶¼ ......