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

javaÖо²Ì¬±äÁ¿ºÍ¾²Ì¬·½·¨·Ö±ðÓÐʲôÌص㣿

javaÖо²Ì¬±äÁ¿ºÍ¾²Ì¬·½·¨·Ö±ðÓÐʲôÌص㣿
ÐüÉÍ·Ö£º0 - ½â¾öʱ¼ä£º2006-4-10 10:28

ÌáÎÊÕߣº vv_clear - ¶þ¼¶
×î¼Ñ´ð°¸
ΪʲôÎÊÁËÁ½´Î£¿ÔÙÌùÉÏÁíһƪ
Thinking:JavaÖÐstaticÓ÷¨- -
Tag£º Thinking:JavaÖÐs
Ò»¡¢static
ÇëÏÈ¿´ÏÂÃæÕâ¶Î³ÌÐò£º
public class Hello{
public static void main(String[] args){ //(1)
System.out.println("Hello,world!"); //(2)
}
}
¿´¹ýÕâ¶Î³ÌÐò£¬¶ÔÓÚ´ó¶àÊýѧ¹ýJava µÄ´ÓÀ´Ëµ£¬¶¼²»Ä°Éú¡£¼´Ê¹Ã»ÓÐѧ¹ýJava£¬¶øѧ¹ýÆäËüµÄ¸ß¼¶ÓïÑÔ£¬ÀýÈçC£¬ÄÇÄãÒ²Ó¦¸ÃÄÜ¿´¶®Õâ¶Î´úÂëµÄÒâ˼¡£ËüÖ»ÊǼòµ¥µÄÊä³ö“Hello,world”£¬Ò»µã±ðµÄÓô¦¶¼Ã»ÓУ¬È»¶ø£¬ËüȴչʾÁËstatic¹Ø¼ü×ÖµÄÖ÷ÒªÓ÷¨¡£
ÔÚ1´¦£¬ÎÒÃǶ¨ÒåÁËÒ»¸ö¾²Ì¬µÄ·½·¨ÃûΪmain£¬Õâ¾ÍÒâζןæËßJava±àÒëÆ÷£¬ÎÒÕâ¸ö·½·¨²»ÐèÒª´´½¨Ò»¸ö´ËÀàµÄ¶ÔÏó¼´¿ÉʹÓá£Ä㻹µÃÄãÊÇÔõôÔËÐÐÕâ¸ö³ÌÐòÂð£¿Ò»°ã£¬ÎÒÃǶ¼ÊÇÔÚÃüÁîÐÐÏ£¬´òÈëÈçϵÄÃüÁî(¼ÓÏ»®ÏßΪÊÖ¶¯ÊäÈë)£º
javac Hello.java
java Hello
Hello,world!
Õâ¾ÍÊÇÄãÔËÐеĹý³Ì£¬µÚÒ»ÐÐÓÃÀ´±àÒëHello.javaÕâ¸öÎļþ£¬Ö´ÐÐÍêºó£¬Èç¹ûÄã²é¿´µ±Ç°£¬»á·¢ÏÖ¶àÁËÒ»¸öHello.classÎļþ£¬ÄǾÍÊǵÚÒ»ÐвúÉúµÄJava¶þ½øÖÆ×Ö½ÚÂë¡£µÚ¶þÐоÍÊÇÖ´ÐÐÒ»¸öJava³ÌÐòµÄ×îÆÕ±é×ö·¨¡£Ö´Ðнá¹ûÈçÄãËùÁÏ¡£ÔÚ2ÖУ¬Äã¿ÉÄÜ»áÏ룬ΪʲôҪÕâÑù²ÅÄÜÊä³ö¡£ºÃ£¬ÎÒÃÇÀ´·Ö½âÒ»ÏÂÕâÌõÓï¾ä¡££¨Èç¹ûûÓа²×°JavaÎĵµ£¬Çëµ½SunµÄ¹Ù·½ÍøÕ¾ä¯ÀÀJ2SE API£©Ê×ÏÈ£¬SystemÊÇλÓÚjava.lang°üÖеÄÒ»¸öºËÐÄÀ࣬Èç¹ûÄã²é¿´ËüµÄ¶¨Ò壬Äã»á·¢ÏÖÓÐÕâÑùÒ»ÐУºpublic static final PrintStream out;½Ó×ÅÔÚ½øÒ»²½£¬µã»÷PrintStreamÕâ¸ö³¬Á´½Ó£¬ÔÚMETHODÒ³Ã棬Äã»á¿´µ½´óÁ¿¶¨ÒåµÄ·½·¨£¬²éÕÒprintln£¬»áÓÐÕâÑùÒ»ÐУº
public void println(String x)¡£
ºÃÁË£¬ÏÖÔÚÄãÓ¦¸ÃÃ÷°×ΪʲôÎÒÃÇÒªÄÇÑùµ÷ÓÃÁË£¬outÊÇSystemµÄÒ»¸ö¾²Ì¬±äÁ¿£¬ËùÒÔ¿ÉÒÔÖ±½ÓʹÓ㬶øoutËùÊôµÄÀàÓÐÒ»¸öprintln·½·¨¡£
¾²Ì¬·½·¨
ͨ³££¬ÔÚÒ»¸öÀàÖж¨ÒåÒ»¸ö·½·¨Îªstatic£¬ÄǾÍÊÇ˵£¬ÎÞÐè±¾ÀàµÄ¶ÔÏ󼴿ɵ÷Óô˷½·¨¡£ÈçÏÂËùʾ£º
class Simple{
static void go(){
System.out.println("Go...");
}
}
public class Cal{
public static void main(String[] args){
Simple.go();
}
}
µ÷ÓÃÒ»¸ö¾²Ì¬·½·¨¾ÍÊÇ“ÀàÃû.·½·¨Ãû”,¾²Ì¬·½·¨µÄʹÓúܼòµ¥ÈçÉÏËùʾ¡£Ò»°ãÀ´Ëµ£¬¾²Ì¬·½·¨³£³


Ïà¹ØÎĵµ£º

IBM FileNet Content Java API ¼ò½é

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ºËÐļ¼Êõ¡·¹Ûºó¸Ð


JAVAºËÐļ¼Êõ¹Ûºó¸Ð
  ÕâÖÜ´ó¼Ò¶¼»ù±¾ÉÏÂòÁËÒ»±¾¡¶JAVAºËÐļ¼Êõ¡·À´¿´£¬ËäÈ»ÎÒµÄÊéÏÂÖܲÅÄÜÄõ½£¬µ«ÊÇÎÒ»¹ÊÇ·­ÁËϱðÈ˵ģ¬´óÖÂÁ˽âÁËÒ»ÏÂÀïÃæµÄÄÚÈÝ¡£ÒÔϾÍÊÇÎÒ´Ö²ÚµÄÕûÀí¡£
JAVA²¢²»Ö»ÊÇÒ»ÖÖÓïÑÔ£¬¶øÊÇÒ»¸öÍêÕûµÄƽ̨£¬ÓÐÒ»¸öÅÓ´óµÄ¿â£¬ÆäÖаüº¬ºÜ¶à¿ÉÒÔÖØÓõĴúÂëºÍÒ»¸öÌṩÖîÈ簲ȫÐÔ£¬¿ç²Ù×÷ϵͳµÄ¿ÉÒÆ ......

java¿ò¼ÜѧϰÌå»á

      ×î½üÔÚѧϰjavaµÄ¿ò¼Ü£¬¼ÓÉîÁ˶ÔjavaһЩÉè¼ÆģʽµÄÀí½â£¬ÀýÈçÄ£°å·½·¨Ä£Ê½¡¢²ßÂÔģʽ¡¢´úÀíģʽºÍ¶¯Ì¬´úÀíģʽ£¬·¢ÏÖѧϰÀí½âservletºÍjspºóºÜÈÝÒ×¾Íѧ»áÁËstruts£¬Ñ§Ï°jdbcºó±È½ÏÈÝÒ×Àí½âhibernate£¬±¾ÈË»¹Ã»¿ªÊ¼Ñ§Ï°spring¡£
      ¶Ôstruts¿ò¼ÜµÄÀí½â£ºÖ÷ÒªÊ ......

JavaÖÐstartWith·½·¨µÄʹÓã¡


½ñÌì¿´Java´úÂëʱ£¬¿´µ½ÁË×Ö·û´®ÓÐÒ»¸ö·½·¨ÊÇstartsWith(String str)µ±Ê±¾õµÃ¼ûÃûÖ®Ò⣬ºÜ¼òµ¥Âð£¬È»ºó¾Í×Ô¼º¶¯ÊÖ×öÁËÒ»ÏÂ,ûÏëµ½·¢ÏÖÁËÒ»¸östartsWith()·½·¨µÄÖØÔØ,startsWith(String str,int Index),µ±Ê±ÉÏÍøÈ¥²éÁËÒ»ÏÂûÓкó±ßÕâ¸ö·½·¨,ÓÚÊÇ×Ô¼º×öÁËһϲâÊÔ,ÏÖÔÚ¸ø³öÈçÏÂÏêϸ½âÊÍ,startsWith(String str)¾ÍÊǼì²éÐβΠ......

javaÖзÃÎÊmemcache

ÓÃspyºÍmemcached for  javaÁ½ÖÖ·½Ê½¶Ômemcache½øÐвÙ×÷
Ò»¡¢spy
package com.test.memcache;
import java.net.InetSocketAddress;
import java.util.concurrent.Future;
import net.spy.memcached.MemcachedClient;
/**
 * ±¾ÀàÓõİüÊÇmemcached-2.4.1.jar
 *  ÏÂÔصØÖ·£º http://code.googl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ