JAVA³õѧÕß±ØÖª
1. Java Ô´ÎļþÖÐ×î¶àÖ»ÄÜÓÐÒ»¸öpublicÀà,¶øÇÒÕâ¸öÀàµÄÀàÃûÒªºÍÎļþÃûÒ»ÖÂ.ÆäËûÀàµÄ¸öÊý²»ÏÞ¡£
2. ÃæÏò¶ÔÏó³ÌÐòÉè¼ÆµÄÌØÕ÷£¨·â×°ÐÔ£©£¨¼Ì³Ð£©£¨¶à̬ÐÔ£©
3. ½Ó¿ÚÊÇÓÉ£¨³éÏó·½·¨£©ºÍ£¨³£Á¿£©×é³ÉµÄÌØÊâÀà
4. ÓÃstaticÐÞÊεķ½·¨ÊÇ£¨¾²Ì¬·½·¨£¬»òÀà·½·¨£©
5. ÔÚ²úÉúÒì³£µÄ·½·¨ÉùÃ÷ÖÐÉùÃ÷»á²úÉúµÄÒì³££¬Ïò¸ü¸ßÒ»¼¶·½·¨Å׳öÒì³£µÄ¹Ø¼ü×ÖÊÇ£ºthrows
6. ×ÓÀàͨ¹ý£¨super£©¹Ø¼ü×Öµ÷Óø¸ÀàµÄ¹¹Ôì·½·¨¡£
7. JavaµÄ±ê×¼Êä³öÁ÷ÊÇ£¨System.out£©¡£
8. ʵÏּ̳еĹؼü×Ö£¨extends£©¡£
9. JVMÊÇ£¨JavaÐéÄâ»ú--java virtual machine£©
JDKÊÇ£¨java¿ª·¢¹¤¾ß°ü--Java Developer's Kit £©
appletviewerÊÇ(СӦÓóÌÐòÔÄÀÀÆ÷) ¡£
10. Óû§²»ÄÜÖ±½Óµ÷Óù¹Ôì·½·¨£¬Ö»ÄÜͨ¹ý£¨new £©¹Ø¼ü×Ö×Ô¶¯µ÷Óá£
11. ÔÚ Java ÖУ¬ÓÉJava±àÒëÆ÷×Ô¶¯µ¼È룬¶øÎÞÐèÔÚ³ÌÐòÖÐÓÃimportµ¼ÈëµÄ°üÊÇ£¨java.lang.*£©
12. ÔÚ Java ÖУ¬ÄÜʵÏÖ¶àÖؼ̳ÐЧ¹ûµÄ·½Ê½ÊÇ£¨ÊµÏÖ¶à¸ö½Ó¿Ú£©
13. ´´½¨°üµÄÓï¾äÓ¦¸Ã·ÅÔÚ³ÌÐòµÄλÖÃΪ£¨·Ç×¢Ê͵ĵÚÒ»ÐУ©¡£
14. Óã¨abstract£©¹Ø¼ü×ÖÐÞÊεÄÀàÖ»Äܱ»¼Ì³Ð£¬²»ÄÜÉú³ÉÆä¶ÔÏó¡£
15. ͨ¹ýµ÷ÓÃThreadÀàµÄ£¨start£©·½·¨À´Æô¶¯Ò»¸öÏ̡߳£
16. ¶¨Òå°üµÄ¹Ø¼ü×Ö£¨package£©
17. Java²»Ö§³Ö¶àÖؼ̳У¬µ«¿Éͨ¹ý£¨½Ó¿Úinterface£©ÊµÏÖ¶à¼Ì³Ð¡£
18. JavaÔ´³ÌÐò¾±àÒëÉú³ÉµÄ×Ö½ÚÂëÎļþµÄÀ©Õ¹ÃûΪ£¨class£©
19. JavaµÄºËÐÄ°üÖУ¬Ìṩ±à³ÌÓ¦ÓõĻù±¾ÀàµÄ°üÊÇ£¨×Ô¼º²éһϣ©
20. ÿ¸öJavaÓ¦ÓóÌÐò¿ÉÒÔ°üÀ¨Ðí¶à·½·¨£¬µ«±ØÐëÓÐÇÒÖ»ÄÜÓÐÒ»¸ö£¨main£©·½·¨¡£
21. µ±ÊµÏÖRunnable½Ó¿Úʱ£¬ÒªÊµÏֵķ½·¨ÊÇ£¨public void run()£©
22. ʹÓã¨throw£©¹Ø¼ü×Ö¿ÉÒÔÃ÷È·µØÅ׳öÒ»¸öÒì³£
Ïà¹ØÎĵµ£º
Javaѧϰ´ÓÈëÃŵ½¾«Í¨
Ò»¡¢ JDK (Java Development Kit)
JDKÊÇÕû¸öJavaµÄºËÐÄ£¬°üÀ¨ÁËJavaÔËÐл·¾³£¨Java Runtime Envirnment£©£¬Ò»¶ÑJava¹¤¾ßºÍJava»ù´¡µÄÀà¿â(rt.jar)¡£²»ÂÛʲôJavaÓ¦Ó÷þÎñÆ÷ʵÖʶ¼ÊÇÄÚÖÃÁËij¸ö°æ±¾µÄJDK¡£Òò´ËÕÆÎÕJDKÊÇѧºÃJavaµÄµÚÒ»²½¡£×îÖ÷Á÷µÄJ ......
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
public class ExceptionDefaultHandler
{
private final static String _relativeExceptionLogPath = "log";
private final static String _defaultExceptionLogFileName = "exception.log";
......
import java.util.Date;
public class TimeSpan
{
public final static TimeSpan ZERO = new TimeSpan(0);
private long _totalMilliSeconds = 0;
public TimeSpan(long totalMilliSeconds)
{
_totalMilliSeconds = totalMilliSeconds;
}
public TimeSpan(Date afterDate, Date beforeDat ......
/**
* °ÑÖ¸¶¨µÄÄÚÈÝдµ½Ö¸¶¨Â·¾¶µÄÎı¾ÎļþÉÏ
*
* @param pathÖ¸¶¨Â·¾¶
* @param context ҪдµÄÄÚÈÝ
*/
public static void writeFile(String path, String context) {
// ´Ó¿ØÖÆ̨ÊäÈëÄÚÈÝдÈëÎļþ
try {
FileWriter fw = new FileWriter(path, true);
PrintWriter pw = new Print ......
JAVAÅäÖãº
1£º JAVA_HOME £º C:\Program Files\Java\jdk1.6.0_12
2£ºCLASSPATH £º .;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
3£ºPATH £º %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
TomcatÅäÖ ......