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

JAVA Ö®"Ïß³Ì"


1¡¢½ø³ÌÓëỊ̈߳º
     ¡¶1¡·Ê²Ã´Êǽø³Ì£ºÊÇÖ¸ÔËÐÐÖеÄÓ¦ÓóÌÐò£¬Ã¿Ò»¸ö½ø³Ì¶¼ÓÐ×Ô¼º¶ÀÁ¢µÄÄÚ´æ¿Õ¼ä£¬
          Ò»¸öÓ¦ÓóÌÐò¿ÉÒÔͬʱÆô¶¯¶à¸ö½ø³Ì£¬(¾²Ì¬)±ÈÈ磨IE£¬JVM£©
     ¡¶2¡·Ê²Ã´ÊÇỊ̈߳ºÊÇÖ¸½ø³ÌÖеÄÒ»¸öÖ´ÐÐÁ÷³Ì£¬ÓÐʱÓгÆ֮ΪִÐÐÇé¾°£¬
          Ò»¸ö½ø³ÌÓжà¸öÏß³Ì×é³É(¶¯Ì¬)
     ¡¶3¡·½ø³ÌÓëÏ̵߳ÄÖ÷ÒªÇø±ð£º
          ÿ¸ö½ø³Ì¶¼ÐèÒª²Ù×÷ϵͳΪÆä·ÖÅä¶ÀÁ¢µÄÄÚ´æµØÖ·¿Õ¼ä£¬
          ¶øͬһ½ø³ÌÖеÄËùÓÐÏß³ÌÔÚͬһ¿éµØÖ·¿Õ¼äÖй¤×÷£¬
          ÕâЩÏ߳̿ÉÒÔ¹²Ïíͬ Ò»¿éÄÚ´æºÍϵͳ×ÊÔ´
2¡¢Ï̵߳Ĵ´½¨(Á½ÖÖ·½Ê½)£º
     ¡¶1¡·¼Ì³ÐThreadÀࣨһ°ãÔÚ²»¼Ì³ÐÆäËûÀàµÄÇé¿öÏ£©
     ¡¶2¡·ÊµÏÖRunnable½Ó¿Ú£¨Ò»°ãÔڼ̳ÐÆäËûÀàµÄÇé¿öÏ£©
    
3¡¢Ï̴߳´½¨µÄ²½Öè:
     ¡¶1¡·µÚÒ»ÖÖ
            (1)×Ô¶¨ÒåÏß³ÌÀà¼Ì³ÐThreadÀࣻ
            (2)¸²¸ÇThreadÀàÖеÄrun()·½·¨£»
            (3)´´½¨¸ÃÏß³ÌÀà¶ÔÏó£»
            (4)µ÷ÓøÃÏß³ÌÀà¶ÔÏóÖеÄstart()·½·¨Æô¶¯Ï̡߳£
     ¡¶2¡·µÚ¶þÖÖ
            (1)×Ô¶¨ÒåÏß³ÌÀàʵÏÖRunnable½Ó¿Ú£»
            (2)¸²¸ÇRunnable½Ó¿ÚÖеÄrun()·½·¨£»
            (3)´´½¨¸ÃÏß³ÌÀà¶ÔÏó£»
            (4)´´½¨Thread¶ÔÏ󣬹¹Ôì²ÎÊýΪ¸ÃÏß³ÌÀà¶ÔÏó£»
            (5)µ÷ÓÃThread¶ÔÏóÖÐ


Ïà¹ØÎĵµ£º

Java NIO APIÏê½â

 
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......

ÓÃjavaÓïÑÔ ±àдµÄ³Ë·¨¿Ú¾÷±í

 public class Test {
 public static void main(String args[]) {
  int i;
  int j;
  for (i = 1; i <= 9; i++) {
   for (j = 1; j <= i; j++) {
    if (j * i <= 9)
     System.out.print(j ......

java nio Ö®MappedByteBuffer

 
ÆäʵÕÆÎÕ
MappedByteBuffer
²¢²»ÄÑ£¬Ö»Òª¼Çס“Èý·½Èý·¨ÈýÌØÐÔ”£¨ÎÒ×Ô¼º×ܽáµÄ£¬ºÇºÇ
~~
²»ÒªÈÓ¼¦µ°Å¶¡£¡£¡££©Õâ¾ä»°¾Í¿ÉÒÔÇáËɸ㶨£¡
MappedByteBuffer
Ö»ÊÇÒ»ÖÖÌØÊâµÄ
ByteBuffer
£¬¼´ÊÇ
ByteBuffer
µÄ×ÓÀà¡£
MappedByteBuffer
½«ÎļþÖ±½ÓÓ³Éäµ½Äڴ棨ÕâÀïµÄÄÚ´æÖ¸µÄÊÇÐéÄâÄڴ棬²¢² ......

PoC TBCPÏûÏ¢½âÎöºÍ¹¹ÔìµÄJAVAʵÏÖ

TBCPMessageFactory.java
/**
* ÎļþÃû: TBCPMessageFactory.java
*/
package tbcpstack;
import java.text.MessageFormat;
import org.apache.log4j.Logger;
import TBCPException;
/**
*
* TODO TBCPÏûÏ¢¹¹½¨¹¤³§
*/
public class TBCPMessageFactory {
/**
* Logger for this class
......

Java SE 5·þÎñÖÜÆÚÒÑÖÕ½á

 ×ª×ÔInfoQ£¬×÷Õß Charles Humble ÒëÕß ÕÅÁú
±¾ÔÂ3ÈÕSunµÄJ2SE 5.0ʵÏÖÒÑÖÕ½á·þÎñÖÜÆÚ£¨End of Service Life£¬¼´EOSL£©£¬ÕâÒ»ÌìÒ²ÊÇ×îºóµÄÒ»´Î5.0¸üз¢²¼ÈÕÆÚ£¨J2SE 5.0 Update 22£©¡£Ñ°ÇóSunÖ§³ÖµÄÓû§¿ÉÒÔÑ¡ÔñÉý¼¶µ½Java 6»òÊǶ©ÔÄSunµÄJava for Business³ÌÐò¡£
SunÌṩÁ˶àÖÖ¶àÑùµÄJava¸¶·ÑÖ§³Ö¡£Java¾­µäÖ§³Ö£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ