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

JavaÈռǣ¨Ò»£©——javaÈëÃÅ

javaÈëÃÅ
Ò»¡¢javaÊÇʲô
javaÊÇÒ»ÖÖ¼ÆËã»ú±à³ÌÓïÑÔ£¬Èí¼þ¿ª·¢Æ½Ì¨£¬Èí¼þÔËÐÐƽ̨£¬»¹ÊÇÒ»ÖÖÈí¼þ²¿Êð»·¾³¡£
¶þ¡¢javaÓÐʲô
java¼¼ÊõÓÐÈý¸ö·ÖÖ§£ºJava SE¡¢Java EEºÍJava ME¡£
Èý¡¢javaÄܸÉʲô
Ö÷ÒªÓÐÈý¸ö·½Ã棺×ÀÃæÓ¦ÓóÌÐòµÄ¿ª·¢¡¢ÆóÒµ¼¶µÄÓ¦ÓúÍǶÈëʽÉ豸¡£
ËÄ¡¢javaµÄÌصã
javaÊÇÒ»ÖÖ¼òµ¥µÄ¡¢ÃæÏò¶ÔÏóµÄ¡¢·Ö²¼Ê½µÄ¡¢½âÊÍÐ͵ġ¢½¡×³µÄ¡¢°²È«µÄ¡¢½á¹¹ÖÐÁ¢µÄ¡¢¿ÉÒÆÖ²µÄ¡¢ÐÔÄÜÓÅÒìµÄ¡¢¶àÏ̵߳ġ¢¶¯Ì¬µÄÓïÑÔ¡£
Îå¡¢¹¹½¨javaµÄ»·¾³
µÚÒ»²½£ºÏÂÔØjdk¡£
µÚ¶þ²½£º°²×°jdk¡£
µÚÈý²½£ºÅäÖû·¾³±äÁ¿¡£
 »·¾³±äÁ¿µÄÅäÖÃÖ÷ÒªÓÐÈý¸ö·½Ã棺path¡¢classpathºÍJAVA_HOME¡£
path£ºÅäÖõ½jdkµÄ°²×°Ä¿Â¼\bin¡£
JAVA_HOME£ºÅäÖõ½jdkµÄ°²×°Ä¿Â¼Ï¡£
classpath£ºÒ»°ãÎÒÃÇÔÚÅäÖÃʱ£¬¶¼ÒªÅäÖÓ.;”£¬“.”ÔÚÕâÀï±íʾµÄÊǵ±Ç°Ä¿Â¼Ï¡£
µÚËIJ½£º¼ì²â¡£Í¨¹ýÔÚcmdÖÐÊäÈëjavaºÍjavac¡£
Áù¡¢HelloWorld
ÎÒÃÇѧϰÈκαà³ÌÓïÑÔ¶¼ÊÇ´ÓHelloWorld¿ªÊ¼µÄ£¬ËüÊÇ×î¼òµ¥µÄ¡¢»ù±¾µÄ³ÌÐò¡£
HelloWorldµÄ´úÂëÈçÏ£º
public class HelloWorld {
 public static void main(String [] args) {
 System.out.println("Hello World!");
 System.out.println("±¾±Ê¼ÇÊǸù¾Ýjava˽ÛÓµÄÊÓƵÕûÀí¶øÀ´µÄ!");
}
}
Á·Ï°¹ýHelloWorld³ÌÐòºó£¬ÎÒÃÇ¿ÉÒÔ´ÓÖп´³öÒ»¸öjava³ÌÐòµÄÔËÐйý³Ì¡£
1. ±àдjava´úÂ룬ÒÔ.java ½áβ¡£
2. ±àÒë³ÉclassÎļþ¡£
3. Àà×°ÔØ£¬Í¨¹ýclassloaderÑ°ÕÒºÍ×°ÔسÌÐòÖ´ÐÐʱËùÐèÒªµÄÀà¡£
4. ×Ö½ÚÂëУÑé¡£
5. ½âÊÍ»òJIT£¬classÎļþÊDz»Äܱ»¼ÆËã»úÖ±½Óʶ±ðµÄ£¬±ØÐëͨ¹ý½âÊÍÆ÷½øÐнâÊÍ£¬»òÕßͨ¹ýJIT£¨java¼´Ê±±àÒ룩½«classÎļþ±àÒë³É¼ÆËã»úÄܹ»Ê¶±ðµÄ»úÆ÷´úÂë¡£
6. ÔËÐС£
Æß¡¢javaµÄÈý´ó¼¼ÊõÌØÐÔ
1. ÐéÄâ»ú
javaÐéÄâ»úÊÇÔÚÕæʵ»úÆ÷ÉÏÓÃÈí¼þÄ£Äâ³öÀ´µÄÒ»ÖÖÏëÏó»úÆ÷¡£ÕýÊÇÓÉÓÚjavaÐéÄâ»ú£¬²ÅʹµÃjavaÄܹ»¶ÀÁ¢ÓÚƽ̨¡£
javaÐéÄâ»úµÄ¹¦ÄÜ£º1. ͨ¹ýclassloaderÑ°ÕÒºÍ×°ÔØclassÎļþ¡£2. ½âÊÍ×Ö½ÚÂë¡£3. ½øÐÐÔËÐÐÆÚ¼äµÄÀ¬»ø»ØÊÕ¡£4. ÌṩÓëÓ²¼þ½»»¥µÄƽ̨¡£
2. À¬»ø»ØÊÕ
ʲôÊÇÀ¬»ø£¿À¬»øÖ¸µÄÊDZ»·ÖÅäÁË×ÊÔ´£¬¶øÓÖ²»ÔÙʹÓõÄÄÚ´æ¿é¡£
À¬»ø»ØÊÕ¼òµ¥µÄ˵¾ÍÊÇÊÍ·ÅÄÚ´æ¡£
javaµÄÀ¬»ø»ØÊÕ£¬javaµÄÀ¬»ø»ØÊÕ»úÖÆÊÇ×Ô¶¯¼ì²éºÍÊͷŲ»ÔÙÐèÒªµÄÄڴ棬³ÌÐòÔ±ÎÞ·¨¿ØÖÆËüµÄ¹¦ÄܺÍÐÐΪ¡£
3. ´úÂ밲ȫ
 javaͨ¹ýËĸö¹Ø¿¨À´±£Ö¤java³ÌÐòµÄ°²È«ÐÔ£º1. ±àÒë¼ì²é¡£2. Àà×°Ôؼì²é¡£ 3. ×Ö½ÚÂëУÑé¡£ 4. ÔËÐÐÆÚ¼äµÄɳÏä»úÖÆ


Ïà¹ØÎĵµ£º

Nutz Java ±àÂë¹æ·¶ (V1.0)

Nutz Java ±àÂë¹æ·¶ (V1.0) By:zozoh 0. ¹æ·¶µÄ¹æ·¶ 1. ´úÂë¸ñʽ 2.1 °ü 2.2 ÀàºÍ½Ó¿Ú 2.3 ³ÉÔ±±äÁ¿ 2.4 ³£Á¿ 2.5 ¾Ö²¿±äÁ¿ 2.6 ³ÉÔ±º¯ÊýºÍ¾²Ì¬º¯Êý ......

Ò»¸öJAVAÎļþ¼ÓÃÜ´úÂë

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
/**
ÎļþÃû£ºFileEncrypter.java
JDK£º1.40ÒÔÉÏ
˵Ã÷£ºÎļþ¼ÓÃÜ
¼ÓÃÜ·½·¨£ºÈýÖØDES¼ÓÃÜ
¼ÓÃܹý³Ì£º¶ÔÑ¡ÖеÄÎļþ¼ÓÃܺóÔÚͬÎļ ......

javaµ÷Óö¯Ì¬¿â(.dll»ò.so)

Ö±½Óͨ¹ýmainÈë¿Ú:
argumentsÉèÖãº-Djava.library.path=¶¯Ì¬¿âËùÔÚĿ¼
ÔÚLinuxÉϵ÷.soÎļþ£º.soÎļþ ±ØÐëÃüÃûΪ£ºlibXXX.so,È磺libJni.so
ÔÚWindowsÉϵ÷.dllÎļþ£º.dllÎļþ ÃüÃû²»Òª¼Ólib,Ö±½ÓÃüÃûΪ£ºXXX.dll È磺Jni.dll
Àý£º
¶¯Ì¬¿â£ºlibJniNassirDecrypt.so »ò JniNassirDecrypt.dll
javaµ÷Óö¯Ì¬¿â´úÂë:
Str ......

JavaÖÐÀàÓëÀàµÄ¹Øϵ

ÀàÓëÀàÖ®¼ä´æÔÚÒÔϹØϵ£º
1¡¢ ·º»¯(Generalization)
ºÜ¼òµ¥£¬¾ÍÊÇÎÒÃdz£ËµµÄ¼Ì³Ð¡£ÊÇ˵×ÓÀà»ñµÃ¸¸ÀàµÄ¹¦ÄܵÄͬʱ£¬»¹¿ÉÒÔÀ©Õ¹×Ô¼ºµÄ¹¦ÄÜ¡£
Èçͼ:
Java´úÂëÖбíÏÖΪ£ºextends ºÍ implements
2¡¢ ÒÀÀµ(Dependency)
Á½¸öÏà¶Ô¶ÀÁ¢µÄßËßË(AºÍB)£¬µ±A¸ºÔð¹¹ÔìBʱ£¬AÓëBÐγÉÒÀÀµ¹Øϵ£¬¼´AʹÓÃB¡£
Èçͼ£º
Java´úÂëÖеıíÏÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ