java class file¼°·´»ã±àºóµÄjvmÖ¸Áî
¹¤³ÌĿ¼½á¹¹ÈçÏ£º
HStudy
--src
--jvm
--init
--classes
--jvm
--init
Ô´ÂëÈçÏ£º
package jvm.init;
public class Example5 {
public static void main(String[] args) {
int a = 2;
int b = 3;
if (args.length < 2) {
System.out.println("Must enter any two args.");
return;
}
System.out.println(args[0] + args[1]);
}
}
ÒÔÏÂÊÇÔÚÃüÁîÐÐϵIJÙ×÷£º
±àÒëÔ´Âë E:\workspace_RIA\HStudy>javac -g -classpath classes -sourcepath src src\jvm\init\Example5.java -d classes
Éú³ÉµÄclassÎļþµÄ16½øÖÆÂëÈçÏ£º
00000000h: CA FE BA BE 00 00 00 31 00 30 0A 00 0A 00 1B 09 ; Êþº¾...1.0......
00000010h: 00 1C 00 1D 08 00 1E 0A 00 1F 00 20 07 00 21 0A ; ........... ..!.
00000020h: 00 05 00 1B 0A 00 05 00 22 0A 00 05 00 23 07 00 ; ........"....#..
00000030h: 24 07 00 25 01 00 06 3C 69 6E 69 74 3E 01 00 03 ; $..%...<init>...
00000040h: 28 29 56 01 00 04 43 6F 64 65 01 00 0F 4C 69 6E ; ()V...Code...Lin
00000050h: 65 4E 75 6D 62 65 72 54 61 62 6C 65 01 00 12 4C ; eNumberTable...L
00000060h: 6F 63 61 6C 56 61 72 69 61 62 6C 65 54 61 62 6C ; ocalVariableTabl
00000070h: 65 01 00 04 74 68 69 73 01 00 13 4C 6A 76 6D 2F ; e...this...Ljvm/
00000080h: 69 6E 69 74 2F 45 78 61 6D 70 6C 65 35 3B 01 00 ; init/Example5;..
00000090h: 04 6D 61 69 6E 01 00 16 28 5B 4C 6A 61 76 61 2F ; .main...([Ljava/
000000a0h: 6C 61 6E 67 2F 53 74 72 69 6E 67 3B 29 56 01 00 ; lang/String;)V..
000000b0h
Ïà¹ØÎĵµ£º
×÷ÕߣºÐûÕ×Åô
------------------------------------------------------------------------------------------------------------------------------------------
¹¤×÷µÚÒ»²½£ºÊìϤMyEclipseµÄ»·¾³ÒÔ¼°Ö÷Òª¹¦ÄÜ¡£
¹¤×÷µÚ¶þ²½£º½¨Á¢Êý¾Ý¿âÁ¬½Ó
Êý¾Ý¿â£ºMySQL
1¡¢MySQLµÄÅäÖÃÓëÎÊÌâ½â¾ö
Ïê¼ûÎ ......
System.out.println(2|0); //0010 0000 =>0010 = 2
System.out.println(2|1); //0010 0001 =>0011 = 3
System.out.println(3|2); //0011 0010 =>0011 = 3
System.out.println(3&2); //0011 0010 =>0010 = 2
/*
ÔÚjavaÖÐ0´ú±í¼Ù, 1´ú±íÕæ
00011|0010 ´ÓÓÒµ½×ó±È½Ï0|1 = 1, 1|0 = ......
ÏÖÔÚµÄÎÒ°¡£¬»¹ÊǸöѧÉú£¬¸Õ¸ÕѧÁ˵ãVB£¬¶¯×÷×î´óÒ²¾ÍÊÇÓÃVB±àдÁËÒ»¸ö¼ÆËã½×³ËµÄ¹¤¾ß£¬Ëµ³öÀ´ÕæÊÇÈø÷λ¿´¹ÙЦµô´óÑÀ……µ«ÊÇÎÒͻȻÓÐÖÖÏë·¨£¬ÏëѧJava£¬±¾ÈËרҵÊÇͨÐŹ¤³Ì£¬¾õµÃÒƶ¯Í¨ÐÅ»áÓÐÏ൱´óµÄǰ;£¬ÓÚÊÇÃÈÉúÁËÕâ¸öÏë·¨£¡¸÷λ¿´¹Ù±ðЦ»°ÎÒ£¬ÄÜÌá°ÎµÄÌá°Îµã£¬²»ÄÜÌá°ÎµÄ¸øµã¹ÄÀø£¡ÔÚÏÂл¹ý¸÷λÁË£¡ ......
Ç°ÑÔ£ºÇ°¶Îʱ¼äÔÚCSDNµÄC++ÉçÇøÓöµ½Ò»¸öÐèÒª·â×°¿¼ÇÚ»ú½Ó¿ÚµÄ¶¯Ì¬¿â¸øJAVAµ÷ÓõÄÌû×Ó£¬¹´ÆðÁËÎÒ¶ÔJAVAµÄÎÞÏÞ»³Äî¡£ÔÚ´Ë£¬ÎÒÏë°ÑÕâÏî¼¼Êõ¼òµ¥ÔÙ½éÉÜһϡ£
Ò»¡¢¹ØÓÚJava Native Interface (JNI)
JNIÊÇJAVA±¾µØ±à³Ì½Ó¿Ú£¬ÊôÓÚJDKµÄÒ»²¿·Ö¡£ËüÔÊÐíJAVAÄܹ»²Ù×÷±¾µØAPI»òÓÉÆäËûÓïÑÔ±àдµÄ¶¯Ì¬¿â¡£²»¹ýµ±ÄãʹÓÃÕâÏî¼¼ÊõµÄʱºò£ ......