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

Java°üµÄ´´½¨ºÍʹÓÃ

°üÊÇJavaÓïÑÔÌṩµÄÒ»ÖÖÇø±ðÀàÃû×ÖÃüÃû¿Õ¼äµÄ»úÖÆ£¬ËüÊÇÀàµÄÒ»ÖÖÎļþ×éÖ¯ºÍ¹ÜÀí·½Ê½¡¢ÊÇÒ»×鹦ÄÜÏàËÆ»òÏà¹ØµÄÀà»ò½Ó¿ÚµÄ¼¯ºÏ¡£Java packageÌṩÁË·ÃÎÊȨÏÞºÍÃüÃûµÄ¹ÜÀí»úÖÆ£¬ËüÊÇJavaÖкܻù´¡È´Óַdz£ÖØÒªµÄÒ»¸ö¸ÅÄî¡£
 
Ò»¡¢°üµÄ×÷ÓÃ
1 °Ñ¹¦ÄÜÏàËÆ»òÏà¹ØµÄÀà»ò½Ó¿Ú×éÖ¯ÔÚͬһ¸ö°üÖУ¬·½±ãÀàµÄ²éÕÒºÍʹÓá£
2 ÈçͬÎļþ¼ÐÒ»Ñù£¬°üÒ²²ÉÓÃÁËÊ÷ÐÎĿ¼µÄ´æ´¢·½Ê½¡£Í¬Ò»¸ö°üÖеÄÀàÃû×ÖÊDz»Í¬µÄ£¬²»Í¬µÄ°üÖеÄÀàµÄÃû×ÖÊÇ¿ÉÒÔÏàͬµÄ£¬µ±Í¬Ê±µ÷ÓÃÁ½¸ö²»Í¬°üÖÐÏàͬÀàÃûµÄÀàʱ£¬Ó¦¸Ã¼ÓÉÏ°üÃû¼ÓÒÔÇø±ð¡£Òò´Ë£¬°ü¿ÉÒÔ±ÜÃâÃû×Ö³åÍ»¡£
3 °üÒ²ÏÞ¶¨ÁË·ÃÎÊȨÏÞ£¬ÓµÓаü·ÃÎÊȨÏÞµÄÀà²ÅÄÜ·ÃÎÊij¸ö°üÖеÄÀà¡£
 
¶þ¡¢°üµÄ¶¨Òå
    ÔÚÒ»¸ö.javaÎļþÖпÉÒÔÒ»¸öpublicÀàºÍ¶à¸ö·ÇpublicÀ࣬Èç¹ûÒª½«ÕâЩÀà×éÖ¯ÔÚÒ»¸ö°üµ±ÖУ¬ÔòÔÚ.javaÎļþÖгý×¢ÊÍÒÔÍâµÄµÚÒ»ÐÐʹÓùؼü×Öpackage¼´¿ÉʵÏÖ¡£µ±ÐèÒªµ÷Óô˰üÖеÄÀàʱ£¬¾Í¿ÉÒÔʹÓùؼü×Öimport½øÐе¼Èë¡£ÔÚ¶¨Òå°üµÄʱºò£¬Ó¦¸Ã×¢Ò⼸µã:
    1 ΪÁ˾¡Á¿Ê¹°üÃû±£³ÖΨһÐÔ£¬°üÃûͨ³£²ÉÓÃСд¡¢°´µ¹Ð´»¥ÁªÍøÖ·µÄÐÎʽ½øÐж¨Òå¡£Èç:com.hank.www±íʾ°üÎļþ·ÅÖõÄÎļþ·¾¶Îªcom\hank\www¡£
    2 ÔÚ½øÐÐÃüÃû°üʱ£¬Ó¦¸Ã±ÜÃâʹÓÃÓëϵͳ·¢Éú³åÍ»µÄÃû×Ö£¬Èçjava.lang¡¢java.swingµÈ¡£
 
Èý¡¢java°ü´´½¨ºÍʹÓò½Öè
    ²½Öè1ÔÚCÅ̸ùĿ¼Ï´´½¨javaÎļþ¼Ð£¬ÆäÏ·ÅÖÃÓÐÔ´ÎļþHelloWorld.javaºÍMyTest.java¡£±àд°üÔ´Îļþ´úÂëHelloWorld.javaºÍ²âÊÔÔ´Îļþ´úÂëMyTest.java¡£ÈçÏ£º
//HelloWorld.java
package com.hank.www;
public class HelloWorld
{
         public HelloWorld(){System.out.println("Hello,World !");}
         public void display(){System.out.println("Welcome to the java programming world !");}
}
//MyTest.java
import com.hank.www.HelloWorld;
public class MyTest
{
         public static void main(String[] args)
         {
                   HelloWorld hw=new HelloWorld();
        


Ïà¹ØÎĵµ£º

±±¾©java֮· ´«ÖDz¥¿Í

À´µ½±±¾©´«ÖDz¥¿ÍÒ»ÔÂÓÐÓà ÉîÓид¥  
ÕýËùνı¶¨¶øºó¶¯ Ãæ¶Ô¹úÄÚ·×˵ÖÚÜ¿µÄÅàѵ»ú¹¹ °³ºÜÔÎ
ÏÈ˵˵µØÀíλÖÃ×î½üµÄ±¾ÍÁÅàѵ»ú¹¹°É òËƽÌѧʱ¼ä±È½Ï³¤ ÒªÒ»ÄêÖ®¾Ã Ö÷ÒªÕÐÊÕÔÚУ´óѧÉú ½Ìѧʱ¼äÊÇÍíÉÏ µÚÒ»¸ö±»±»ÈËpass
´Ó¶ø¿ªÊ¼Ñ°ÕÒÔÚÊ¡»áµÄÅàѵ»ú¹¹ òËÆѧ·ÑÌ«¹ó ºÍ±¾ÈËÔ¤ËãÓÐËù³åÍ»  pass
×îºóÎÒÖÕÓÚÕ ......

Java Socket

×î½üÑо¿ÏÂsocket,ctrl+vÁËÏÂÍøÉϵĶ«Î÷:
   ÊÂʵÉÏÍøÂç±à³Ì¼òµ¥µÄÀí½â¾ÍÊÇÁ½Ì¨¼ÆËã»úÏ໥ͨѶÊý¾Ý¶øÒÑ¡£¶ÔÓÚ³ÌÐòÔ±¶øÑÔ£¬È¥ÕÆÎÕÒ»ÖÖ±à³Ì½Ó¿Ú²¢Ê¹ÓÃÒ»ÖÖ±à³ÌÄ£ÐÍÏà¶Ô¾Í»áÏԵüòµ¥µÄ¶àÁË¡£Java SDKÌṩһЩÏà¶Ô¼òµ¥µÄApiÀ´Íê³ÉÕâЩ¹¤×÷£¬Socket¾ÍÊÇÆäÖÐÖ®Ò»¡£
¡¡¡¡¶ÔÓÚJava¶øÑÔ¡£ÕâЩApi´æÔÚÓëJava.netÕâ¸ö ......

¹ØÓÚJavaµÄ¼¸¸öÎÊÌâ

×î½üÃæÊÔÁ˺ܶ๫˾£¬Ò»Ð©±ÊÊÔºÍÃæÊÔµÄÎÊÌâÈÃÎÒÉîÓид¥¡£ËäȻ˵×Ô¼º¶ÔJavaÒѾ­ºÜÊìϤÁË£¬²»¹ýµ±Ãæ¶ÔһЩϸ½ÚµÄʱºò£¬×Ô¼ºÈ·ÊµÓеãÎÞ´ÓÏÂÊÖ¡£ÏÂÃæ¼òµ¥µÄÁоټ¸¸öÀý×Ó£º
1.JavaÖжѺÍÕ»µÄÇø±ð
        Æäʵ£¬Õâ¸öÎÊÌâ²¢²»ÊǺÜÄÑ¡£²»¹ýÒ²ÐíºÜ¶à³ÌÐòÔ±ÍùÍùºöÂÔÁËÕâÒ»µã£¬ÓÈÆ ......

matlab java.lang.OutOfMemoryError: Java heap space

À´×Ôhttp://www.ilovematlab.cn/thread-30836-1-1.html
matlab java.lang.OutOfMemoryError
JavaÐéÄâ»úÄÚ´æ²»¹»ÓÃÁË.¿ÉÒÔÔö¼Ó×î´óÄÚ´æÉèÖÃ.
1. ²éÕÒmatlab¸ù·¾¶.ÔÚmatlabÃüÁîÐÐÖÐÇÃÈë:matlabroot
ÏÔʾ¸ù·¾¶,Èç:C:\MATLAB7
2.²é¿´µ±Ç°JavaÐéÄâ»ú×î´ó¶ÑÄÚ´æ, ÇÃÈë:java.lang.Runtime.getRuntime.maxMemory
3.²é¿ ......

java¿ª·¢»·¾³´î½¨ д¸øjavaÐÂÊÖ

Ò»¡¢windowsÏ¿ª·¢»·¾³µÄ´î½¨
1¡¢´Óhttp://java.sun.com/ÉÏÏÂÔØwindowsƽ̨µÄJDK,²¢°²×°¡£¼ÙÉ谲װĿ¼Ϊ£ºC:\jdk6.0
2¡¢É趨Ïà¹Ø»·¾³Á¿£¨ÒÔwindowsXP)Àý£º
       1¡¢ÓÒ»÷×ÀÃæÉÏ“ÎҵĵçÄÔ”£¬Ñ¡ÔñÊôÐÔ
       2¡¢ÔÙÑ¡Ôñ“¸ß¼¶”»îÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ