




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、JAVA系統(tǒng)分析筆試題選擇題1:public class xpublic object mobject o = new float;s:/li ne 3object oa = new object1;s:/li ne 4oa0 = o;s:/li ne 5o=nu ll;s:/li ne 6return oa0;s:/li ne 7whe n is the float object, created in line 3,eligible for garbagecollecti on?public class xpublic object mobject o = new float;s:/li
2、ne 3object oa = new object1;s:/li ne 4oa0 = o;s:/li ne 5o=nu ll;s:/li ne 6return oa0;s:/li ne 7whe n is the float object, created in line 3,eligible for garbagecollecti on?after line 5.after line 6after line 7in this method2:use the operator “” and “” . which statement is true?0000 0000 0000 0000 00
3、00 0000 0000 4 give 0000 1010 0000 0000 00000000 0000 00000000 0000 0000 0000 0000 0000 0000 4 give 1111 1010 0000 0000 00000000 0000 00000000 0000 0000 0000 0000 0000 0000 4 give 0000 0000 0000 00000000 0000 0000 00000000 0000 0000 0000 0000 0000 0000 4 give 1111 1010 0000 00000000 0000 0000 00003:
4、the follow ing code is en tire contents of a file called ,causes precisely one error duri ng pilati on:class subclass exte nds baseclassclass baseclassstri ng str;public baseclass;public baseclassstr=s;public class examplepublic void methodsubclass s=new subclass;baseclass b=new baseclass;which line
5、 would be cause the error?the following code is entire contents of a file called ,causes precisely one error duri ng pilati on:class subclass exte nds baseclassclass baseclassstri ng str;public baseclass;public baseclassstr=s;public class examplepublic void methodsubclass s=new subclass;baseclass b=
6、new baseclass;which line would be cause the error?4:what will be the result of executi ng the follow ing code?boolea n a = true;boolea n b = false;boolea n c = true;ififif ;else ;else if );else ;choices:what will be the result of execut ing the follow ing code?boolea n a = true;boolea n b = false;bo
7、olea n c = true;ififif ;else ;else if );else ;choices:code won t pileb. ” some things are true in this world” will be printedc. ” hey this won t pile ” will be printedof these5:give the followi ng java source frageme nt:s:/po int xpublic class in terest ings:/do somethi ngwhich stateme nt is correct
8、ly java syn tax at point x?give the followi ng java source frageme nt:s:/po int xpublic class in terest ings:/do somethi ngwhich stateme nt is correctly java syn tax at point x?class myclasss:/do other thi ng int pi=myclasss:/do some thing 6:public class pare nt int cha nge class child exte nds pare
9、 nt which methods can be added into class child?int cha ngeint cha ngint cha nge7:給出下面的代碼片斷。oo下面的哪些陳述為錯誤的?1) public void create 2) vector myvect;3) myvect = new vector;4) 給出下面的代碼片斷。下面的哪些陳述為錯誤的?1) public void create 2) vector myvect;3) myvect = new vector;4) a. 第二行的聲明不會為變量 myvect分配內(nèi)存空間。b. 第二行語句創(chuàng)建一個ve
10、ctor類對象。c. 第三行語句創(chuàng)建一個vector類對象。followi ngd. 第三行語句為一個vector類對象分配內(nèi)存空間8:what is writte nto the sta ndard output give n thestateme nt:;select the right an swer:9:which fragme nts are n ot correct in java source file?testpackage; public class tests:/do someth in g.*; package testpackage; public class test
11、s:/ do someth in g.*; class pers on s:/ do somethi ng. public class tests:/ do somethi ng.*; import *; public class tests:/ do somethi ng.10:give the follow ing java class:public class examplestatic int x=new in t15;public static void mainJwhich stateme nt is corrected?give the follow ing java class
12、:public class examplestatic int x=new in t15;public static void mainJwhich stateme nt is corrected?pile, some error will occur.run, some error will occur.is zero.is n ull.11:使用jdbc可以做到的是a. 把二進(jìn)制代碼傳送到任何關(guān)系數(shù)據(jù)庫中b. 把java源代碼傳送到任何關(guān)系數(shù)據(jù)庫中c. 把表單信息傳送到任何關(guān)系數(shù)據(jù)庫中d. 很容易地把sql語句傳送到任何關(guān)系數(shù)據(jù)庫中12:which method you defi ne a
13、s the start ing point of new thread in a class from which new the thread can be excuti on?void startvoid runvoid runn ablestatic void mai n13:which stateme nts about java code security are not true?bytecode verifier loads all classes n eeded for the executi on of a program.code is performed by the r
14、un time in terpreter.run time the bytecodes are loaded, checked and run in an in terpreter. class loader adds security by separati ng the n amespaces for the classes of the local file system from those imported from network sources.14:關(guān)于垃圾收集的哪些敘述是對的。a. 程序開發(fā)者必須自己創(chuàng)建一個線程進(jìn)行內(nèi)存釋放的工作。b. 垃圾收集將檢查并釋放不再使用的內(nèi)存。c
15、. 垃圾收集允許程序開發(fā)者明確指定并立即釋放該內(nèi)存。d. 垃圾收集能夠在期望的時間釋放被java對象使用的內(nèi)存。15:give the follow ing java class:public class examplepublic static void mainstatic int x = new in t15;Jwhich stateme nt is corrected?give the follow ing java class:public class examplepublic static void mainstatic int x = new in t15;which stat
16、eme nt is corrected?pile, some error will occur.run, some error will occur.is zero.is n ull.16:select valid ide ntifier of java:select valid ide ntifier of java:a.%passwd_gamec.$charge簡答題17:abstract class 和 in terface 有什么區(qū)別?18:hibernate中,什么情況下,對象的狀態(tài)可以由持久的變?yōu)橥泄艿?9:兩個數(shù)相乘,小數(shù)點(diǎn)后位數(shù)沒有限制,請寫一個高精度算法。20:求符合指定規(guī)則的數(shù)。這樣這現(xiàn)在給定函數(shù)d = n n 的各位之和,n為正整數(shù),如d = 78 7 8=93 。 個函數(shù)可以看成一個生成器,如93可以看成由78生成。定義數(shù)a:數(shù)a找不到一個數(shù)b可以由d=a,即a不能由其他數(shù)生成 要寫程序,找出1至10000里的所有符合數(shù)a定義的數(shù)。輸出:13-強(qiáng)
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 征地合同協(xié)議書
- 汽車檢測與維修作業(yè)指導(dǎo)書
- 小區(qū)物業(yè)場地租賃合同
- 臨時活動場地租賃合同
- 中國民用航空運(yùn)輸合同書5篇
- 廣西國匯投資擔(dān)保有限公司借款擔(dān)保合同8篇
- 公路貨物運(yùn)輸合同協(xié)議
- 農(nóng)業(yè)機(jī)械化裝備應(yīng)用作業(yè)指導(dǎo)書
- 公民之間借款合同書8篇
- 2025年??诮?jīng)營性道路客貨運(yùn)輸駕駛員從業(yè)資格考試
- 中央2025年全國婦聯(lián)所屬在京事業(yè)單位招聘93人筆試歷年參考題庫附帶答案詳解
- 廣州2025年廣東廣州市番禺區(qū)小谷圍街道辦事處下屬事業(yè)單位招聘5人筆試歷年參考題庫附帶答案詳解
- CentOS 7系統(tǒng)配置與管理(Linux 試題庫) 習(xí)題答案 (楊海艷 第2版)
- 手機(jī)直連衛(wèi)星的可用頻率分析
- 2025年春新人教版歷史七年級下冊課件 第16課-明朝的對外關(guān)系
- 施工單位工程質(zhì)量自評報告三篇
- 《家畜環(huán)境衛(wèi)生學(xué)》課件
- 2025年碳化硅(SiC)市場分析現(xiàn)狀
- 2024年湖南高速鐵路職業(yè)技術(shù)學(xué)院高職單招數(shù)學(xué)歷年參考題庫含答案解析
- 2024年沙洲職業(yè)工學(xué)院高職單招語文歷年參考題庫含答案解析
- 2024年廣東省《輔警招聘考試必刷500題》考試題庫【學(xué)生專用】
評論
0/150
提交評論