JAVA程序员笔试题目与答案.pdf_第1页
JAVA程序员笔试题目与答案.pdf_第2页
JAVA程序员笔试题目与答案.pdf_第3页
JAVA程序员笔试题目与答案.pdf_第4页
JAVA程序员笔试题目与答案.pdf_第5页
已阅读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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论