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

socketͨÐÅjava»òc#ÖÐÎÄÂÒÂëÎÊÌâ

C#ÖÐÏÔʾÖÐÎÄ£º
¡¾
·¢ËÍÊý¾Ý£º  
  string   sReturnData   =   "ÄãºÃ";  
  Byte[]  
bReturnData   =   Encoding.ASCII.GetBytes(sReturnData.ToCharArray());  
 
m_sktSession.Send(bReturnData); 
¡¾½«³öÏÖÂÒÂë¡¿
¡¿ 
½â¾ö·½°¸£º
±àÂëÓÃutf-8  
  string   sReturnData   =   "ÄãºÃ";  
  Byte[]  
bReturnData   =   UTF8Encoding.UTF8.GetBytes(sReturnData);  
  ½âÂëÒ²Óà  
utf-8  
  string   sReturnData   =  
UTF8Encoding.UTF8.GetString(sReturnData)
javaÖÐÏÔʾÖÐÎÄ£º
 ¡¾
os.write(temp.getBytes("ISO-8859-1"));
¡¾½«³öÏÖÂÒÂë¡¿
¡¿
½â¾ö·½°¸£º
os.write(temp.getBytes("UTF-8"));


Ïà¹ØÎĵµ£º

domino java ´úÀíµ÷ÓÃÊÜÏÞÖÆÀà






  ÔÚDOMINOÖÐʹÓÃHibernateʱ£¬»á³öÏÖÒÔϵĴíÎó£º
ÎÊÌâÊÇÓÉÓÚdomino jre µÄĬÈÏ°²È«²»Ö§³ÖReflectPermission "suppressAccessChecks";
ÔÚDOMINO JVMµÄ°²È«²ßÂÔÎļþÖмÓÈë
permission java.lang.reflect.ReflectPermission
" ......

JavaÐòÁл¯¼òÃ÷¸ÅÒª

1. ¸ÅÄ ÐòÁл¯¾ÍÊǰѶÔÏó±ä³É¶ÔÏóÁ÷£¨È·ÇÐ˵ÊǰѶÔÏóµÄÊôÐÔдÈëÁ÷£©£¬Èç¹ûÐèÒª½ø¶ø¿ÉÒ԰ѶÔÏóÁ÷´æ³É¶þ½øÖÆÎļþ£»
2. Ä¿µÄ£º ÐòÁл¯µÄÄ¿µÄÊÇΪÁË·½±ãÓÀ¾Ã´æ´¢»òÕßÍøÂç´«Ê䣻
3. ÈçºÎʵÏÖ£º ½«ÀàʵÏÖSerializable½Ó¿Ú¼´¿É£¬ÎÞ±ØÐëʵÏֵķ½·¨£¬ÊµÏָýӿÚÖ»ÊÇΪÁ˱êʶ¸ÃÀà¿É±»ÐòÁл¯£»
4. £¨×ª£©ÆäËûÐèÒªÖªµÀµÄ£º
  ......

javaÉèÖð´Ê±¼ä×Ô¶¯Ö´ÐÐ

import java.util.Timer;  
import java.util.TimerTask;  
public class EggTimer {     
    private final Timer timer = new Timer();  
    private final int minutes;  
    public EggT ......

·¢ÏÖÒ»¸öc++¶à̬Óëjava¶à̬²»Í¬µÄµØ·½

¸Õ¸Õ¿´µ½Ò»ÆªÎÄÕÂÌá³öc++¶à̬Óëjava¶à̬²»Í¬µÄµØ·½£¬»ù±¾Òâ˼ÈçÏ£º
Çë¿´C++´úÂ룺
class Base
{
public:
 Base()
 {
  init(); 
 }
 virtual ~Base() {}
protected:
 int value;
 virtual void init() 
 { 
  value = 100; &nb ......

Java¸ß¼¶ÌØÐÔ 1

1.¾²Ì¬µ¼È룺
¾²Ì¬µ¼ÈëÊÇJDK1.5ºóмӵŦÄÜ£¬Ò»°ã²»Ôõô³£Ó㬺ܼòµ¥¸øÄã¾Ù¸öÀý×ÓÄã¾ÍÄÜÃ÷°×ÁË£¬¿´Õâ¶Î´úÂ룺
import static java.lang.System.out;//µ¼Èëjava.lang°üϵÄSystemÀàµÄ¾²Ì¬·½·¨out;
public class HelloWorld{
public static void main(String[] args){
out.print("Hello World!");//¼ÈÊÇÔÚÕ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ