Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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. ÔËÐÐÆÚ¼äµÄɳÏä»úÖÆ


Ïà¹ØÎĵµ£º

ÑÝʾʹÓà JACOB : Java COM Bridge ²Ù×Ý Word Îĵµ

ԭʼURL£º http://blog.donews.com/dukejoe/archive/2010/04/28/1575574.aspx
package cn.com.hrbb.samples;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
/**
*
* ÑÝʾʹÓà JACOB : Java COM Bridge ²Ù×Ý Word Îĵµ
*
* ×÷Õߣº¸ßºêΰ(DukeJoe)
......

JavaµÚ¶þ´ÎÉÏ»ú£¨ÕýÔò±í´ïʽ£©

±àдһ¸ö³ÌÐò£¬ÅжÏÒ»¸ö×Ö·û´®ÊÇ·ñÊǺϷ¨µÄJava±êʶ·û£»
//create string
import java.util.regex.*;
public class Split {
public static void main (String[] args) {
Pattern pattern = Pattern.compile("[,]");
String[] arrStr = pattern.split("abstract,break,byte,boole ......

C/C++ÓëJava¶àάÊý×飬±éÀúÓë×î´óÖµ»ñÈ¡·½·¨£¡

C/C++
/*
* File: main.cpp
* Author: Vicky
*
* Created on 2010Äê4ÔÂ29ÈÕ, ÉÏÎç9:46
*/
#include <iostream>
using namespace std;
int maximum(int[], int);
int main(int argc, char** argv) {
// int sg[3][4] = {
int sg[][4] = {
{68, 77, 73, 86},
{87, 96, 7 ......

Java¡¢JSP¡¢HTML¡¢XML±àд¶¼Òª·ûºÏÒÔϱàÂë¹æÔò£¡

1 ËùÓÐµÄ .java|.jsp|.html|.xml Ô´Îļþ¾ùʹÓÃutf-8±àÂë¸ñʽ±£´æµ½ÏµÍ³´ÅÅÌ¡£
È磺ÔÚEclipseÖб༭Îļþ£¬Ñ¡ÖÐÎļþ´ò¿ªÓÒ¼ü²Ëµ¥Ñ¡ÔñÊôÐÔ£¬½«Îı¾Îļþ±àÂëÉèÖÃΪÆäËû²¢Ñ¡ÔñUTF-8£»Ò²¿ÉÒÔÔÚ
Eclipse——Ê×Ñ¡Ïî——³£¹æ——ÄÚÈÝÀàÐÍÖÐÉèÖø÷ÖÖÎļþµÄȱʡ±àÂ룬ÕâÑùÒÔºóËùÓеÄÎı¾Îļþ¶¼Ê¹ÓÃÍ³Ò ......

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ºÅ