1Z

Similar documents
1Z Oracle. Java Platform Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert

1Z

Accurate study guides, High passing rate! Testhorse provides update free of charge in one year!

Exam Questions 1Z0-850

1Z Java SE 5 and 6, Certified Associate Exam Summary Syllabus Questions

1Z0-850 V8.02_formatted

presentation for Java Student Group, UFC, 03/13/2008 J. M. Silveira Neto Sun Campus Ambassador Universidade Federal do Ceará, Brazil

Pass4Sure.1z Questions

Passguide.1z q. 1z Java Standard Edition 5 and 6, Certified Associate Exam

SUN Sun Certified Associate for the Java Platform.

Distributed Multitiered Application

Vision of J2EE. Why J2EE? Need for. J2EE Suite. J2EE Based Distributed Application Architecture Overview. Umair Javed 1

Java Enterprise Edition

CS506 Web Design & Development Final Term Solved MCQs with Reference

index_ qxd 7/18/02 11:48 AM Page 259 Index

J2EE Interview Questions

Appendix A - Glossary(of OO software term s)

Introduction. Enterprise Java Instructor: Please introduce yourself Name Experience in Java Enterprise Edition Goals you hope to achieve

Oracle 10g: Build J2EE Applications

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

Chapter 6 Enterprise Java Beans

Outline. Introduction to Java. What Is Java? History. Java 2 Platform. Java 2 Platform Standard Edition. Introduction Java 2 Platform

CO Java EE 7: Back-End Server Application Development

Java SE7 Fundamentals

This course is intended for Java programmers who wish to write programs using many of the advanced Java features.

SUN. Java Platform Enterprise Edition 6 Web Services Developer Certified Professional

Advanced Java Programming

PLATFORM TECHNOLOGY UNIT-5

1. Java is a... language. A. moderate typed B. strogly typed C. weakly typed D. none of these. Answer: B

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

Designing a Distributed System

Enterprise Java Unit 1-Chapter 2 Prof. Sujata Rizal Java EE 6 Architecture, Server and Containers

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1

Fast Track to Java EE

Java J Course Outline

NetBeans IDE Field Guide

JDBC Today C HAPTER 1 INTRODUCTION

Exam Questions 1Z0-895

Application Servers in E-Commerce Applications

Introduction to Visual Basic and Visual C++ Introduction to Java. JDK Editions. Overview. Lesson 13. Overview

Course title: ADVANCED WEB TECHNOLOGIES AND SERVICES

Deccansoft Software Services. J2EE Syllabus

Agenda. Summary of Previous Session. Extreme Java G Session 3 - Main Theme Java Core Technologies (Part I)

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

Borland Application Server Certification. Study Guide. Version 1.0 Copyright 2001 Borland Software Corporation. All Rights Reserved.

(9A05803) WEB SERVICES (ELECTIVE - III)

Java EE 7: Back-End Server Application Development

Master Thesis An Introduction to the Enterprise JavaBeans technology and Integrated Development Environments for implementing EJB applications

The Sun s Java Certification and its Possible Role in the Joint Teaching Material

Vendor: SUN. Exam Code: Exam Name: SUN Certified ENITRPRISE ARCHITECT FOR J2EE(tm)TECHNOLOGY. Version: Demo

ive JAVA EE C u r r i c u l u m

Course Content for Java J2EE

Spring & Hibernate. Knowledge of database. And basic Knowledge of web application development. Module 1: Spring Basics

What we need. Agenda. What s J2EE. Challenges of Enterprise Application Development

Oracle EXAM - 1Z Java EE 6 Enterprise JavaBeans Developer Certified Expert Exam. Buy Full Product.

Enterprise JavaBeans, Version 3 (EJB3) Programming

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes

DS 2009: middleware. David Evans

C exam. IBM C IBM WebSphere Application Server Developer Tools V8.5 with Liberty Profile. Version: 1.

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

WA1278 Introduction to Java Using Eclipse

Graphical Interface and Application (I3305) Semester: 1 Academic Year: 2017/2018 Dr Antoun Yaacoub

CMP 436/774. Introduction to Java Enterprise Edition. Java Enterprise Edition

Oracle - Developing Applications for the Java EE 7 Platform Ed 1 (Training On Demand)

Developing Applications with Java EE 6 on WebLogic Server 12c

SNS COLLEGE OF ENGINEERING, Coimbatore

Compaq Interview Questions And Answers

Java is a high-level programming language originally developed by Sun Microsystems and released in Java runs on a variety of

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

Oracle. Exam Questions 1z Java Enterprise Edition 5 Web Services Developer Certified Professional Upgrade Exam. Version:Demo

1Z Oracle. Java Enterprise Edition 5 Enterprise Architect Certified Master

Notes. Submit homework on Blackboard The first homework deadline is the end of Sunday, Feb 11 th. Final slides have 'Spring 2018' in chapter title

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

Objects, Distribution, and the Internet. Update on Java. Introduction, fundamentals and basic concepts. Outline

Object Oriented Programming is a programming method that combines: Advantage of Object Oriented Programming

Java- EE Web Application Development with Enterprise JavaBeans and Web Services

Component-Based Software Engineering. ECE493-Topic 5 Winter Lecture 26 Java Enterprise (Part D)

COWLEY COLLEGE & Area Vocational Technical School

Zhifu Pei CSCI5448 Spring 2011 Prof. Kenneth M. Anderson

Java Programming. MSc Induction Tutorials Stefan Stafrace PhD Student Department of Computing

SUN Sun Certified Enterprise Architect for J2EE 5. Download Full Version :

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1

Java Intro 3. Java Intro 3. Class Libraries and the Java API. Outline

Oracle9iAS Tech nicaloverview

Introduction to Web Application Development Using JEE, Frameworks, Web Services and AJAX

Call: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline

The Umbilical Cord And Alphabet Soup

In the most general sense, a server is a program that provides information

IT6503 WEB PROGRAMMING. Unit-I

UNIT -I PART-A Q.No Question Competence BTL

CERTIFICATION SUCCESS GUIDE ENTERPRISE ARCHITECT FOR JAVA 2 PLATFORM, ENTERPRISE EDITION (J2EE ) TECHNOLOGY

B. Assets are shared-by-copy by default; convert the library into *.jar and configure it as a shared library on the server runtime.

Selected Questions from by Nageshwara Rao

PSD1B Advance Java Programming Unit : I-V. PSD1B- Advance Java Programming

Enterprise JavaBeans (I) K.P. Chow University of Hong Kong

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

Introduction to Programming Using Java (98-388)

presentation DAD Distributed Applications Development Cristian Toma

~ Ian Hunneybell: CBSD Revision Notes (07/06/2006) ~

Introduction To Web Architecture

Transcription:

1Z0-850 Passing Score: 800 Time Limit: 4 min

Exam A QUESTION 1 Which object-oriented principle is supported by the use of Java packages? A. encapsulation B. polymorphism C. inheritance D. dynamic typing Correct Answer: A /Reference: QUESTION 2 Click the Exhibit button. Which two are true? (Choose two.) A. Every Flurb is associated with exactly one Flurb. B. There can only be one instance of the Flurb class. C. Every Flurb contains a reference to itself. D. There must always be an even number of Flurb instances. E. A Flurb can be associated with itself, but it also could be associated with a different Flurb. Correct Answer: AE /Reference:

QUESTION 3 Given: 11. class Automobile { 12. public void drive() { System.out.print("go forward "); 13. 14. class Ferrari extends Automobile { 15. public void drive () { System.out.print("go fast "); 16. 17. public class Driver { 18. public static void main(string[] args) { 19. Automobile[] autos = { new Automobile(), new Ferrari() ; 20. for (int x = 0; x < autos.length; x++) 21. autos[x].drive(); 22. 23. What is the result? A. go forward go forward B. Compilation fails due to an error on line 19. C. Compilation fails due to an error on line 15. D. go fast go forward E. go fast go fast F. go forward go fast G. Compilation fails due to an error on line 21. Correct Answer: F /Reference: QUESTION 4 Which two are valid? (Choose two.) A. enum Suit { CLUBS, DIAMONDS, HEARTS, SPADES class EnumTest { public static void main(string args[]) {

System.out.println(Suit.CLUBS); B. class EnumTest { enum Days { Sat, Sun, Mon, Tue, Wed, Thu, Fri public static void main(string args[]) { System.out.println(Days.Sat); C. class EnumTest { enum Colors { Red = 1, Green = 2, Blue = 4, Yellow = 8 public static void main(string args[]) { System.out.println(Colors.Red); D. class EnumTest { public static void main(string args[]) { enum Num { ONE, TWO, THREE, FOUR System.out.println(Num.ONE); Correct Answer: AB /Reference: QUESTION 5 Click the Exhibit button. Which two are true? (Choose two.) A. A Foo instance has access to the Bar with which it is associated. B. The diagram does NOT show a composition relation. C. It cannot be determined from the diagram whether instances of Foo and Bar will have access to each other. D. A Bar instance has access to the Foo with which it is associated. E. The diagram shows a composition relation. Correct Answer: BD

/Reference: QUESTION 6 Which four are primitive integer types in Java? (Choose four.) A. float B. long C. byte D. double E. int F. short G. nibble Correct Answer: BCEF /Reference: QUESTION 7 A Java programmer wants to develop a stand-alone, desktop, word processing application. Which Java edition (or editions) are appropriate to develop this application? A. J2SE and J2ME B. only J2EE C. J2EE and J2ME D. only J2SE E. only J2ME F. J2SE and J2EE Correct Answer: D

/Reference: QUESTION 8 Which protocol provides an XML-based, platform-independent means of exchanging structured information? A. UDDI B. WSDL C. JSP D. JNDI E. SOAP Correct Answer: E /Reference: QUESTION 9 Which is a requirement to use applets in a web browser? A. The Java compiler must be installed on the client. B. A web container must be installed at the server. C. The Java Runtime Environment must be installed on the client. D. The Java Plug-in must be installed on the server. Correct Answer: C /Reference: QUESTION 10 Which four are primitive integer types in Java? (Choose four.)

A. nibble B. short C. int D. double E. byte F. float G. long Correct Answer: BCEG /Reference: QUESTION 11 Which two are true about the composition relationship "A Blip consists of many Blipverts."? (Choose two.) A. When a Blipvert is deleted, its Blip should also be deleted. B. A Blipvert must be part of at least one Blip. C. A Blipvert can be a part of only one Blip. D. A Blip must have at least two Blipverts. E. When a Blip is deleted, each of its Blipverts should also be deleted. Correct Answer: CE /Reference: QUESTION 12 Which is true about association navigation? A. Association navigation is meaningful for only OO design, NOT implementation. B. Association navigation indicates which direction a relationship can be traversed. C. Association navigation is used to describe the relationship between a subclass and its superclass. D. Association navigation indicates how many instances of each object type are involved in an association.

Correct Answer: B /Reference: QUESTION 13 Which two correctly import the Map class in the java.util package? (Choose two.) A. import *.Map; B. package java.util.map; C. import Map; D. import java.util.map; E. package java.util.*; F. import java.util; G. import java.util.*; Correct Answer: DG /Reference: QUESTION 14 Which three are char literals? (Choose three.) A. 'C' B. "C" C. 'ABC' D. '\uf00d'

E. '\n' F. /C/ Correct Answer: ADE /Reference: QUESTION 15 Click the Exhibit button. Which two classes can have two or more instances associated with a single instance of X. (Choose two.) A. D B. A C. C D. B Correct Answer: CD /Reference: QUESTION 16 Given: 1. 2. class FortyTwo { 3. public static void main(string[] args) { 4. Integer i = new Integer(42); 5. 6. Which two allow the code to compile? (Choose two.) A. Add package java.lang; at line 1. B. Add import lang.integer; at line 1. C. Add package java.lang.integer; at line 1.

D. Make no changes. E. Add import java.lang.integer; at line 1. F. Add import java.lang; at line 1. Correct Answer: DE /Reference: QUESTION 17 A developer must implement a "shopping cart" object for a web-based application. The shopping cart must be able to maintain the state of the cart, but the state is not stored persistently. Which J2EE technology is suited to this goal? A. JAX-RPC B. entity beans C. stateful session beans D. stateless session beans E. JMS Correct Answer: C /Reference: QUESTION 18 Which is true about Java RMI? A. rmiregistry provides a lookup service. B. RMI is the acronym for Remote Method Interchange. C. An HTTP server is necessary to use RMI. D. RMI uses the SOAP protocol. Correct Answer: A

/Reference: QUESTION 19 You need an algorithm that must:.iterate through an array of primitive integers.print the value of each array element in index order If the value of the element is equal to 10, print the value of the element, and then terminate the iteration Which method correctly implements the algorithm? A. public static void foo(int[] list) { for(int i:list) { System.out.println(i); if (i==10) break; B. public static void foo(int[] list) { while(list.length > 0) { System.out.println(i); if (i==10) break; C. public static void foo(int[] list) { for(int i=0; i < list.length; i++) { System.out.println(i); if (i==10) break; D. public static void foo(int[] list) { for(int i=0; i < list.length; i++) { System.out.println(i); if (i==10) continue; E. public static void foo(int[] list) { for each(int i in list) { System.out.println(i); if (i==10) terminate; Correct Answer: A /Reference:

QUESTION 20 Given: 1. interface Movable { 2. void move(); 3. void stop(); 4. Which is valid? A. public class Bicycle implements Movable { public void move() { /*...*/ public void stop() { /*...*/ B. public class Bicycle implements Movable { void move() { /*...*/ void stop() { /*...*/ C. public class Bicycle extends Movable { public void move() { /*...*/ public void stop() { /*...*/ D. public class Bicycle implements Movable { public void move() { /*...*/ Correct Answer: A /Reference: QUESTION 21 Which two are true? (Choose two.) A. Classes in the java.awt package are used to paint objects on canvases. B. Classes in the java.awt package inherit many behaviors from classes in the java.swing package. C. Classes in the javax.swing package provide support for complex GUI components, such as tables and trees. D. Classes in the java.awt package are designed to provide lightweight components that work the same across different platforms. Correct Answer: AC

/Reference: QUESTION 22 Which is a valid definition of an interface called Transportable given another valid interface, Movable? A. class Movable implements Transportable { /*...*/ B. interface Transportable extends Movable { /*...*/ C. class Movable extends Transportable { /*...*/ D. interface Transportable implements Movable { /*...*/ Correct Answer: B /Reference: QUESTION 23 Which is a disadvantage of using J2EE server-side technologies in a web-based application? A. maintainability B. complexity C. support for many different clients D. scalability Correct Answer: B /Reference:

QUESTION 24 Given: 1. public class Bar { 2. int size; 3. public static void main(string[] args) { 4. Bar b = new Bar(); 5. b.size = 27; 6. int i = b.go(b.size); 7. System.out.print(b.size + " : " + i); 8. 9. public int go(int size) { 10. size++; 11. return size; 12. 13. What is the result? A. 27 : 28 B. Compilation fails. C. 27 : 27 D. 28 : 28 E. 28 : 27 Correct Answer: A /Reference: QUESTION 25 Which Java technology uses standard mappings between Java classes and XML to support web service calls using the SOAP protocol? A. JAXM B. JAXB C. JAX-RPC D. EJB E. JavaMail F. JSP

Correct Answer: C /Reference: QUESTION 26 Which three are valid? (Choose three.) A. int flag = true; B. int j = 'A'; C. byte b = 10; int i = b; D. int num = 3.14; E. int i = 10L; F. double d = 5.0; int n = (int)d; Correct Answer: BCF /Reference: QUESTION 27 Which three can be included in an interface declaration? (Choose three.) A. protected void showmessage(); B. void showmessage(); C. abstract void showmessage(); D. private void showmessage(); E. public void showmessage() { System.out.println("Hello."); F. public void showmessage(); G. static void showmessage();

Correct Answer: BCF /Reference: QUESTION 28 Which is true? A. All threads created by a given Java program share the same invocation stack. B. A J2SE program can create no more than 10 concurrent threads. C. Threading allows GUI applications to perform lengthy calculations and respond to user events at the same time. D. The Java threading model provides equal processor time to all threads. Correct Answer: C /Reference: QUESTION 29 Which three are legal ways to declare and initialize an instance variable? (Choose three.) A. public Integer f = new Integer(42); B. static Integer f = new Integer(42); C. public Integer f = null; D. static int x = 42; E. public int x = 'c'; F. public int x = null; Correct Answer: ACE /Reference:

QUESTION 30 What type of relationship is needed to represent the relationship between students and the courses they are enrolled in at a university? A. a one-to-one association B. a one-to-one composition C. a many-to-many composition D. a many-to-many association E. a one-to-many association F. a one-to-many composition Correct Answer: D /Reference: QUESTION 31 You are asked to create a Dog class that exposes the Dog class String name and int breed to other code as read-only attributes, provides encapsulation, and adheres to the standard JavaBeans naming conventions. Which approach implements these requirements? A. Provide public name() and public breed() methods in the Dog class, and mark the name and breed instance variables private. B. Provide public getname()/setname() and public getbreed()/setbreed() methods in the Dog class, and mark the name and breed instance variables private. C. Provide private getname() and private getbreed() methods in the Dog class, and mark the name and breed instance variables private. D. Provide private name() and private breed() methods in the Dog class, and mark the name and breed instance variables public. E. Provide public getname() and public getbreed() methods in the Dog class, and mark the name and breed instance variables private. Correct Answer: E /Reference:

QUESTION 32 Which is true? A. All threads created by a given Java program share the same invocation stack. B. A J2SE program can create no more than 10 concurrent threads. C. Threading allows GUI applications to perform lengthy calculations and respond to user events at the same time. D. The Java threading model provides equal processor time to all threads. Correct Answer: C /Reference: QUESTION 33 Given: 1. class X { 2. private Y y; 3. public X(Y y) { this.y = y; 4. 5. class Y { 6. private X x; 7. public Y() { 8. public Y(X x) { this.x = x; 9. The instance variable y is intended to represent the composition relationship "X is composed of Y." Which code correctly maintains this meaning? A. Y yy = new Y(); X x1 = new X(yy); X x2 = new X(yy); B. X xx = new X(null); Y y1 = new Y(xx); Y y2 = new Y(xx); C. X x1 = new X(new Y()); X x2 = new X(new Y()); D. Y y1 = new Y(new X(null)); Y y2 = new Y(new X(null));

Correct Answer: C /Reference: QUESTION 34 Given: 11. public class Employee { 12. public String name; 13. // insert code here 14. 15. public String getname() { 16. return name; 17. 18. 19. public int getsalary() { 20. return salary; 21. 22. Which, when inserted at line 13, allows another class to get the value of the salary variable, but NOT change the value of the salary variable? A. readonly int salary; B. secure int salary; C. private int salary; D. public int salary; E. hidden int salary; Correct Answer: C /Reference: QUESTION 35 Which two describe benefits of encapsulation? (Choose two.) A. Code is more flexible because the attributes can be modified directly from code in other packages.

B. Code is more reusable because the attributes of the class are protected from direct modification by other code. C. Code is safer because attributes of the class CANNOT be directly modified by code outside the class. D. Code is more useful because attributes of the class can be accessed by other classes for both reading and writing. E. Code is more efficient because attributes of the class can be accessed directly by other classes, without the overhead of going through access methods. Correct Answer: BC /Reference: QUESTION 36 Given: 2. class Test { 3. public static void main(string args[]) { 4. for (int i = 1; i < 5; i++) { 5. if (i == 2) { 6. continue; 7. 8. System.out.print(" i = " + i); 9. 10. 11. What is the result? A. i = 1 i = 3 i = 4 i = 5 B. i = 1 i = 2 i = 4 C. i = 1 i = 2 i = 4 i = 5 D. The code runs with no output. E. i = 1 i = 3 i = 4 F. Compilation fails. G. i = 1 Correct Answer: E /Reference:

QUESTION 37 Click the Exhibit button. Which is an abstract class? A. Mouse B. Cat C. Dog D. Rabbit Correct Answer: A /Reference: QUESTION 38 Which two are true? (Choose two.) A. JavaScript is the standard J2SE scripting language. B. JavaScript includes built-in libraries for invoking methods on Enterprise JavaBeans. C. JavaScript can be used to create a rollover image effect in a web page. D. JavaScript can only be used in browsers that have the Java Plug-in installed. E. JavaScript can be used to validate form input values before they are sent to the server. Correct Answer: CE /Reference:

QUESTION 39 What is the role of a JSP author? A. to coordinate the interaction between all the pages in a complex dynamic web-based application B. to write Java code to implement business logic C. to put static data and dynamic content together to create dynamic web pages D. to write Java code that interacts with server-side objects Correct Answer: C /Reference: QUESTION 40 Given: 1. class Test2 { 2. static String setmessage(string str) { 3. return str + "How are you doing?"; 4. 5. 6. public static void main(string[] args) { 7. String str = "Hello! "; 8. str = setmessage(str); 9. System.out.println("str : " + str); 10. 11. What is the result? A. Compilation fails because of an error at line 7. B. str : Hello! C. str : How are you doing? D. Compilation fails because of an error at line 2. E. Compilation fails because of an error at line 3. F. str : Hello! How are you doing? G. Compilation fails because of an error at line 8. Correct Answer: F

/Reference: QUESTION 41 Which is an advantage of RMI over sockets? A. Interactive communication is NOT possible using sockets. B. RMI transmission speed is faster than sockets. C. It is NOT necessary to implement an application-level communication protocol to use RMI. D. Sockets CANNOT transmit objects. Correct Answer: C /Reference: QUESTION 42 Which type of primitive can be assigned a new value within a conditional expression? A. boolean B. int C. short D. char E. byte Correct Answer: A /Reference: QUESTION 43 A Java programmer wants to develop a browser-based multitier application for a large bank. Which Java edition (or editions) should be used to develop this system?

A. only J2ME B. J2SE and J2EE C. J2SE and J2ME D. only J2SE E. only J2EE F. J2EE and J2ME Correct Answer: B /Reference: QUESTION 44 What is the purpose of JNDI? A. to access various directory services using a single interface B. to access native code from a Java application C. to register Java Web Start applications with a web server D. to parse XML documents Correct Answer: A /Reference: QUESTION 45 Which correctly declares a class Test in package com.example?

A. package com.example { class Test { // some code here B. package com.example; public class Test { // some code here C. public class com.example.test { // some code here D. import com.example; public class Test { // some code here Correct Answer: B /Reference: QUESTION 46 Which two are true? (Choose two.) A. SQL commands cannot be contained in servlets. B. SQL technology is used to access JMS queues from within EJB technology. C. SQL allows you to modify multiple rows in a table with a single command. D. SQL is a web services technology used to parse large XML files. E. SQL commands can be written in applications that use NO Java technologies. Correct Answer: CE /Reference: QUESTION 47

Given: 11. interface A { 12. void somemethod(); 13. 14. class B implements A { 15. public void somemethod() { 16. Which represents the "program to an interface" principle? A. public B make() { return new A(); B. public A make() { return new B(); C. public B make() { return new B(); D. public A make() { return new A(); Correct Answer: B /Reference: QUESTION 48 Which two are true? (Choose two.) A. MIDP does NOT have an API to support text messaging. B. J2ME can be used to make network-connected household appliances. C. A MIDP device must support wireless downloading of software. D. MIDP does NOT have an API to support audio. Correct Answer: BC /Reference: QUESTION 49 Click the Exhibit button. Which code correctly implements the association between A and B?

A. class A { class B { private A[] a; B. class A { class B { private A a; C. class A { private B b; class B { private A[] a; D. class A { private B[] b; class B { private A a; E. class A { private B b; class B { F. class A { private B[] b; class B { Correct Answer: F /Reference: QUESTION 50 Given: 4. int n1 = 22, n2 = 67, n3 = 0, n4 = 47, n5 = 17, n6 = 50; 5. boolean b = true;

Which three evaluate to true? (Choose three.) A.!(n1 < n3) && (n5!= n4) B. (!b) && (n1 <= n4) C. (n2 > n6) b D. (n2 < n6) && (n4 >= n1) E. (n3 < n5) (n2 <= n1) Correct Answer: ACE /Reference: QUESTION 51 Given: 1. public interface Player { 2. // insert code here 3. // insert code here 4. 5. class F implements Player { 6. public void play(){ 7. //... 8. 9. public void stop(){ 10. //... 11. 12. Which two, inserted independently at lines 2 and 3, allow the code to compile? (Choose two.) A. void play(); void stop(); B. final void play(); final void stop(); C. public void play(); public void stop(); D. void play(); int stop(); E. static void play();

static void stop(); F. private void play(); private void stop(); Correct Answer: AC /Reference: QUESTION 52 Which two are true? (Choose two.) A. A class that extends another class CANNOT be well encapsulated. B. If class B is well encapsulated, then class A can access class B's instance variables only through a method invocation. C. A class with a public instance variable CANNOT be well encapsulated. D. Polymorphism only applies when one class encapsulates another. Correct Answer: BC /Reference: QUESTION 53 Which two are represented in a UML class diagram? (Choose two.) A. relationships between classes and interfaces B. operations of classes and interfaces C. the interactions between objects in sequential order D. ways to test an application

Correct Answer: AB /Reference: QUESTION 54 Which is a benefit of Swing clients? A. They can be used without a JRE on the client. B. They are easier to deploy than thin clients. C. They can provide a richer graphical user interface experience than thin clients. D. They are more universally supported by browsers than thin clients. Correct Answer: C /Reference: QUESTION 55 Which two are true about composition relationships? (Choose two.) A. Composition relationships are never one-to-many. B. Composition relationships can be one-to-many. C. Composition relationships are used to show exclusive ownership. D. Composition relationships are always many-to-many. E. Composition relationships are never used when an object is owned by exactly one other object. Correct Answer: BC /Reference: QUESTION 56

Click the Exhibit button. Which is true about the use of italics in this diagram? A. The use of italics indicates that Blipvert is an abstract class. B. The use of italics indicates that Blipvert is an enumeration. C. The use of italics indicates that Blipvert is an interface. D. The use of italics carries no standard UML meaning. E. The use of italics indicates that Blipvert is a final class. Correct Answer: A /Reference: QUESTION 57 Which three about JMS are true? (Choose three.) A. JMS is the acronym for Java Mail Service. B. JMS provides a common way for Java programs to access an enterprise messaging system's messages. C. JMS supports an event-oriented approach to message reception. D. JMS supports both synchronous and asynchronous message passing. E. JMS does NOT depend on MOM (Messaging-Oriented Middleware) products. Correct Answer: BCD /Reference: QUESTION 58 Which type of GUI component is NOT included in Swing? A. Color Chooser B. File Chooser C. Tree Table

D. Dialog Box Correct Answer: C /Reference: QUESTION 59 Which is true? A. Any J2ME application can be run on any J2ME device. B. Only a single J2ME configuration, CLDC, has been created. C. J2ME applications can run on mobile devices without a J2ME runtime environment. D. J2ME can be customized using profiles to add functionality to specific devices. Correct Answer: D /Reference: QUESTION 60 Given: 1. class Test { 2. public static void main(string args[]) { 3. String str = new String("Welcome"); 4. // insert code here 5. 6. Which, inserted at line 4, produces the output true?

A. System.out.println(str.startsWith("W")); B. System.out.println(str.indexOf(1)); C. System.out.println(str.trim()); D. System.out.println(str.startsWith('W')); E. System.out.println(str.indexOf("W")); Correct Answer: A /Reference: QUESTION 61 Which two are provided by the JNDI API? (Choose two.) A. an application-level interface used by the application components to access naming services B. a framework for handling data in different MIME types, originating in different formats and locations C. a service-provider interface to attach providers of directory services D. an interface to query directory services using SQL Correct Answer: AC /Reference: QUESTION 62 Click the Exhibit button. Which attribute CANNOT be accessed from a Mountain object? A. view B. name C. climb D. height Correct Answer: D

/Reference: QUESTION 63 Given: 1. public class Foo { 2. public static void main() { 3. System.out.println("Hello."); 4. 5. Which is true? A. The class Foo will run successfully when invoked with the command line: java Foo, but will produce no output. B. Compilation fails. C. An exception occurs at runtime when class Foo is invoked with the command line java Foo. D. The class Foo will run successfully when invoked with the command line java Foo, and will print "Hello." Correct Answer: C /Reference: QUESTION 64 Which three compile without error? (Choose three.) A. String str = 'Hello'; B. String str = "Hello"; C. String str = "Hello" - " World!"; D. String str = new String("Hello"); E. String str = "Hello" + " World!"; F. String str = new String('Hello'); Correct Answer: BDE /Reference:

QUESTION 65 Given: 18. String s = " abcdcba "; 19. int x = 2; 20. s = s.trim(); 21. if (s.length() < 8) { 22. x = s.indexof('c', 3); 23. 24. System.out.println("x = " + x); What is the result? A. x = 5 B. x = 2 C. x = 3 D. x = 4 E. x = 6 Correct Answer: D /Reference: QUESTION 66 Which technology is used to develop components that interact with server-side objects in a webbased application? A. XML B. servlets C. HTML D. JavaScript Correct Answer: B /Reference:

QUESTION 67 Which is true? A. JSP developers must learn Java programming to create JavaServer Pages. B. JavaServer Pages are translated into servlets before they are executed. C. JSP technology output is never displayed to clients. D. JSP is defined as JavaScript Pages. Correct Answer: B /Reference: