瑞海软件java面试题new

瑞海软件java面试题new

ID:39508270

大小:44.00 KB

页数:5页

时间:2019-07-04

瑞海软件java面试题new_第1页
瑞海软件java面试题new_第2页
瑞海软件java面试题new_第3页
瑞海软件java面试题new_第4页
瑞海软件java面试题new_第5页
资源描述:

《瑞海软件java面试题new》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、瑞海软件Java面试题1.谈谈&和&&的区别2.数组有没有length()这个方法?String有没有length()这个方法?3.HashMap和Hashtable的区别4.Collection和Collections的区别5.Math.round(11.5)等於多少?Math.round(-11.5)等於多少?6.Strings=newString("xyz");创建了几个StringObject?,分别是什么?7.error和exception有什么区别?8.abstract的method是否可同

2、时是static,是否可同时是native,是否可同时是synchronized?9.接口是否可继承接口?抽象类是否可实现(implements)接口?抽象类是否可继承实体类(concreteclass)?10.当一个线程进入一个对象的一个synchronized方法后,其它线程是否可进入此对象的其它方法?11.try{}里有一个return语句,那么紧跟在这个try后的finally{}里的code会不会被执行,什么时候被执行,在return前还是后?12.问以下程序将会打印出什么?父类package

3、test;publicclassFatherClass{publicFatherClass(){System.out.println("FatherClassCreate");}}子类:packagetest;importtest.FatherClass;publicclassChildClassextendsFatherClass{publicChildClass(){System.out.println("ChildClassCreate");}publicstaticvoidmain(String

4、[]args){FatherClassfc=newFatherClass();ChildClasscc=newChildClass();}}补充完善以下程序,以实现设计2个线程,其中两个线程每次对j增加1,另外两个线程对j每次减少1。对j增减的时候不需要考虑顺序问题。WritetheSQLstatementsthatimplementthedatabaseschemathatcorrespondstothefollowingERmodel.Theentity“Child”isaweakentitywhi

5、chdependson“Employee”.Youranswershouldalsoincludethestatementoftherelevantintegrityconstraints.TheanswercanbegivenpurelyintermsoftwoCREATEstatements.答:Descriptionforthefollowingtwoquestions:Considerasmalldatabaseforalibrary.Thedatabasestoresgeneralinform

6、ationaboutbooks,thephysicalcopiesofeachbooktheyhaveinthelibrary,theirreadersandthebooks/copiesthatwereoraregivenoutonloan.Thisinformationisstoredinthefollowingrelations(primarykeysarerepresentedinboldunderlinedandforeignkeysinbolditalic(arrowsarealsodraw

7、nforforeignkeystoimprovereadability)):BookISBNtitleauthorspublisheryearpricePhysicalCopycatalogNoISBNlocationmaxDaysLoanoverdueChargePerDayReaderuserNamenameaddressmaxNoBooksForLoanLoanuserNamecatalogNodateOutdateInQuestion2[13]Expressthefollowingnatural

8、languagequeriesinSQL:a)Listthetitle,authors,andpriceforallthebookspublishedbyAddison-Wesleyin2000,inalphabeticalorderwithrespecttotitles.[2]b)Listthetitlesofallthebooksthatcanbetakenonloanformorethanthreedays.[2]c)Listhowm

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。