Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

java¹¹ÔìÆ÷

 ¹¹ÔìÆ÷ÊÇΪÁË´´½¨Ò»¸öÀàµÄʵÀý¡£Õâ¸ö¹ý³ÌÒ²¿ÉÒÔÔÚ´´½¨Ò»¸ö¶ÔÏóµÄʱºòÓõ½£ºPlatypus p1 = new Platypus();
¡¡¡¡Ïà·´£¬·½·¨µÄ×÷ÓÃÊÇΪÁËÖ´ÐÐjava´úÂë¡£
¡¡¡¡ÐÞÊηû£¬·µ»ØÖµºÍÃüÃûµÄ²»Í¬
¡¡¡¡¹¹ÔìÆ÷ºÍ·½·¨ÔÚÏÂÃæÈý¸ö·½±ãµÄÇø±ð£ºÐÞÊηû£¬·µ»ØÖµ£¬ÃüÃû¡£ºÍ·½·¨Ò»Ñù£¬¹¹ÔìÆ÷¿ÉÒÔÓÐÈκηÃÎʵÄÐÞÊΣº public, protected, private»òÕßûÓÐÐÞÊΣ¨Í¨³£±»package ºÍ friendlyµ÷Óã©. ²»Í¬ÓÚ·½·¨µÄÊÇ£¬¹¹ÔìÆ÷²»ÄÜÓÐÒÔÏ·ǷÃÎÊÐÔÖʵÄÐÞÊΣº abstract, final, native, static, »òÕß synchronized¡£
¡¡¡¡·µ»ØÀàÐÍÒ²ÊǷdz£ÖØÒªµÄ¡£·½·¨ÄÜ·µ»ØÈκÎÀàÐ͵ÄÖµ»òÕßÎÞ·µ»ØÖµ£¨void£©£¬¹¹ÔìÆ÷ûÓзµ»ØÖµ£¬Ò²²»ÐèÒªvoid¡£
¡¡¡¡×îºó£¬Ì¸Ì¸Á½ÕßµÄÃüÃû¡£¹¹ÔìÆ÷ʹÓúÍÀàÏàͬµÄÃû×Ö£¬¶ø·½·¨Ôò²»Í¬¡£°´ÕÕÏ°¹ß£¬·½·¨Í¨³£ÓÃСд×Öĸ¿ªÊ¼£¬¶ø¹¹ÔìÆ÷ͨ³£Óôóд×Öĸ¿ªÊ¼¡£¹¹ÔìÆ÷ͨ³£ÊÇÒ»¸öÃû´Ê£¬ÒòΪËüºÍÀàÃûÏàͬ£»¶ø·½·¨Í¨³£¸ü½Ó½ü¶¯´Ê£¬ÒòΪËü˵Ã÷Ò»¸ö²Ù×÷¡£


Ïà¹ØÎĵµ£º

thinking in javaµÚÎåÕÂ1 ³õʼ»¯ÓëÇåÀí


µÚһ֪ʶµã£º¹¹ÔìÆ÷£¬¹¹ÔìÆ÷ºÍÀàÃûÒ»Ö£¬ÎÞ·µ»ØÖµ£¬ÔÚjavaÖГ³õʼ»¯”Óë“´´½¨”ÊÇÁ¬ÔÚÒ»ÆðµÄ£¬ËùÒÔÎÒÃǾ­³£Óù¹ÔìÆ÷ÔÚ´´½¨¶ÔÏóµÄʱºòÀ´³õʼ»¯ÀàµÄһЩʵÀý¡£ÌØÊâ˵Ã÷£ºnew±í´ïʽ·µ»ØÁ˶Ôн¨¶ÔÏóµÄÒýÓ㬵«Êǹ¹ÔìÆ÷±¾ÉíûÓзµ»ØÈκÎÖµ¡£
µÚ¶þ¸ö֪ʶµã£º·½·¨µÄÖØÔØ£¬Ãû³ÆÏàͬ£¬²ÎÊý²»Í¬µÄ·½·¨½Ð×ö· ......

JavaÕýÔò±í´ïʽ

package com.sy.grasp;
import java.io.IOException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegularExpression {
 /**
  * @param args
  * @throws IOException
  */
 public static void main(String[] args) throws IOException {
  ......

Java Annotation×¢ÊÍÓï·¨

Java Annotation×¢ÊÍÓï·¨£¨Ò»£©
¹Ø¼ü×Ö: java annotation×¢ÊÍ
JAVA´ÓJ2SE5¿ªÊ¼ÌṩÃûΪannotation£¨×¢ÊÍ£¬±ê×¢£©µÄ¹¦ÄÜ¡£JavaµÄannotation£¬¿ÉÒÔ¸½¼ÓÔÚpackage, class, method, fieldµÈÉÏÃ棬Ï൱ÓÚ¸øËüÃÇÌí¼ÓÁ˶îÍâµÄ¸¨ÖúÐÅÏ¢¡£¸½¼ÓÔÚpackage, class, method, fieldµÈÉϵÄAnnotation£¬Èç¹ûûÓÐÍⲿ½âÎö¹¤¾ßµÈ¶ÔÆä¼ÓÒÔ½â ......

Lombok Ïû³ýJavaµÄÈß³¤


  LombokÊÇÒ»¸ö¿ªÔ´ÏîÄ¿£¬¿ÉÒÔÓÃÀ´Ïû³ýJava´úÂëµÄÈß³¤
  Ïêϸ½éÉܲο´http://www.ibm.com/developerworks/opensource/library/os-lombok/index.html
  ÏÂÃæ½éÉÜLombokÈçºÎÏû³ýJava´úÂëµÄÈß³¤¡£
1.      Ê×ÏÈÈ¥http://projectlombok.org/. ÏÂÔØlombok.jar °ü
2.  & ......

javaÖеÄmainÄãÖªµÀÂð

   Èç¹ûÄãÈ¥ÃæÊÔµÄʱºò£¬ÃæÊÔ¹Ù¿¼Ä㣬ΪʲôҪÔÚjavaÖеÄmain·½·¨Ç°¼Ópublic static voidÕâЩÐÞÊηû£¬ÄãÖªµÀÈçºÎÈ¥»Ø´ðÂð£¿ÏÂÃæÎÒΪ´ó¼Ò½²½âһϰɣ¡Èç¹ûÓÐʲôȱ©µÄ»°£¡»¶Ó­´ó¼ÒµÄÖ¸µã£¡
   Ê×ÏÈ£¬ÎªÊ²Ã´ÒªÓÃpublic£º
   ÒòΪÔÚÔËÐгÌÐòʱ£¬jvmÒªµ÷ÓÃmain·½·¨£¬µ«ÎÒÃǶ¼Ó¦¸ÃÖªµÀjvm ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ