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

java±ÊÊÔÌâ×ܽáÓë´ó¼Ò·ÖÏí

javaÊÔÌâ
http://202.201.112.11/jpk/apply/teacher/preface/53/test123/test3/exam.htm
1.½Ó¿ÚÖз½·¨µÄÇ°ÃæÓÐÄÄЩÐÞÊηû
 ·ÃÎÊȨÏÞ ·µ»ØÖµÀàÐÍ ÊÇ·ñ¾²Ì¬ ÊÇ·ñ³éÏó
2.ÒÔÏÂÄĸöÎªÕæ
  Interger a = new Interger(9);
  Interger b = new Interger(9);
  Long c = New Long(9)
-----
  A.  a==b
  B.  b==c
  C.  a.equals(b)
  D.  b.equals(new Interger(9))
cd
3.ÒÔÏÂÄÄÁ½¸ö·½·¨¿ÉÒÔ¼Óµ½threeÖÐ
  class one{
    public one foo(){return this;}
}
  class two extends one{
    public one foo(){return this;}
}
  class three extends two{
  //²åÈëµ½Õâ
}
---
  A.  public void foo(){}
  B.  public int foo(){return 1;}
  C.  public one foo(){return this;}
  d.  public two foo(){return this;}
  e.  public object foo(){return this;}
cd
4.ÒÔÏÂÄÄЩΪtrue
  class a{}
  class b extends a{}
  class c extends a{}
  a p0=new a();
  b p1=new b();
  c p2=new c();
  a p3=new b();
  a p4=new c();
----
  A.  p1 = (b)p2
  B.  p3 = (a)p4
  C.  p3 = (b)p4
  d.  p0 = (a)p1
bcd
5. ÒÔÏÂÓÐÎÞÎÊÌâ
abstract class a{
    public void fo(){ system.out.println("a");}
}
ÎÞ  ³éÏóÀà¿ÉÒÔÓзdzéÏó·½·¨
6. ÒÔÏÂÓÐÎÞÎÊÌâ
abstract class b{
    static void f1(){ system.out.println("f1");}
    public static void main(String[] args){
          b b1=new b(); //³éÏóÀ಻ÄÜÓÐʵÀý
          b1.f1();
    }
}
7. ÒÔÏ´úÂëÔËÐнá¹ûÊÇ
  try{
      //´ËÐлáÅ׳öNullPointedException
  }
  catch(NullPointedExecption e){
      System.out.print("1")
  }
  catch(RuntimeExection e){


Ïà¹ØÎĵµ£º

JavaÖÐserialVersionUIDµÄ½âÊÍ


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

JAVA String¶ÔÏóºÍ×Ö·û´®³£Á¿µÄ¹ØÏµ½âÎö

JAVA String¶ÔÏóºÍ×Ö·û´®³£Á¿µÄ¹ØÏµ½âÎö
1 ×Ö·û´®ÄÚ²¿Áбí
  JAVAÖÐËùÓеĶÔÏó¶¼´æ·ÅÔÚ¶ÑÀïÃæ£¬°üÀ¨String¶ÔÏó¡£×Ö·û´®³£Á¿±£´æÔÚJAVAµÄ.classÎļþµÄ³£Á¿³ØÖУ¬ÔÚ±àÒëÆÚ¾ÍÈ·¶¨ºÃÁË¡£
ÐéÄâ»úΪÿ¸ö±»×°ÔصÄÀàÐÍά»¤Ò»¸ö³£Á¿³Ø¡£³£Á¿³Ø¾ÍÊǸÃÀàÐÍËùÓó£Á¿µÄÒ»¸öÓÐÐò¼¯ºÏ£¬°üÀ¨Ö±½Ó³£Á¿(string¡¢integerºÍfloat point³ ......

Java EEÏÖ×´¼°Æä·¢Õ¹Ç÷ÊÆ

Ô­ÎÄ£º http://blog.sina.com.cn/s/blog_4e0c121101000awr.html
(ÕâÊÇÎÒÄê³õдµÄһƪÎÄÕ£¬µ«³Ù³ÙûÓй«¿ª¡£ÓÐЩÄÚÈÝ¿ÉÄÜÒѾ­¹ýʱ£¬µ«»¹ÊÇÖµµÃÒ»¶Á.) 
   ¾­¹ý½«½ü10ÄêµÄ·¢Õ¹ºó£¬Java EEÒѾ­ÑݱäΪµ±Ç°ÆóÒµµÄÖ÷Á÷¼ÆËãÆ½Ì¨¡£¿ª·¢ÕßÔÙÒ²²»Äܹ»¼ò¼òµ¥µ¥µØ½«Java¿´³ÉÒ»ÖÖ±à³ÌÓïÑÔÁË£¬Æä²úÒµºÍ¼¼ÊõÁ´ÒѾ­É ......

JavaÖÐUnderlying input stream returned zero bytes

Òì³£ Underlying input stream returned zero bytes ½â¾ö°ì·¨
ϵͳ»·¾³
jdk1.5
hibernate 3.0
sql server 2000
ms jdbc driver
½«Ò»¸övarcharÀàÐ͵Ä×ֶθÄΪtextºó£¬¾Í³öÏÖ
[Microsoft][SQLServer 2000 Driver for JDBC]Underlying input stream returned zero bytes µÄÒì³£ÁË¡£
´ÓÍøÉÏËѼ¯×ÊÁÏÀ´¿´£¬ÓÉÓÚjdbcµÄbug ......

JavaʵÏÖEamil·¢ËÍ


import java.util.Date;
import java.util.Properties;
import javax.mail.Message;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
import org.apache.commons.logging.Log;
import org.apache.commons.loggin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ