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

正文內(nèi)容

java考試選擇題及答案-展示頁

2025-07-03 18:37本頁面
  

【正文】 } (i) 。i3。 }d) class Circle extends Shape{ void draw() {} }14) 給定如下java代碼,編譯運(yùn)行時(shí),結(jié)果是()。}從命令行傳參:people world nation,該程序的運(yùn)行結(jié)果是()。11) 給定如下java代碼,編譯時(shí)會(huì)在()出現(xiàn)錯(cuò)誤。 } }a) void my Method(final int p) b) final int il。 i1=20。(選擇一項(xiàng)) class MyClass{ void myMethod(final int p){ final int il。執(zhí)行后str中的值為。 (a%2==1) ?(a+1) /2:a/2) ; } } (選擇一項(xiàng)) a)1 b)2 c) d)39) 以下Java語句中,String str = “123456789”。 (選擇一項(xiàng)) a)ArrayList b) HashSet c) HashMap d) LinkedList8) 給定如下java代碼,編譯運(yùn)行之后,將會(huì)輸出()。 b) (new FlowLayout() )c)() d)() 6)給定java代碼如下,運(yùn)行時(shí),會(huì)產(chǎn)生()類型的異常。 c) int a= 3+5 d) float f=5+。 (選擇一項(xiàng)) a) String s= “join”+ “was”+ “here”。 (選擇一項(xiàng))a) (byte) (b1b2) b) (byte) b1b2 c) b1b2 d) (byte) b1/b23) 在Java中,這個(gè)類必須定義為()。Java試題1) java程序中,main方法的格式正確的是()。 (選擇一項(xiàng)) a)static void main(String[] args) b)public void main(String[] args) c)public static void main(String[]s)d)public static void main(String[] args)2) 給定java代碼,如下: public byte count(byte b1,byte b2){ return______; } 要使用這段代碼能夠編譯成功,橫線處可以填入() 。 (選擇一項(xiàng)) a)protected b)private c)public d)friendly4) 在Java中,下列()語句不能通過編譯。 b) String s= “join”+3。5) 在Java中下列()方法可以把JFrame的布局管理器設(shè)為FlowLayout類型(選擇一項(xiàng)) a)(new FlowLayout() )。(選擇一項(xiàng)) String s=null; (“abc”); a)ArithmeticException b)NullPointerException c)IOException d)EOFException7) 在java中,()對象可以使用鍵/值的形式保存數(shù)據(jù)。 public class Test{ public staticvoid main(String args[]){ int a=5。str =(1,3)。(選擇一項(xiàng))a) “23” b) “123”c) “12”d) “234”10) 給定如下java代碼,以下()代碼行編譯會(huì)報(bào)錯(cuò)。 final int i2=p。 i2=20。c) final int i2=pd) il=20e) 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 () ;//第四行 } } (選擇一項(xiàng)) a) 第一行b) 第二行c) 第三行d) 第四行12)給定某java程序的main方法,如下:public static void main (String[]arg){ ( “Hello”+args[1]) 。 (選擇一項(xiàng))a) Hello people b) Hello worldc) Hello people world nationd) 運(yùn)行時(shí)出現(xiàn)異常13) 給定Java代碼,如下: abstract class Shape{ abstract void draw() ; } 要?jiǎng)?chuàng)建Shape類的子類Circle,以下代碼正確的是() (選擇二項(xiàng))a) class Circle extends Shape{ int draw() {} }b) abstract class Circle extends Shape{ }c) class Circle extends Shape{ void draw() 。 (選擇一項(xiàng))pub
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1