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

javaµÄ»ù±¾Êý¾ÝÀàÐÍÊÇÎÞ·ûºÅµÄ

ÕæÊDzÑÀ¢°¡, ѧÁËÔõô¾Ã java, ÏÖÔÚ²ÅÖªµÀ java µÄ»ù±¾Êý¾ÝÀàÐÍÊDz»´æÔÚÓзûºÅºÍÎÞ·ûºÅÕâÖÖ¶«Î÷µÄ. ƽʱ¶¼Ã»Óиã×Ö½ÚºÍλ֮ÀàµÄÔËËã, ËùÒÔµ¹ÊÇûÓÐ×¢Òâµ½Õâ¸ö·½ÃæÄØ.
JAVAÖеĻù±¾Êý¾ÝÀàÐͲ»´æÔÚÎÞ·ûºÅµÄ£¬ËüÃǵÄÈ¡Öµ·¶Î§Êǹ̶¨µÄ£¬²»»áËæ×Å»úÆ÷Ó²¼þ»·¾³»òÕß²Ù×÷ϵͳµÄ¸Ä±ä¶ø¸Ä±ä¡£(Õâ¾ä³­µÄ)
Java¼òµ¥Êý¾ÝÀàÐÍ  
   
  ¼òµ¥ÀàÐÍ   ´óС   ·¶Î§/¾«¶È    
   
  float   4   ×Ö½Ú   32λIEEE   754µ¥¾«¶È    
   
  double   8   ×Ö½Ú   64λIEEE   754Ë«¾«¶È    
   
  byte   1×Ö½Ú   -128µ½127    
   
  short   2   ×Ö½Ú   -32,768µ½32,767    
   
  int   4   ×Ö½Ú   -2,147,483,648µ½2,147,483,647    
   
  long   8   ×Ö½Ú   -9,223,372,036,854,775,808µ½9,223,372,036,   854,775,807    
   
  char   2   ×Ö½Ú   Õû¸öUnicode×Ö·û¼¯    
   
  boolean   1   λ   True»òÕßfalse
1×Ö½ÚÊǹ̶¨ÓÉ8λ¶þ½øÖƹ¹³É
-----------------------------------------------------------------¿É°®µÄ·Ö¸ôÏß-------------------------------------------------------------------
Ïñbyte ÊÇ·¶Î§ÊÇ -128µ½127, ÄãÏëÒª±äΪ 0µ½255 Ôõô°ì, ¸ú 0XFF ×ö ÓëÔËË㠾ͿÉÒÔÁË.
Èç byte bb , Èç¹ûÄãÏ븳ֵËüÖµ 255, ÄÇÊDz»ÐеÄ, ¾ÍË㸳ֵÁË, bb µÄÖµÒ²ÊÇ 255 ¶Ô 256 ÇóÄ£ºóµÄÖµ -1
Èç¹ûÄãÖ»ÊÇÏëÈ¡Ëû 0µ½255 µÄÖµ, »¹ÊǺܼòµ¥µÄ,
 bb & 0XFF  , Èç bb = -1,  ÄÇ bb & 0XFF ½á¹ûΪ 255,
Õâ¸öÓëÔËËãºóµÄ½á¹û»áÒþʽת»»Îªint ÀàÐ͵Ä, ÒòΪ byte ·Å²»ÏÂÁË.
ÓëÔËËã »¹ÊǺܿìµÄ, ±È ¼Ó¼õ·¨»¹¿ìµÄ.


Ïà¹ØÎĵµ£º

java³£ÓÃÀà blobFileBean

package com.whlongyi.sys.blob.bean;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
im ......

JavaÖÐListЧÂʵıȽÏ

¡¡¡¡inkfishÔ­´´£¬ÇëÎðÉÌÒµÐÔÖÊתÔØ£¬×ªÔØÇë×¢Ã÷À´Ô´£¨http://blog.csdn.net/inkfish
£©¡£
¡¡¡¡Java Collections Framework(JCF)
ÊÇJava SEÖÐÒ»¸ö»ù±¾µÄÀ༯£¬¼¸ºõËùÓеÄÏîÄ¿¶¼»áÓõ½£¬ÆäÖеÄList
ÔòÊÇJCFÖÐ×î×î³£ÓõÄÒ»¸ö½Ó¿Ú¡£Î§ÈÆList
½Ó¿Ú£¬ÓкܶàʵÏÖ£¬ÖîÈç³£ÓõÄArrayList
¡¢LinkedList
¡¢Vector
¡¢Stack
£¬ ......

JavaÄÚ´æÊÍ·ÅÐĵÃ

1 Èç¹ûÒ»¿éÄÚ´æÇøÓòÄܹ»Öظ´ÀûÓã¬×îºÃ²»ÒªÉêÇëеġ£Õâ¸öÄÚ´æÇøÓòÓпÉÄÜÊÇϵͳµÄÒ»¸öÀ࣬×Ô¼ºµÄÒ»¸öÄÚ²¿ÓÐÊý×éÔªËØ£¬»òÕßÄܹ»·Å´óÁ¿Êý¾ÝµÄ½á¹¹¡£
2 ×îºÃ²»ÒªÔÚÑ­»·ÀïÃæÉêÇëÄڴ棬ѭ»·Ô½´ó£¬Ô½»µÊ¡£»»¾ä»°Ëµ£¬ÉêÇëÄÚ´æƵÂʱðÌ«¸ß¡£ºÃ±ÈÒ»¸öÈËÿ¶Ù³ÔÁ½Íë·¹ÕýºÃ£¬ÉíÌåµÄÏû»¯ÏµÍ³¿ÉÒÔ³ÐÊÜ£¬Èç¹ûÈÃËûÒ»¶Ù°ÑÊ®¶ÙµÄ¶¼³Ôµô£¬²»ÕÍ ......

java IO

JavaÓïÑÔµÄÊäÈëÊä³ö¹¦ÄÜÊÇÊ®·ÖÇ¿´ó¶øÁé»îµÄ£¬ÃÀÖв»×ãµÄÊÇ¿´ÉÏÈ¥ÊäÈëÊä³öµÄ´úÂë²¢²»ÊǺܼò½à£¬ÒòΪÄãÍùÍùÐèÒª°ü×°Ðí¶à²»Í¬µÄ¶ÔÏó¡£ÔÚJavaÀà¿âÖУ¬IO²¿·ÖµÄÄÚÈÝÊǺÜÅÓ´óµÄ£¬ÒòΪËüÉæ¼°µÄÁìÓòºÜ¹ã·º:±ê×¼ÊäÈëÊä³ö£¬ÎļþµÄ²Ù×÷£¬ÍøÂçÉϵÄÊý¾ÝÁ÷£¬×Ö·û´®Á÷£¬¶ÔÏóÁ÷£¬zipÎļþÁ÷....±¾ÎĵÄÄ¿µÄÊÇΪ´ó¼Ò×öÒ»¸ö¼òÒªµÄ½éÉÜ¡£
¡¡¡¡Á ......

Java·´Éä»úÖÆ:Constructor!

import org.junit.Test;
public class ConstructorTest {
@Test @SuppressWarnings("unchecked")
public void testConstructor(){
try {
Class clazz = Class.forName("cn.vicky.utils.User");
Method method = clazz.getDeclaredMethod("getName");
Constructor<? extends Live> constructor = ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ