javaÐÔÄܵÄÓÅ»¯(Ò»)
ÎÒ¶ÔÎÊÌâµÄÀí½â£ºÃæÊÔÖеÄÒ»¸öÎÊÌ⣬¾ÓÈ»ÏëÁË°ëÌìûÓÐʲôͷÐ÷£¬ÎÒÏ뻹ÊÇûÓÐ˼¿¼£¬Ã»ÓлýÀÛ¹ý¡£ÆäʵÍêÈ«¿ÉÒÔ˵ÉÏһЩСϸ½Ú£¬±ÈÈçÓÃStringBuffer´úÌæString£¬ÓÃHashMap´úÌæHashtable, ³Ë·¨²Ù×÷ÓÃλÒÆ£¬¾¡Á¿¸´ÓÃÒÑÓеľ¹ý¼ìÑéµÄ¸ßЧ´úÂëµÈµÈ¡£
ÏÂÃæµÄÎÄÕÂתÔØ×Ô±ðµÄÍøÕ¾£¬Ð´µÃºÜרҵ£¬Öܵ½£¬ÓÐÉî¶È¡£
JavaÐÔÄܵÄÓÅ»¯
JavaÔÚ¾ÅÊ®Äê´úÖÐÆÚ³öÏÖÒÔºó£¬ÔÚÓ®µÃÔÞ̾µÄͬʱ£¬Ò²ÒýÀ´ÁËһЩÅúÆÀ¡£Ó®µÃµÄÔÞ̾Ö÷ÒªÊÇJavaµÄ¿çƽ̨µÄ²Ù×÷ÐÔ£¬¼´ËùνµÄ”Write
Once,Run Anywhere”.µ«ÓÉÓÚJavaµÄÐÔÄܺÍÔËÐÐЧÂÊͬCÏà±È£¬ÈÔÈ»ÓкܴóµÄ²î¾à£¬´Ó¶øÒýÀ´Á˺ܶàµÄÅúÆÀ¡£
¶ÔÓÚ·þÎñÆ÷
¶ËµÄÓ¦ÓóÌÐò£¬ÓÉÓÚ²»´óÉæ¼°µ½½çÃæÉè¼ÆºÍ³ÌÐòµÄƵ·±ÖØÆô£¬JavaµÄÐÔÄÜÎÊÌâ¿´ËƲ»´óÃ÷ÏÔ£¬´Ó¶øһЩ
JavaµÄ¼¼Êõ£¬ÈçJSP,Servlet,EJBµÈÔÚ·þÎñÆ÷
¶Ë±à³Ì·½ÃæµÃµ½Á˺ܴóµÄÓ¦Ó㬵«Êµ¼ÊÉÏ£¬JavaµÄ
ÐÔÄÜÎÊÌâÔÚ·þÎñÆ÷¶ËÒÀÈ»´æÔÚ¡£ÏÂÃæÎÒ½«·ÖËĸö·½ÃæÀ´ÌÖÂÛJavaµÄÐÔÄܺÍÖ´ÐÐЧÂÊÒÔ¼°Ìá¸ßJavaÐÔÄܵÄһЩ·½·¨¡£
Ò»£®¹ØÓÚÐÔÄܵĻù±¾ÖªÊ¶
1£®ÐÔÄܵĶ¨Òå
ÔÚÎÒÃÇÌÖÂÛÔõÑùÌá¸ßJavaµÄÐÔÄÜ֮ǰ£¬ÎÒÃÇÐèÒªÃ÷°×“ÐÔÄÜ“µÄÕæÕýº¬Òå¡£ÎÒÃÇÒ»°ã¶¨ÒåÈçÏÂÎå¸ö·½Ãæ×÷ΪÆÀÅÐÐÔÄܵıê×¼¡£
1£©
ÔËËãµÄÐÔÄÜ----ÄÄÒ»¸öËã·¨µÄÖ´ÐÐÐÔÄÜ×îºÃ
2£© ÄÚ´æ
µÄ·ÖÅä----³ÌÐòÐèÒª·ÖÅä¶àÉÙÄڴ棬ÔËÐÐʱµÄЧÂʺÍÐÔ
ÄÜ×î¸ß¡£
3£© Æô¶¯µÄʱ¼ä----³ÌÐòÆô¶¯ÐèÒª¶àÉÙʱ¼ä¡£
4£©
³ÌÐòµÄ¿ÉÉìËõÐÔ-----³ÌÐòÔÚÓû§¸ºÔعýÖصÄÇé¿öϵıíÏÖ¡£
5£© ÐÔÄܵÄÈÏʶ------Óû§ÔõÑù²ÅÄÜÈÏʶµ½³ÌÐòµÄÐÔÄÜ¡£
¶ÔÓÚ²»Í¬µÄÓ¦ÓóÌÐò£¬¶ÔÐÔÄܵÄÒªÇóÒ²²»Í¬¡£ÀýÈ磬´ó²¿·ÖµÄÓ¦ÓóÌÐòÔÚÆô¶¯Ê±ÐèÒª½Ï³¤µÄʱ¼ä£¬´Ó¶ø¶ÔÆô¶¯Ê±¼äµÄÒªÇóÓÐËù½µµÍ£»·þÎñÆ÷¶ËµÄÓ¦ÓóÌÐòͨ³£¶¼·ÖÅä
ÓнϴóµÄÄÚ´æ¿Õ¼ä£¬ËùÒÔ¶ÔÄÚ´æµÄÒªÇóÒ²ÓÐËù½µµÍ¡£µ«ÊÇ£¬Õâ²¢²»ÊÇËùÕâÁ½·½ÃæµÄÐÔÄÜ¿ÉÒÔ±»ºöÂÔ¡£Æä´Î£¬Ëã·¨µÄÐÔÄܶÔÓÚÄÇЩ°ÑÉÌÎñÂß¼ÔËÓõ½ÊÂÎñÐÔ²Ù×÷µÄÓ¦ÓÃ
³ÌÐòÀ´½²·Ç³£ÖØÒª¡£×ܵÄÀ´½²£¬¶ÔÓ¦ÓóÌÐòµÄÒªÇ󽫾ö¶¨¶Ô¸÷¸öÐÔÄܵÄÓÅÏȼ¶¡£
2£®ÔõÑù²ÅÄÜÌá¸ßJAVAµÄÐÔÄÜ
Ìá¸ßJAVAµÄÐÔÄÜ£¬Ò»°ã¿¼ÂÇÈçϵÄËĸöÖ÷Òª·½Ã棺
£¨1£© ³
Ïà¹ØÎĵµ£º
JavaÔÓ̸£¨Áù£©
ÕâƪÊDZÊÕß´òËãдµÄJ2se²¿·ÖµÄ×îºóһƪÁË£¬Õâƪ½áÊøÖ®ºó£¬ÔÙдJ2ee²¿·Ö£¬²»ÖªµÀÊÇ·ñ»¹ºÏÊÊдÔÚÕâ¸ö°æ¿é£¿´ó¼Ò¿ÉÒÔ¸øµãÒâ¼û£¬Ð»Ð»´ó¼Ò¶ÔСµÜÕâô¹ÄÀøһ·дÍêÇ°ÁùƪJavaÔÓ̸µÄJ2se²¿·Ö¡£×îºóÕâƪ´òËã̸һ̸JavaÖеÄRMI»úÖƺÍJVMɳÏ䰲ȫ¿ò¼Ü¡£&nbs ......
----------½Ó¿Ú------------
import java.rmi.*;
public interface HelloIn extends java.rmi.Remote{
String sayHello() throws RemoteException;
}
--------ʵÏÖÀà-------------
import java.rmi.*;
import java.net.*;
import java.rmi.registry.*;
import java.rmi.server.*;
public class Hello exten ......
import java.io.UnsupportedEncodingException;
public class T {
public static void main(String[] args) throws UnsupportedEncodingException {
t1();//ASCIIת»»Îª×Ö·û´®
t2();//×Ö·û´®×ª»»ÎªASCIIÂë
}
public static void t1(){//ASCIIת»»Îª×Ö·û´®
......
ͨ¹ýjavaµÄ·´Éä»úÖÆ£¬¶¯Ì¬µ÷ÓÃij¸ö·½·¨£º
ÈçÏ£º
public Object invokeMethod(String className, String methodName,
Object[] args) throws Exception{
Class ownerClass = Class.forName(className);
Object owner = ownerClass.newInstance();
Class[] argsClass = new Class[args.length ......
import java.io.FileWriter;
import java.io.IOException;
import java.io.RandomAccessFile;
/**
* ½«ÄÚÈÝ×·¼Óµ½Îļþβ²¿
*/
public class AppendToFile
{
/**
* A·½·¨×·¼ÓÎļþ£ºÊ¹ÓÃRandomAccessFile
*
  ......