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

JavaÀà¼ÓÔØÔ­Àí¼°×Ô¶¨ÒåÀà¼ÓÔØÆ÷

        JavaºÍÆäËûÓïÑÔ²»Í¬µÄÊÇ£¬JavaÊÇÔËÐÐÓÚJavaÐéÄâ»ú(JVM)¡£Õâ¾ÍÒâζ×űàÒëºóµÄ´úÂëÊÇÒÔ
Ò»ÖÖºÍƽ̨Î޹صĸñʽ±£´æµÄ£¬¶ø²»ÊÇijÖÖÌض¨µÄ»úÆ÷ÉÏÔËÐеĸñʽ¡£ÕâÖÖ¸ñʽºÍ´«Í³µÄ¿É
Ö´ÐдúÂë¸ñʽÓкܶàÖØÒªµÄÇø±ð¡£¾ßÌåÀ´Ëµ£¬²»Í¬ÓÚC»òÕߣÃ++³ÌÐò£¬Java³ÌÐò²»ÊÇÒ»¸ö¶À
Á¢µÄ¿ÉÖ´ÐÐÎļþ£¬¶øÊÇÓɺܶà·Ö¿ªµÄÀàÎļþ×é³É£¬Ã¿¸öÀàÎļþ¶ÔÓ¦Ò»¸öJavaÀà¡£ ÁíÍ⣬Õâ
ЩÀàÎļþ²¢²»ÊÇÂíÉϼÓÔص½Äڴ棬¶øÊǵ±³ÌÐòÐèÒªµÄʱºò²Å¼ÓÔØ¡£ Àà¼ÓÔØÆ÷¾ÍÊÇJavaÐéÄâ
»úÖÐÓÃÀ´°ÑÀà¼ÓÔص½ÄÚ´æµÄ¹¤¾ß¡£¶øÇÒ£¬JavaÀà¼ÓÔØÆ÷Ò²ÊÇÓÃJavaʵÏֵġ£ÕâÑùÄã¾Í²»ÐèÒª
¶ÔJavaÐéÄâ»úÓÐÉîÈëµÄÀí½â¾Í¿ÉÒÔºÜÈÝÒ×´´½¨×Ô¼ºµÄÀà¼ÓÔØÆ÷ÁË¡£
     ΪʲôҪ´´½¨Àà¼ÓÔØÆ÷?
      ¼ÈÈ»JavaÐéÄâ»úÒѾ­ÓÐÁËÀà¼ÓÔØÆ÷£¬ÎÒÃÇ»¹Òª×Ô¼º´´½¨ÆäËûµÄÂð?Îʵúá£Ä¬ÈϵÄÀà¼ÓÔØÆ÷
Ö»ÖªµÀÈçºÎ´Ó±¾µØϵͳ¼ÓÔØÀà¡£µ±ÄãµÄ³ÌÐòÍêÈ«ÔÚ±¾»ú±àÒëµÄ»°£¬Ä¬ÈϵÄÀà¼ÓÔØÆ÷Ò»°ã¶¼¹¤
×÷µÄºÜºÃ¡£µ«ÊÇJavaÖÐ×¶¯ÈËÐĵĵط½Ö®Ò»¾ÍÊǺÜÈÝÒ׵ĴÓÍøÂçÉ϶ø²»Ö»ÊDZ¾µØ¼ÓÔØÀà¡£
¾Ù¸öÀý×Ó£¬ä¯ÀÀÆ÷¿ÉÒÔͨ¹ý×Ô¶¨ÒåµÄÀà¼ÓÔØÆ÷¼ÓÔØÀà¡£ »¹ÓÐ
ºÜ¶à¼ÓÔØÀàµÄ·½Ê½¡£³ýÁ˼òµ¥µÄ´Ó±¾µØ»òÕßÍøÂçÍ⣬Ä㻹¿ÉÒÔͨ¹ý×Ô¶¨ÒåJavaÖÐ×¶¯ÈËÐÄ
µÄµØ·½Ö®Ò»:
* Ö´ÐзÇÐÅÈδúÂëÇ°×Ô¶¯ÑéÖ¤Êý×ÖÇ©Ãû
* ¸ù¾ÝÓû§ÌṩµÄÃÜÂë½âÃÜ´úÂë
* ¸ù¾ÝÓû§µÄÐèÒª¶¯Ì¬µÄ´´½¨Àà
Äã¹ØÐĵÄÈκζ«Î÷¶¼ÄÜ·½±ãµÄÒÔ×Ö½ÚÂëµÄÐÎʽ¼¯³Éµ½ÄãµÄÓ¦ÓÃÖÐ
×Ô¶¨ÒåÀà¼ÓÔØÆ÷µÄÀý×Ó
Èç¹ûÄãÒѾ­Ê¹ÓùýJDK(JavaÈí¼þ¿ª·¢°ü)ÖеÄappletviewer£¨Ð¡Ó¦ÓóÌÐòä¯ÀÀÆ÷£©»òÕßÆäËû
JavaǶÈëʽä¯ÀÀÆ÷£¬Äã¾ÍÒѾ­Ê¹ÓÃÁË×Ô¶¨ÒåÀà¼ÓÔØÆ÷ÁË¡£Sun¸Õ¸Õ·¢²¼JavaÓïÑÔµÄʱºò£¬×î
ÁîÈËÐ˷ܵÄÒ»¼þʾÍÊǹۿ´JavaÈçºÎÖ´ÐдÓÔ¶³ÌÍøÕ¾ÏÂÔصĴúÂë¡£Ö´ÐдÓÔ¶³ÌÕ¾µãͨ¹ýHTT
PÁ¬½Ó´«ËÍÀ´µÄ×Ö½ÚÂë¿´ÆðÀ´Óе㲻¿É˼Òé¡£Ö®ËùÒÔÄܹ»¹¤×÷£¬ÒòΪJavaÓа²×°×Ô¶¨ÒåÀà¼Ó
ÔØÆ÷µÄÄÜÁ¦¡£Ð¡Ó¦ÓóÌÐòä¯ÀÀÆ÷°üº¬ÁËÒ»¸öÀà¼ÓÔØÆ÷£¬Õâ¸öÀà¼ÓÔØÆ÷²»´Ó±¾µØÕÒJavaÀ࣬¶ø
ÊÇ·ÃÎÊÔ¶³Ì·þÎñÆ÷£¬Í¨¹ýHTTP¼ÓÔØԭʼ×Ö½ÚÂëÎļþ£¬È»ºóÔÚJavaÐéÄâ»úÖÐת»¯ÎªJavaÀà¡£µ±
È»Àà¼ÓÔØÆ÷»¹×öÁËÆäËûµÄºÜ¶àÊÂÇ飺ËûÃÇ×èÖ¹²»°²È«µÄJavaÀ࣬¶øÇÒ±£³Ö²»Í¬Ò³ÃæÉϵIJ»Í¬
С³ÌÐò²»»á»¥Ïà¸ÉÈÅ¡£Luke GorrieдµÄÒ»¸ö°üEchidnaÊÇÒ»¸ö¿ª·ÅµÄJavaÈí¼þ°ü£¬ËûÔÊÐíÔÚ
Ò»¸öJavaÐéÄâ»úÖа²È«µÄÔËÐжà¸öJavaÓ¦ÓóÌÐò¡£Ëüͨ¹ýʹÓÃ×Ô¶¨ÒåÀà¼ÓÔØÆ÷¸øÿ¸öÓ¦ÓóÌ
ÐòÒ»·ÝÀàÎļþµÄ¿½±´À´×èÖ¹Ó


Ïà¹ØÎĵµ£º

javaÉú³Éxml¸ñʽÊý¾Ý

//»ñÈ¡Êý¾Ý¿âÊý¾Ý·µ»Ølist
public List queryAll(int fcateId) {
List list = new ArrayList();
String sql = "select * from g_Account where fCateID=? order by fCode";
Connection con = SqlHelp.getConn();//»ñµÃÁ¬½Ó£¬sqlhelp×Ô¼ºÐ´µÄ¹¤¾ßÀà
PreparedStatement pst = null;
ResultSet rs = null;
......

³õѧJava ϹдһµÀ Ò»Çж¼ÊǸ¡ÔÆ


import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class Test {
 /**
  * @×÷ÕßQQ£º351828554 2009/12/01 ÐÇÆÚ¶þ
     version:1.0
  */
 public static void main(String[] args) {
        new encry ......

ÔÚJavaÖÐʵÏÖ¸¡µãÊýµÄ¾«È·¼ÆËã

±êÌâ     ÔÚJavaÖÐʵÏÖ¸¡µãÊýµÄ¾«È·¼ÆËã    AYellow£¨Ô­×÷£© Ð޸Ġ  
¹Ø¼ü×Ö     Java ¸¡µãÊý ¾«È·¼ÆËã  
ÎÊÌâµÄÌá³ö£º
Èç¹ûÎÒÃDZàÒëÔËÐÐÏÂÃæÕâ¸ö³ÌÐò»á¿´µ½Ê²Ã´£¿
public class Test{
    public static void mai ......

JAVA¶ÁÈ¡PropertiesÎļþµÄÁùÖÖ·½·¨

 
ʹÓÃJ2SEAPI¶ÁÈ¡PropertiesÎļþµÄÁùÖÖ·½·¨
¡¡¡¡1¡£Ê¹ÓÃjava.util.PropertiesÀàµÄload()·½·¨Ê¾Àý£ºInputStream in=lnew BufferedInputStream(new FileInputStream(name));
properties p=newProperties(); p.load(in);
¡¡¡¡2¡£Ê¹ÓÃjava.util.ResourceBundleÀàµÄgetBundle()·½·¨Ê¾Àý£ºResourceBundle rb=ResourceBu ......

JAVA¶¨Ê±Ö´ÐÐÈÎÎñ

Tomcat ϵĶ¨Ê±ÈÎÎñ
SysContextListener.java
package axtic.servlet;
import java.util.Timer;//¶¨Ê±Æ÷Àà
import axtic.bean.exportHistoryBean;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
public class SysContextListener implements ServletContextListener
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ