JavaÐéÄâ»ú ºÍ javaÐéÄâ»úϵĽø³Ì
Ò»¡¢Ê²Ã´ÊÇJavaÐéÄâ»ú
µ±Äã̸µ½JavaÐéÄâ»úʱ£¬Äã¿ÉÄÜÊÇÖ¸£º
1¡¢³éÏóµÄJavaÐéÄâ»ú¹æ·¶
2¡¢Ò»¸ö¾ßÌåµÄJavaÐéÄâ»úʵÏÖ
3¡¢Ò»¸öÔËÐеÄJavaÐéÄâ»úʵÀý
¶þ¡¢JavaÐéÄâ»úµÄÉúÃüÖÜÆÚ
Ò»¸öÔËÐÐÖеÄJavaÐéÄâ»úÓÐ×ÅÒ»¸öÇåÎúµÄÈÎÎñ£ºÖ´ÐÐJava³ÌÐò¡£³ÌÐò¿ªÊ¼Ö´ÐÐʱËû²ÅÔËÐУ¬³ÌÐò½áÊøʱËû¾ÍÍ£Ö¹¡£ÄãÔÚͬһ̨»úÆ÷ÉÏÔËÐÐÈý¸ö³ÌÐò£¬¾Í»áÓÐÈý¸öÔËÐÐÖеÄJavaÐéÄâ»ú¡£
JavaÐéÄâ»ú×ÜÊÇ¿ªÊ¼ÓÚÒ»¸ömain()·½·¨£¬Õâ¸ö·½·¨±ØÐëÊǹ«ÓС¢·µ»Øvoid¡¢Ö±½ÓÊÜÒ»¸ö×Ö·û´®Êý×é¡£ÔÚ³ÌÐòÖ´ÐÐʱ£¬Äã±ØÐë¸øJavaÐéÄâ»úÖ¸Ã÷Õâ¸ö°ü»»main()·½·¨µÄÀàÃû¡£
Main()·½·¨ÊdzÌÐòµÄÆðµã£¬Ëû±»Ö´ÐеÄÏ̳߳õʼ»¯Îª³ÌÐòµÄ³õʼÏ̡߳£³ÌÐòÖÐÆäËûµÄÏ̶߳¼ÓÉËûÀ´Æô¶¯¡£JavaÖеÄÏ̷߳ÖΪÁ½ÖÖ£ºÊØ»¤Ïß³Ì £¨daemon£©ºÍÆÕͨỊ̈߳¨non-daemon£©¡£ÊØ»¤Ïß³ÌÊÇJavaÐéÄâ»ú×Ô¼ºÊ¹ÓõÄỊ̈߳¬±ÈÈ縺ÔðÀ¬»øÊÕ¼¯µÄÏ߳̾ÍÊÇÒ»¸öÊØ»¤Ï̡߳£µ±È»£¬ÄãÒ²¿É ÒÔ°Ñ×Ô¼ºµÄ³ÌÐòÉèÖÃΪÊØ»¤Ï̡߳£°üº¬Main()·½·¨µÄ³õʼÏ̲߳»ÊÇÊØ»¤Ï̡߳£
Ö»ÒªJavaÐéÄâ»úÖл¹ÓÐÆÕͨµÄÏß³ÌÔÚÖ´ÐУ¬JavaÐéÄâ»ú¾Í²»»áÍ£Ö¹¡£Èç¹ûÓÐ×ã¹»µÄȨÏÞ£¬Äã¿ÉÒÔµ÷ÓÃexit()·½·¨ÖÕÖ¹³ÌÐò¡£
Èý¡¢JavaÐéÄâ»úµÄÌåϵ½á¹¹
ÔÚJavaÐéÄâ»úµÄ¹æ·¶Öж¨ÒåÁËһϵÁеÄ×Óϵͳ¡¢ÄÚ´æÇøÓò¡¢Êý¾ÝÀàÐͺÍʹÓÃÖ¸ÄÏ¡£ÕâЩ×é¼þ¹¹³ÉÁËJavaÐéÄâ»úµÄÄÚ²¿½á¹¹£¬ËûÃDz»½ö½öΪJavaÐéÄâ»úµÄʵÏÖÌṩÁËÇåÎúµÄÄÚ²¿½á¹¹£¬¸üÊÇÑϸñ¹æ¶¨ÁËJavaÐéÄâ»úʵÏÖµÄÍⲿÐÐΪ¡£
ÿһ¸öJavaÐéÄâ»ú¶¼ÓÉÒ»¸öÀà¼ÓÔØÆ÷×Óϵͳ£¨class loader subsystem£©£¬¸ºÔð¼ÓÔسÌÐòÖеÄÀàÐÍ£¨ÀàºÍ½Ó¿Ú£©£¬²¢¸³ÓèΨһµÄÃû×Ö¡£Ã¿Ò»¸öJavaÐéÄâ»ú¶¼ÓÐÒ»¸öÖ´ÐÐÒýÇ棨execution engine£©¸ºÔðÖ´Ðб»¼ÓÔØÀàÖаüº¬µÄÖ¸Áî¡£
³ÌÐòµÄÖ´ÐÐÐèÒªÒ»¶¨µÄÄÚ´æ¿Õ¼ä£¬Èç×Ö½ÚÂë¡¢±»¼ÓÔØÀàµÄÆäËû¶îÍâÐÅÏ¢¡¢³ÌÐòÖеĶÔÏó¡¢·½·¨µÄ²ÎÊý¡¢·µ»ØÖµ¡¢±¾µØ±äÁ¿¡¢´¦ÀíµÄÖмä±äÁ¿µÈµÈ¡£JavaÐéÄâ»ú½« ÕâЩÐÅϢͳͳ±£´æÔÚÊý¾ÝÇø£¨data areas£©ÖС£ËäȻÿ¸öJavaÐéÄâ»úµÄʵÏÖÖж¼°üº¬Êý¾ÝÇø£¬µ«ÊÇJavaÐéÄâ»ú¹æ·¶¶ÔÊý¾ÝÇøµÄ¹æ¶¨È´·Ç³£µÄ³éÏó¡£Ðí¶à½á¹¹ÉϵÄϸ½Ú²¿·Ö¶¼Áô¸øÁË JavaÐéÄâ»úʵÏÖÕß×Ô¼º·¢»Ó¡£²»Í¬JavaÐéÄâ»úʵÏÖÉϵÄÄÚ´æ½á¹¹Ç§²îÍò±ð¡£Ò»²¿·ÖʵÏÖ¿ÉÄÜÕ¼ÓÃ
Ïà¹ØÎĵµ£º
µÚ10Õ ÍøÂçÓëÊý¾Ý¿â±à³Ì»ù´¡
(Ò»)¿Î³ÌÄÚÈÝ
10.1 JavaÍøÂç±à³Ì»ù´¡
10.1.1 IPµØÖ·ºÍInetAddressÀà
10.1.2ͳһ×ÊÔ´¶¨Î»·ûURL
10.1.3¿Í»§»ú/·þÎñÆ÷ģʽ
l0.2 JavaÊý¾Ý¿â±à³Ì»ù´¡
10.2.1 Java³ÌÐòÓëÊý¾Ý¿âÁ¬½Ó
10.2.2¼¸¸öÖØÒªµÄÀàºÍ½Ó¿Ú
10.2.3Êý¾Ý¿â²éѯ
10.2.4Êý¾Ý¿â¸üÐÂ
(¶þ)ѧϰĿµÄÓëÒªÇó
±¾Õ½éÉÜJavaÍøÂç± ......
/*
±¾¶Î´úÂëÔÚ¹«Ë¾ÏîÄ¿ÖÐʵ¼ÊÔ¶³Ìµ÷ÓõÚÈý·½¹«Ë¾ÌṩµÄC#¿ª·¢WebServiceµÄʾÀý
*/
/**
* µÇ¼ÓÎÏ·
*
* @param paramPN
* @param paramTerraceID
* @param paramSvrID
*/
private String loginGame(String paramPN, HttpServletRequest req){
&n ......
//´òÓ¡³ömess±íµÄÁÐÊýÊǶàÉÙ
public static void main(String[] args){
String sql="select count(*) from mess";
ResultSet set=null;
try {
Object paramValues[] = new Object[0];
set = DBUtil.preExec ......
import java.awt.*;
import javax.swing.*;
import java.util.Date;
import java.awt.*;
class Time extends JFrame implements Runnable{//ʵÏÖ½Ó¿Ú
Thread clockThread;
JLabel jLabel=new JLabel();
public Time()
{
Container con=this.getContentPane() ......
ÕâÊÇÒ»¸öÓÃJAVA W3C DOM ½øÐÐXML²Ù×÷µÄÀý×Ó£¬°üº¬Á˲éѯ¡¢Ôö¼Ó¡¢Ð޸ġ¢É¾³ý¡¢±£´æµÄ»ù±¾²Ù×÷¡£½ÏÍêÕûµÄÃèÊöÁËÒ»¸öXMLµÄÕû¸ö²Ù×÷Á÷³Ì¡£ÊʺϸÕÈëÃÅJAVA XML²Ù×÷µÄÅóÓѲο¼ºÍѧϰ¡£
¼ÙÉèÓÐXMLÎļþ£ºtest1.xml
<?xml version="1.0" encoding="UTF-8"?>
<books>
<book>
< ......