freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

java考試選擇題及答案-全文預覽

2025-07-15 18:37 上一頁面

下一頁面
  

【正文】 nto EMP ( EMPNO ,ENAME) values ( 7,’Admin39。 b) preparedstatement pstmt=(insert into EMP(EMPNO,ENAME) values ( ? ,?) ) 。} a) 沒有輸出任何結(jié)果 b) 輸出結(jié)果為3 c) 輸出結(jié)果是3 和4 d) 輸出結(jié)果是l 、3 和4 41) 在Java 語言中,下列() 是正確的JDBc 代碼片斷。 } a) 編澤錯誤b) 運行時出現(xiàn)例外c) 正常運行,輸出i=1 d) 正常運行,輸出i=0 40) 研究下面的Java 代碼,當x=2 時,運行結(jié)果是() 。 public class Test2 extends Test { public static void main (String[]args) {new Test2() .talk() 。(選擇一項) package 。 (c) 。(選擇一項) a) Filelnputstream b) FileReader c) Filewriter d) File 40)在JAVA中,() 關(guān)鍵字用來終止循環(huán)語句。 if ( boo== false) { (a) 。 i++) (it(i)) 。 i++) ((i)) 。Iterator it = ( ) 。(選擇二項)a) variable123b) 123variblec) privated) variable_12335)給定一段JAVA代碼如下:要打印出list中存儲的內(nèi)容,以下語句正確的是( )。b) ( ) 。Import .*。 ( ) 。}a) 編譯錯誤b) 編譯通過,但出現(xiàn)運行是錯誤c) 正常運行,輸出s=nulld) 正常運行,輸出s=31) 給定一個java程序的main方法的代碼片段如下:假如d ,現(xiàn)運行該程序,下面的結(jié)果正確的是( )。d) protected void aMethod( ) 。(選擇一項)a) if(new File(“d:”) .exists() = =1) b) if((“d:”) = =1) c) if(new File(“d:/”) .exists( ) ) d) if((“d:/)) 29) 在JAVA接口中,下列選項里有效的方法聲明是( )。b) new Class() .forName(“”) 。 public static void main(String[] args) { (++counter) 。22) 給定某java程序的main方法,如下;(選擇一項)public static void main(String [ ]args) { int i = 0。(選擇一項) a) (null,請輸入登陸名!,提示信息,) 。b) int i=1/3。 () 。(選擇一項) a) 6 b) 5 c) 4 d) 118) 在java中,已定義兩個接口B和C,要定義一個實現(xiàn)這兩個接口的類,以下語句正確的是( ) 。c) return new Integer( i) 。(選擇兩項)     public Integer change( int i) { }a) Integer int =new Integer( i) 。i3。}從命令行傳參:people world nation,該程序的運行結(jié)果是()。 } }a) void my Method(final int p) b) final int il。(選擇一項) class MyClass{ void myMethod(final int p){ final int il。 (a%2==1) ?(a+1) /2:a/2) ; } } (選擇一項) a)1 b)2 c) d)39) 以下Java語句中,String str = “123456789”。 b) (new FlowLayout() )c)() d)() 6)給定java代碼如下,運行時,會產(chǎn)生()類型的異常。 (選擇一項) a) String s= “join”+ “was”+ “here”。Java試題1) java程序中,main方法的格式正確的是()。 (選擇一項) a)protected b)private c)public d)friendly4) 在Java中,下列()語句不能通過編譯。5) 在Java中下列()方法可以把JFrame的布局管理器設(shè)為FlowLayout類型(選擇一項) a)(new FlowLayout() )。 public class Test{ public staticvoid main(String args[]){ int a=5。(選擇一項)a) “23” b) “123”c) “12”d) “234”10) 給定如下java代碼,以下()代碼行編譯會報錯。 i2=20。 class Parent{ } class Child extends Parent{ public static void main(String args[]){ Parent p1=new Child() ;//第一行 Parent p2=new Parent () ;//第二行 Child c1=new Child() ;//第三行 Child c2=new Parent () ;//第四行 } } (選擇一
點擊復制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1