Java°²È«±à³Ì±Ê¼Ç¡¾1¡¿ »ù±¾¹¤¾ß¼ò½é¡£
1.1 J2SE
µÄÖ÷Òª¹¤¾ß
»ù±¾¹¤¾ß£º
javac
Java
±à³ÌÓïÑԵıàÒëÆ÷¡£±¾Êé¸÷ÕµijÌÐò¶¼ÊÇÔÚ
DOS
´°¿ÚÖÐͨ¹ýÖ´ÐÐ
"javac
ÎļþÃû
”
À´±àÒë
Java
³ÌÐòµÄ¡£ÎļþÃû±ØÐëÒÔ
.java
Ϊºó׺£¬±àÒëÒÔºóÉú³É
.class
Ϊºó׺µÄ×Ö½ÚÂëÎļþ¡£
java
ÓÃÓÚÖ´ÐÐ
Java
Ó¦ÓóÌÐò¡£±¾Êé¸÷ÕµijÌÐò´ó¶¼Í¨¹ýÔÚ
DOS
´°¿ÚÊäÈë
“java
×Ö½ÚÂëÎļþÃû³Æ
”
À´ÔËÐÐ
javac
±àÒëºÃµÄ³ÌÐò¡£ÊäÈëÃüÁîʱ£¬×Ö½ÚÂëÎļþÃû³ÆµÄºó׺²»ÊäÈë¡£
javadoc
ÓÃÓÚÉú³É
API
Îĵµ¡£ÔÚ±àд³ÌÐòʱ½«×¢ÊÍÓï¾äдÔÚ
“/**”
ºÍ
“*/”
Ö®¼ä£¬ÔòÆäÄÚÈݱã¿É±»
javadoc
ʶ±ð£¬Ö´ÐÐ
“javadoc *.java”
£¬×Ô¶¯Éú³É
API
Îĵµ¡£
appletviewer
ûÓÐ
Web
ä¯ÀÀÆ÷ʱ¿ÉÓÃÀ´ÔËÐк͵÷ÊÔ
Java
Applet
³ÌÐò¡£
jar
¹ÜÀí
jar
Îļþ¡£±¾Êé¶à´ÎʹÓøù¤¾ß½«
Java
³ÌÐò´ò°ü³ÉΪһ¸öÎļþ£¬²¢½ø¶ø½øÐнøÒ»²½µÄ´¦Àí¡£
jdb
Java
µ÷ÊÔÆ÷
javah
C
Í·ÎļþºÍ´æ¸ùµÄÉú³ÉÆ÷£¬ÓÃÓÚ±àд±¾µØÎļþ¡£
javap
Àà·Ö½âÆ÷¡£¿ÉÏÔʾ×Ö½ÚÂëÎļþµÄ°ü¡¢±ê¼ÇΪ
public
¼°
protected
µÄ±äÁ¿ºÍ·½·¨µÈÐÅÏ¢¡£
extcheck
¼ì²â
jar
ÎļþµÄ°æ±¾³åÍ»
RMI
¹¤¾ß£º
rmic
Éú³ÉÔ¶³Ì¶ÔÏóµÄ¼Ü¹¹ºÍ´æ¸ù¡£Ö´Ðкó¿É¸ù¾Ý¸ø¶¨µÄ×Ö½ÚÂëÎļþ
XX.class
¿ÉÉú³É
XX__Stub.class
ºÍ
XX_Skel.class
Îļþ²¿ÊðÔÚ
RMI
ϵͳÖС£
rmiregistry
ÌṩԶ³Ì¶ÔÏóµÄ×¢²á·þÎñ¡£
RMI
¿Í»§³ÌÐò¿Éͨ¹ý¸Ã·þÎñÕÒµ½Ô¶³Ì¶ÔÏó¡£
rmid
Æô¶¯¼¤»îϵͳºǫ́³ÌÐò¡£
serialver
·µ»ØÀàµÄ
serialVersionUID
¹ú¼Ê»¯¹¤¾ß£º
native2ascii
½«±¾µØ±àÂëµÄÎı¾×ª»»Îª
Unicode
±àÂë
°²È«¹¤¾ß
keytool
¹ÜÀíÃÜÔ¿¿âºÍÖ¤Êé¡£±¾Êé×ÔµÚ
5
ÕÂÆð´óÁ¿Ê¹Óøù¤¾ß¡£
Jarsigner
¶Ô
jar
Îļþ½øÐÐÇ©Ãû£¬²¢ÑéÖ¤
jar
ÎļþµÄÇ©Ãû¡£
policytool
¹ÜÀí²ßÂÔÎļþµÄͼÐνçÃ湤¾ß¡£
Java IDL and
RMI-IIOP
¹¤¾ß
tnameserv
Ìṩ·ÃÎÊÃû×Ö·þÎñ
idlj
¸ù¾Ý¸ø¶¨µÄ
IDL
ÎļþÉú³É
Java
°ó¶¨£¬Ê¹
Java
³ÌÐò¿ÉÒÔʹÓÃ
CORBA
¹¦ÄÜ
orbd
ÔÚ
CORBA
»·¾³ÖÐʹ¿Í»§Í¸Ã÷µØ¶¨Î»ºÍÖ´ÐзþÎñÆ÷ÉÏ
persistent
¶ÔÏó
servertool
Ó¦ÓóÌÐò±àдÕß×¢²á¡¢È¡Ïû×¢²á¡¢Æô¶¯¡¢¹Ø±Õ
persistent
·þÎñÆ÷µÄÃüÁîÐй¤¾ß¡£
Java Plug-in
¹¤¾ß£º
unregbean
ÓÃÓÚÈ¡Ïû
Java Bean
×é¼þµÄ×¢²á
HtmlConverter
Ð޸ĵ÷ÓÃ
Applet
µÄ
HTML
Ïà¹ØÎĵµ£º
ÖÚËùÖÜÖª£¬ÔÚJava¶àÏ̱߳à³ÌÖУ¬Ò»¸ö·Ç³£ÖØÒªµÄ·½Ãæ¾ÍÊÇÏ̵߳Äͬ²½ÎÊÌâ¡£
¹ØÓÚÏ̵߳Äͬ²½£¬Ò»°ãÓÐÒÔϽâ¾ö·½·¨£º
1.
ÔÚÐèҪͬ²½µÄ·½·¨µÄ·½·¨Ç©ÃûÖмÓÈësynchronized¹Ø¼ü×Ö¡£
2.
ʹÓÃsynchronized¿é¶ÔÐèÒª½øÐÐͬ²½µÄ´úÂë¶Î½øÐÐͬ²½¡£
3. ʹÓÃJDK
5ÖÐÌṩµÄjava.util.concurrent.lock°üÖеÄLock¶ÔÏó¡£ ......
package test;
/**
*
* @author openpk
*/
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
public class Main {
public static void main(String[] args) {
// Ï̳߳Ø
ExecutorService exec = Executors ......
=====suppose such a method:
public static void openFile(String fileName, PrintWriter stream) throws FileNotFoundException
{
stream = new PrintWriter(fileName);
}
=====then we want to use it this way:
PrintWriter toFile = null;
try
{
openFile("data.txt", t ......
Ò»£ºÀí½â¶àÏß³Ì
¶àÏß³ÌÊÇÕâÑùÒ»ÖÖ»úÖÆ£¬ËüÔÊÐíÔÚ³ÌÐòÖв¢·¢Ö´Ðжà¸öÖ¸ÁîÁ÷£¬Ã¿¸öÖ¸ÁîÁ÷¶¼³ÆΪһ¸öỊ̈߳¬±Ë´Ë¼ä»¥Ïà¶ÀÁ¢¡£
Ïß³ÌÓÖ³ÆΪÇáÁ¿¼¶½ø³Ì£¬ËüºÍ½ø³ÌÒ»ÑùÓµÓжÀÁ¢µÄÖ´ÐпØÖÆ£¬ÓɲÙ×÷ϵͳ¸ºÔðµ÷¶È£¬Çø±ðÔÚÓÚÏß³ÌûÓжÀÁ¢µÄ´æ´¢¿Õ¼ä£¬¶øÊǺÍËùÊô½ø³ÌÖеÄÆäËüÏ̹߳²ÏíÒ»¸ö´æ´¢¿Õ¼ä£¬ÕâʹµÃÏ̼߳äµÄͨÐÅÔ¶½Ï½ø³Ì¼òµ¥¡£
......
JavaÖжÑÕ»µÄ¸ÅÄȻÊÇÂß¼Éϵģ¬ÔÚÍêÈ«·ûºÏJava¹æ·¶µÄJava´¦ÀíÆ÷ÃæÊÀ֮ǰ£¬ËùÓÐJavaÐéÄâ»úÌṩµÄÄÚÈݶ¼ÊÇÓÉÈí¼þÄ£Äâ³öÀ´µÄ¡£
ʲô½Ð¶Ñ£¿ÄãÓÃÊ®¼¸¸öÂ齫ÅÆÊúÖ±µþ³ÉÒ»ÞûÕâ½Ð¶Ñ£¬Äã¿ÉÒÔ´ÓÉÏÃæ¡¢ÏÂÃæ¡¢ÖмäÈÎÒâ³é³öÒ»ÕÅÅÆ£¬Ò²¿ÉÒÔÈÎÒâ²åÈëÒ»ÕÅ¡£
ʲô½ÐÕ»£¿AK-47µÄµ¯Ï»¾ÍÊÇÒ»¸öÕ»£¬ÔÚÉÏÃæµÄ×Óµ¯Ã»±»È¡³ö֮ǰ£¬ÄãÎÞ·¨È¡³öÏÂà ......