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

javaÄÚ´æÉèÖÃ

 ½â¾öÕ»ºÍ¶ÑÄÚ´æÒç³ö°ì·¨ÒªÉèÖû·¾³ÄÚ´æ±äÁ¿£º
1¡¢ÔÚÔËÐнçÃ棨cmd½øÈ룩ÖÐÔËÐÐÃüÁjava -Xms256m -Xmx1024m£¬Î¬»¤ÉÏÏÂÏÞÄÚ´æ²ÎÊý£¬×î´óÄÚ´æ²»ÄÜ´í¹ýϵͳÄÚ´æµÄ1/4£¬×îСÄÚ´æ²»ÄÜСÓÚ×î´óÄÚ´æµÄ1/4
2¡¢ÔÚTommcat /bin·¾¶Ï£¬Èç¹ûÊÇ°²×°°æÐèÒªservice.batÎļþ,´ËÎļþÔÚ½âѹËõ°æÀï¡£
3¡¢ ÔÚÔËÐнçÃ棨cmd½øÈ룩ÖÐ
ÔËÐÐÃüÁcd Tommcat /bin½øÈëÏàӦĿ¼£¬
ÔËÐÐÃüÁservice.bat install Tomcat5
ÔÙÔËÐÐÃüÁtomcat5.exe //US//Tomcat5 --JvmMs=256 --JvmMx=1024
StackOverFlowErrorÊÇÕ»ÄÚ´æÒç³öÌáʾ¡£
Java heap spaceÊǶÑÄÚ´æÒç³öÌáʾ¡£
¶Ñ£ºÓÃÓÚ´æ´¢±äÁ¿Öµ¡£
Õ»£ºÓÃÓÚ´æ´¢±äÁ¿Ãû¡£
ÀýÈ磺String str="shenyang";
¶Ñ´æ´¢str¡£Õ»´æ´¢shenyang¡£


Ïà¹ØÎĵµ£º

javaÖеÄstaticÏê½â

Èç¹ûÒ»¸öÀà³ÉÔ±±»ÉùÃ÷Ϊstatic£¬Ëü¾ÍÄܹ»ÔÚÀàµÄÈκζÔÏó´´½¨Ö®Ç°±»·ÃÎÊ£¬¶ø²»±ØÒýÓÃÈκζÔÏó¡£static ³ÉÔ±µÄ×î³£¼ûµÄÀý×ÓÊÇmain( ) ¡£ÒòΪÔÚ³ÌÐò¿ªÊ¼Ö´ÐÐʱ±ØÐëµ÷ÓÃmain() £¬ËùÒÔËü±»ÉùÃ÷Ϊstatic¡£
ÉùÃ÷ΪstaticµÄ±äÁ¿ÊµÖÊÉϾÍÊÇÈ«¾Ö±äÁ¿¡£µ±ÉùÃ÷Ò»¸ö¶ÔÏóʱ£¬²¢²»²úÉústatic±äÁ¿µÄ¿½±´£¬¶øÊǸÃÀàËùÓеÄʵÀý±äÁ¿¹²ÓÃͬһ¸ö ......

*³ÉΪJava¸ßÊÖµÄ25¸öѧϰҪµã*

 1. ÄãÐèÒª¾«Í¨ÃæÏò¶ÔÏó·ÖÎöÓëÉè¼Æ£¨OOAOOD£©¡¢É漰ģʽ£¨GOF£¬J2EEDP£©ÒÔ¼°×ÛºÏģʽ¡£ÄãÓ¦¸ÃÁ˽âUML£¬ÓÈÆäÊÇclass¡¢object¡¢interactionÒÔ¼°statediagrams. ¡¡¡¡2. ÄãÐèҪѧϰJavaÓïÑԵĻù´¡ÖªÊ¶ÒÔ¼°ËüµÄºËÐÄÀà¿â£¨collections¡¢serialization¡¢streams¡¢networking¡¢multithreading¡¢reflection¡¢event¡¢handling¡¢N ......

Java Á¬½ÓÊý¾Ý¿â¡¢Ö´ÐÐSQL·â×°Àà

/*µ±Ö´ÐÐSQLʱ·¢ÏÖ²»ÄÜÁ¬½ÓÊý¾Ý¿â£¬ÏÈÖØÁ¬Ò»´Î*/
 
import java.io.FileInputStream;
import java.sql.CallableStatement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
......

javaÎļþ·ÃÎÊFileÀ༰Æä¹ýÂË

import java.io.*;
class FileTest
{
 public static void main(String[] args) throws Exception
 {
  //File f=new File("1.txt");
  //f.createNewFile();
  //f.mkdir();
  //File f=new File("E:\\JavaLesson\\Lesson7\\1.txt");//ÔÚWindowsϵͳÏÂ,Óþø¶Ô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ