




已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1.Given: Integer i = new Integer (42); Long l = new Long (42); Double d = new Double (42.0); Which two expressions evaluate to True? A. (i = 1) B. (i = d) C. (d = 1) D. (i.equals (l) E. (d.equals (l) F. (i.equals (42) G. none of above Answer: 2. Given: public class Foo public static void main (String args) StringBuffer a = new StringBuffer(“A“); StringBuffer b = new StringBuffer (“B“); operate (a,b); System.out.println(a + “,“ +b); static void operate(StringBuffer x, StringBuffer y) x.append(y); y = x; What is the result? A. The code compiles and prints “A,B”. B. The code compiles and prints “A,A”. C. The code compiles and prints “B,B”. D. The code compiles and prints “AB,B”. E. The code compiles and prints “AB,AB”. F. The code does not compile because “+” cannot be overloaded for StringBuffer. Answer: 3.Given: class BaseClass private float x = 1.0f ; protected float getVar() return x; class Subclass extends BaseClass private float x = 2.0f; /insert here Which two are valid examples of method overriding? A. float getVar() return x; B. public float getVar() return x; C. public double getVar() return x; D. protected float getVar() return x; E. public float getVar(float f) return f; Answer: 4. Which of the following are methods of the Runnable interface A) run B) start C) yield D) stop Answer: 5. Which of the following are legal statements? A) float f=1/3; B) int i=1/3; C) float f=1.01; D) double d=999d; Answer: 6. Given: public class test( public static void main(string args) String foo = args1; String baz = args2; String bax = args3; And the command line invocation: Java Test red green blue What is the result? A. baz has the value of “” B. baz has the value of null C. baz has the value of “red” D. baz has the value of “blue” E. bax has the value of “green” F. the code does not compile G. the program throws an exception Answer: 7. Which of the following statements are true? A) The garbage collection algorithm in Java is vendor implemented B) The size of primitives is platform dependent C) The default type for a numerical literal with decimal component is a float. D) You can modify the value in an Instance of the Integer class with the setValue method Answer: 8. Given: int i = 1, j = 10; do if(i+ -j) continue; while(iTOM-eTOM-NGOSS 3什么是数据库系统?列举几个常见数据库系统。 要点: 1)数据库系统是一个实际可运行的存储、维护和应用系统提供数据的软件系统,是存 储介质、处理对象和管理系统的集合体。它通常由软件、数据库和数据管理员组成。其软件 主要包括操作系统、各种宿主语言、实用程序以及数据库管理系统。数据库由数据库管理系 统统一管理,数据的插入、修改和检索均要通过数据库管理系统进行。 2)开源数据库系统有:HSQLDB、MySQL、PostgreSQL 等 3)商业数据库系统包括:Oracle10g、DB2、Sysbase、Informix、MS SQL 等。 4请简单描述软件开发过程的主要阶段。 要点: 计划,分析,设计,编码,测试,维护等。 5请将下面一段文字翻译成中文。 An enterprise service bus (ESB) is a pattern of middleware that unifies and connects services, appl ications and resources within a business. Put another way, it is the framework within which the ca pabilities of a business applications are made available for reuse by other applications throughout the organization and beyond. The ESB is not a new software product its a new way of looking at how to integrate applications, coordinate resources and manipulate information. Unlike many pr evious approaches for connecting distributed applications, for example RPC or distributed objects, the ESB pattern e
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 会计基础第四章试题及答案
- 2025年项目可行性研究报告财务
- 企业安全竞赛试题及答案
- 仪征招聘考试题及答案
- 仓库消防安全试题及答案
- 人民币考试题及答案
- 2025年农村电商示范县创建资金申请报告:农村电商与区域经济协同发展策略
- 2025年农村电商服务站农村电商市场拓展与营销策略研究报告
- 运动损伤题目解答及答案
- 2025年农产品质量安全追溯体系在农村电商中的应用与效果评估报告
- 集团集中采购管理制度(试运行)
- GB/T 5210-2006色漆和清漆拉开法附着力试验
- GB/T 39165-2020电阻点焊及凸焊接头的剥离和凿离试验方法
- GB/T 20698-200656%2甲4氯钠可溶粉剂
- 行政事业单位经济业务不相容岗位相分离控制制度模板
- 统计学原理试题与答案
- (妇产科学)第十八章 女性生殖系统炎症课件
- 立式加工中心的基本操作专题培训课件
- 一例慢阻肺病人护理个案
- 阿克苏地区生态环境准入清单
- 产品创新设计与实践完整版课件全套ppt教学教程电子教案讲义最全(最新)
评论
0/150
提交评论