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

C#ºÍJavaµÄÇø±ð£¨×ªÔØ£©


×ʼʱ΢Èí¹«Ë¾½«Javaµ±×öÒ»ÖÖÄܽâ¾öCºÍC++ÖдæÔÚµÄÎÊÌâµÄÓïÑÔ£¬²¢²»ÔÚÒ⣬²¢¼ÌÐøÎ¬³ÖºÍÅàѵ×ÅÆäCºÍC++¼¼ÊõºÍ±à³ÌÈËÔ±¡£½ÓÏÂÀ´²»ÐÒµÄÊÇ£¬Õýµ±Î¢Èí¾¡Á¦ÔÚVisual J++»ù´¡ÉÏÍØÕ¹Java¹¦ÄÜ£¬²¢Ê¹Ö®ÓëWindows²Ù×÷ϵͳ½ôÃܽáºÏÔÚÒ»ÆðµÄʱºò£¬Sun¹«Ë¾¶Ô΢ÈíÌá³ö·¨ÂÉËßËÏ˵ÆäÎ¥·´ÁËÐí¿É֤ЭÒéÖеÄÌõ¿î£¬×îÖյĽá¹ûÊÇ΢Èí¹«Ë¾²»µÃ²»Í£Ö¹ÆäVisual J++²úÆ·µÄ¿ª·¢¡££¨Î¢Èí¹«Ë¾ÈÔÈ»ÏúÊÛVisual J++£¬µ«ÊÇ´Ó1998Äê10ÔÂÒÔÀ´¾ÍûÓÐеİ汾·¢²¼£¬²¢ÇÒÔÚ.Netƽ̨ÉÏҲûÓÐVisual J++µÄλÖÃÁË£©½ÓÏÂÀ´µÄÊÂÇé¾ÍºÜÇå³þÁË£¬Î¢Èí¹«Ë¾¿ª·¢ÁËC#ÓïÑÔ¡£½ÓÏÂÀ´µÄÒ»²¿·Ö½«ÌÖÂÛC#ÓëJavaµÄÏàËÆÐÔ¡£
¡¡¡¡C#ÓëJavaµÄÇø±ð
¡¡¡¡C#×îÒýÈ˵ĵط½ÊÇËüÓëJavaµÄÇø±ð¶ø²»ÊÇÆäÏàËÆÐÔ¡£ÏÂÃæÖ÷ÒªÀ´½éÉÜC#Çø±ðÓÚJavaµÄ²»Í¬µÄÔËÐÐÌØµã¼°JavaÍêȫûÓеÄÌØµã¡£
¡¡¡¡ÖмäÓïÑÔ
¡¡¡¡µ±MSIL±»±àÒë³É×îÖյĻúÆ÷Âëʱ£¬Î¢Èí¹«Ë¾ÔÚÈçºÎÑ¡ÔñÉÏÊǷdz£Áé»îµÄ¡£Î¢Èí¹«Ë¾ºÜ½÷É÷µÄ¶ÔÍâÐû³ÆËµMSIL²»ÊǽâÊÍÐ͵쬶øÊDZ»±àÒë³É»úÆ÷Âë¡£ÒòΪ¿ª·¢ÈËÔ±¶¼ÓÐÕâÑùÒ»¸ö¹ÛÄJava³ÌÐòÌìÉú¾Í±ÈC³ÌÐòÔËÐÐÂý£¬ËùÒÔÕⰵʾ×Å»ùÓÚMSILµÄ³ÌÐòÓÅÓÚ½âÊÍÐ͵ÄJava×Ö½ÚÂë¡£µ±È»£¬¼ÈÈ»C#ºÍÆäËüMSIL²úÆ·±àÒëÆ÷»¹Î´·¢²¼£¬ÄÇôÕâÒ»µã¾Í»¹Î´Ö¤Ã÷£¬µ«ÊÇJavaÎÞ´¦²»Ôڵļ´Ê±±àÒëÆ÷ʹµÃC#ºÍJavaÔÚЧÄÜÉÏÊÇÒ»ÑùµÄ¡£Ïó“C#ÊDZàÒëÐ͵ģ¬JavaÊǽâÊÍÐ͵ĔÕâÑù»°Ö»ÊÇÏúÊÛÖеļ¼ÇÉ¡£JavaµÄ×Ö½ÚÂëºÍMSILÂë¶¼ÊǵÄÀàËÆ»ã±àµÄÖмäÓïÑÔ£¬ÔÚÔËÐÐʱִÐÐÕâЩÖмäÂë¡£
¡¡¡¡ÓëCOMµÄÕûºÏ
¡¡¡¡¶ÔÓÚ»ùÓÚWindowsµÄC#¿ª·¢ÈËÔ±À´Ëµ£¬×î´óµÄÊÕ»ñÊǶÔCOMµÄÎÞËðÕûºÏ£¬COMÊÇ΢ÈíWin32µÄ×é¼þ¼¼Êõ¡£Êµ¼ÊÉÏ£¬ÈκÎÒ»ÖÖ.NetÌåϵ½á¹¹ÉϵÄÓïÑÔ×îÖÕ¶¼¿ÉÄÜȥдCOMµÄ¿Í»§¶ËºÍ·þÎñÆ÷¶Ë³ÌÐò¡£ÓÃC#±àдµÄÀàÒ²»á×÷ΪCOM×é¼þµÄ×ÓÀࣻ½á¹ûÀࣨresulting class£©Ò²ÄÜ×÷ΪCOM×é¼þʹÓ㬲¢×÷ΪCOM×é¼þµÄ×ÓÀà¡£
¡¡¡¡Î¢Èí¹«Ë¾µÄÄ¿±êÊÇʹԽÀ´Ô½¶àµÄÓïÑÔ¶¼ÄÜ·ÃÎÊ×é¼þ£¬²¢Ê¹ÕâЩ×é¼þÄÜÕûºÏµ½.NetÌåϵ½á¹¹ÖС£ÒÑÓм¸¸ö³§ÉÌ¿ªÊ¼×ÅÊÖ¿ª·¢Ö§³Ö.Net¹¦Äܵıà³ÌÓïÑÔ£¬ÈçCOBOLºÍHaskell¡£¿ª·¢ÈËÔ±ÄÜÑ¡Ôñ²»Í¬µÄÓïÑÔ½â¾ö²»Í¬ÎÊÌ⣬¸üÖØÒªµÄÊÇ£¬¿ª·¢ÈËÔ±²»±ØÎª²ÉÓÃ.NetÌåϵ½á¹¹¶ø±ØÐëѧϰÐÂÓïÑÔ£¬¿ÉÒÔÑ¡ÔñÒ»ÖÖËûÃÇÊìϤµÄÓïÑÔ¡£
¡¡¡¡×ܽá
¡¡¡¡±¾ÎĵĵÚÒ»¡¢¶þ²¿·Ö¶ÔC#×öÁËÒ»·ôdzµÄ×ÜÌå½éÉÜ£¬Ö÷ÒªÊÇÆä²úÉú¶¯»ú¼°ÓëJavaµÄÏàËÆÐÔ¡£µÚÈý²¿·ÖÔòº­¸ÅÁËC#µÄÓïÑÔÌØµã¡£Ó÷¶Àý˵Ã÷ÁËC#ÓëJavaÁ½ÕßÔÚÏàËÆÐÔÍ⣬ËüÃÇÓÖÊǷdz£²»Í¬µÄ£¬ÓÐÐí¶àϸ΢µÄÓïÒåºÍÉè¼ÆÇø±ð£¬Êʺϲ»Í¬µÄ¼¼ ÊõºÍÊг¡»·¾³£¬ÓÖ̸µ½Á


Ïà¹ØÎĵµ£º

java µ÷ÓÃÃüÁî ±¸·ÝmysqlÊý¾Ý¿â

 ´úÂëÈçÏ£º
  1  String command  =   " cmd /c C:/Program Files/MySQL/MySQL Server 5.0/bin>mysqldump -h localhost -u root -p aijia > E:/aijia.dmp " ;
  2      try    {
  3     Process process& ......

JAVA:ÓöàÏß³ÌʵÏÖʱ¼äµÄ¶¯Ì¬ÏÔʾ

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 List to Array,Array to List

 1.Listת»»³ÉΪÊý×é¡££¨ÕâÀïµÄListÊÇʵÌåÊÇArrayList)
µ÷ÓÃArrayListµÄtoArray·½·¨¡£
Àý£ºString[] arr = (String[])list.toArray(new String[size]);
2.Êý×éת»»³ÉΪList¡£
µ÷ÓÃArraysµÄasList·½·¨¡£
Àý£ºList stooges = Arrays.asList("Larry", "Moe", "Curly"); ......

¹ØÓÚjavaÖбäÁ¿µÄ³õʼ»¯µÄÎÊÌâ

 Ê×ÏÈһЩ±»³õʼ»¯¶ÔÏóµÄ¸ÅÄ
Àà±äÁ¿£¨Àྲ̬³ÉÔ±£©£º Àà±»¼ÓÔØÊ±²úÉú£»ËüµÄÉú´æÆÚÊÇÀàµÄÉú´æÆÚ£»×Ô¶¯³õʼ»¯£¨Àà±»¼ÓÔØ£©
³ÉÔ±±äÁ¿£¨Àà³ÉÔ±£©£º  ÔÚʹÓÃnew´´½¨¸ÃÀàʵÀýʱ²úÉú£»ËüµÄÉú´æÆÚÓë¸ÃÀàʵÀý¶ÔÏóµÄÉú´æÆÚÏàͬ£»
×Ô¶¯³õʼ»¯£¨¹¹Ôì·½·¨±»µ÷Óã©
¾Ö²¿±äÁ¿£¨ÀàµÄ·½·¨ÖеıäÁ¿£©£º  ¸Ã·½·¨±»µ÷ÓÃÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ