JAVAÖеÄλÒƲÙ×÷ >> >>
ÖÐС
JavaÖй²ÓÐÈý¸öÒÆλ²Ù×÷·û£¬·Ö±ðÊÇ£º
<<£º×óÒƲÙ×÷£¬ËùÓвÙ×÷ÊýÏò×óÒƶ¯£¬Ã¿ÒÆһλ×îÓÒ±ßÓÃ0²¹³ä
>>£º´ø·ûºÅλÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓ÷ûºÅλ²¹³ä
>>>£ºÎÞ·ûºÅÓÒÒÆ£ºÁ¬Í¬·ûºÅλһÆðÓÒÒÆ£¬Ã¿ÒÆһλ×î×ó±ßÓÃ0²¹³ä
ÒÆλ²Ù×÷·ûÖ»ÄÜ×÷ÓÃÓÚÕûÊýÀàÐÍ£¬¼´byte£¬short£¬char£¬int£¬long
ÒÆλ²Ù×÷¶¼ÊǶÔ×ó²Ù×÷ÊýËù¶ÔÓ¦µÄ»úÆ÷Êý£¨²¹ÂëÐÎʽ£©½øÐеġ£¶øÐèÒªÌرð×¢ÒâµÄÊÇ£¬ÌâÄ¿Öиø³öµÄ×ó²Ù×÷Êý£¨¼´ÎÒÃÇÔÚ³ÌÐòÖÐд³öµÄ£©¶¼ÊǷDz¹ÂëÐÎʽµÄ£¨Ê®½øÖƲ»ÓÃ˵£¬Ê®Áù½øÖÆ¡¢°Ë½øÖÆÒ²ÊÇÒ»°ãµÄÐÎʽ¶ø·Ç²¹Â룩£¬¹ÊÎÒÃÇÔÚÔ¤²âÒÆλ½á¹ûʱһ¶¨ÒªÏȽ«¸ø³öµÄ×ó²Ù×÷Êýת»»³É²¹ÂëÐÎʽ£¬ÔÙ½øÐÐÒÆλ²Ù×÷£¬Ö®ºóÔÙÓɲ¹ÂëÐÎʽת»»³ÉÆÕͨµÄ¶þ½øÖÆÐÎʽµÄÕæÖµ£¬ÔÙÀ´¼ÆËãÎÒÃÇËù˵µÄ×îÖÕ½á¹ûÖµ¡££¨ÐèҪ˵Ã÷µÄÊÇ£¬ÆÕͨ¶þ½øÖÆÐÎʽµÄÊý£¨ÊýµÄÕæÖµ£©ºÍÆä²¹ÂëµÄת»»¹æÔò¡£ÖªµÀÒ»¸öÊýµÄÕæÖµ£¬ÇóÆä²¹ÂëµÄ¹æÔòÊÇ£ºÕýÊýµÄ²¹ÂëºÍÕæÖµÏàͬ£»¸ºÊýµÄ²¹ÂëµÄÇó·¨ÊÇ£ºÕæÖµµÄ·ûºÅλ²»±ä£¬ÆäÓà¸÷λ°´Î»È¡·´£¬Ä©Î»¼Ó1¡£ ¶øÖªµÀÒ»¸öÊýµÄ²¹Â룬ÇóÆäÕæÖµµÄ¹æÔòÏàͬ£ºÕýÊýµÄÕæÖµºÍÆä²¹ÂëÏàͬ£»¸ºÊýµÄ²¹ÂëµÄÕæÖµµÄÇó·¨ÊÇ£º·ûºÅλ²»±ã£¬ÆäÓà¸÷λ°´Î»È¡·´£¬Ä©Î»¼Ó1¡£ Ìرð×¢Ò⣺0µÄ²¹ÂëÖ»ÓÐÒ»¸ö£ºÒÔbyte ΪÀý£º0µÄ²¹ÂëΪ£º00000000£¬1000000±íʾ-128£©
ÒÆλÔËËãµÄÓÒ²Ù×÷Êý£¨Êµ¼ÊÒƶ¯Î»Êý£©µÄ¼ÆËã·½·¨ÊÇ£ºÓÒ²Ù×÷Êý%´ËÀàÐÍÊýµÄ×î´ó±íʾλÊý¡£
ÀýÈ磺 int x = 2£» int y = x >> 34;
µÈ¼ÛÓÚ£ºint x = 2£» int y = x >> 2; //34 % 32 = 2
§ 3.4λ ÔË Ëã ·û
λ ÔË Ëã ·û Óà À´ ¶Ô ¶þ ½ø ÖÆ Î» ½ø ÐÐ ²Ù ×÷ ,JavaÖÐ Ìá ¹© ÁË Èç Ï ±í Ëù ʾ µÄ λ ÔË Ëã ·û :
λ ÔË Ëã ·û ÖÐ ,³ý ¡¡ ¡« ¡¡ ÒÔ Íâ ,Æä Óà ¾ù Ϊ ¶þ Ôª ÔË Ëã ·û ¡£
²Ù ×÷ Êý Ö» ÄÜ Îª Õû ÐÍ ºÍ ×Ö ·û ÐÍ Êý ¾Ý ¡£
3.4.1²¹ Âë
Javaʹ Óà ²¹ Âë À´ ±í ʾ ¶þ ½ø ÖÆ Êý ,ÔÚ ²¹ Âë ±í ʾ ÖÐ ,×î ¸ß Î» Ϊ ·û ºÅ λ ,Õý Êý µÄ ·û ºÅ λ Ϊ 0,¸º Êý
Ϊ 1¡£ ²¹ Âë µÄ ¹æ ¶¨ Èç Ï :
¶Ô Õý Êý À´ ˵ ,×î ¸ß Î» Ϊ 0,Æä Óà ¸÷ λ ´ú ±í Êý Öµ ±¾ Éí (ÒÔ ¶þ ½ø ÖÆ ±í ʾ ),Èç +42µÄ ²¹ Âë Ϊ
00101010¡£
¶Ô ¸º Êý ¶ø ÑÔ ,°Ñ ¸Ã Êý ¾ø ¶Ô Öµ µÄ ²¹ Âë °´ λ È¡ ·´ ,È» ºó ¶Ô Õû ¸ö Êý ¼Ó 1,¼´ µÃ ¸Ã Êý µÄ ²¹ Âë ¡£ Èç
-42µÄ ²¹ Âë Ϊ 11010110 (00101010 °´ λ È¡ ·´ 11010101 +1 11010110 )
ÓÃ
Ïà¹ØÎĵµ£º
Èç¹ûÄãÉý¼¶µ½ÁË1.3.3£¬²¢ÇÒdeployÁËа汾µÄÓ¦Ó㬻ᷢÏÖ
Error: Not Found
The requested URL /login
was not found on this server.
ºÜ±¯¾ç£¬ÔÒòÓëfilterÉèÖÃÓйأ¨ºÍ³ÌÐòÎ޹أ¬ÊÇsdkµÄÎÊÌ⣩£¬issueÒѾÓÐÁË¡£
½â¾ö°ì·¨£º
Éý¼¶µ½1.3.3.1£¬ÏÂÔصØÖ·
ÓÃec²å¼þÈÔÈ»ÎÞ·¨¸üУ¬ÏÂÔØsdk½âѹµ½X:\eclipse\plugins\com. ......
HMAC
HMAC£¨Hash Message Authentication Code£¬É¢ÁÐÏûÏ¢¼ø±ðÂ룬»ùÓÚÃÜÔ¿µÄHashËã·¨µÄÈÏÖ¤ÐÒé¡£ÏûÏ¢¼ø±ðÂëʵÏÖ¼ø±ðµÄÔÀíÊÇ£¬Óù«¿ªº¯ÊýºÍÃÜÔ¿²úÉúÒ»¸ö¹Ì¶¨³¤¶ÈµÄÖµ×÷ΪÈÏÖ¤±êʶ£¬ÓÃÕâ¸ö±êʶ¼ø±ðÏûÏ¢µÄÍêÕûÐÔ¡£Ê¹ÓÃÒ»¸öÃÜÔ¿Éú³ÉÒ»¸ö¹Ì¶¨´óСµÄСÊý¾Ý¿é£¬¼´MAC£¬²¢½«Æä¼ÓÈëµ½ÏûÏ¢ÖУ¬È»ºó´«Êä¡ ......
MD5¼´Message-Digest Algorithm 5£¨ÐÅÏ¢-ÕªÒªËã·¨5£©£¬ÊÇÒ»ÖÖÓÃÓÚ²úÉúÊý×ÖÇ©ÃûµÄµ¥ÏîÉ¢ÁÐËã·¨£¬ÔÚ1991ÄêÓÉMIT Laboratory for Computer Science£¨IT¼ÆËã»ú¿ÆѧʵÑéÊÒ£©ºÍRSA Data Security Inc£¨RSAÊý¾Ý°²È«¹«Ë¾£©µÄRonald L. Rivest½ÌÊÚ¿ª·¢³öÀ´£¬¾ÓÉMD2¡¢MD3ºÍMD4·¢Õ¹¶øÀ´¡£MD5Ëã·¨µÄʹÓò»ÐèÒªÖ§¸¶ÈκΰæȨ·ÑÓá£ËüµÄ×÷ ......
ÔÚJavaÖУ¬²»Í¬µÄÀ඼ÓÐ×Ô¼ºµ¥¶ÀµÄCache»úÖÆ£¬ÊµÏֵķ½·¨Ò²¿ÉÄÜÓÐËù²»Í¬£¬ÎÄÕÂÁоÙÁËJavaÖг£¼ûµÄ¸÷ÀàCache»úÖƵÄʵÏÖ·½·¨£¬Í¬Ê±½øÐÐÁË×ۺϵıȽϡ£
OSCache
OSCacheÊǸöÒ»¸ö¹ã·º²ÉÓõĸßÐÔÄܵÄJava EE»º´æ¿ò¼Ü£¬OSCacheÄÜÓÃÓÚÈκÎJavaÓ¦ÓóÌÐòµÄÆÕͨµÄ»º´æ½â¾ö·½°¸¡£
OSCacheÓÐÒÔÏÂÌص㣺»º´æÈκζÔÏó£¬Äã¿ÉÒÔ²»ÊÜÏÞÖƵ ......
ǰЩÌìºÍÒ»¸öC++³ÌÐòÔ±ÁÄÌìʱ£¬Áĵ½Ò»Ð©¶ÔÏó¡¢Êý×é´æ´¢¿Õ¼äʱ£¬ÓÉÓÚÁ½È˶¼²»ÊÇ´óÄñ£¬Ö®Ç°Ò²¿´¹ýһЩjava´æ´¢Êý¾ÝµÄ×ÊÁÏ£¬µ«¶¼ÊǹýÄ¿±ãÍü¡£Ò²Ã»ÓнøÐÐ×ܽá¹ý¡£ÏÂÃæÊÇתÔعýÀ´£¬¸Ð¾õ×ܽáµÄºÜÈ«Ãæ¡£
java¶ÔÏóÄÚ´æ»úÖÆ£ºhttp://java.chinait ......