Oracle 1Z0-850 Online Practice
Questions and Exam Preparation
1Z0-850 Exam Details
Exam Code
:1Z0-850
Exam Name
:Java SE 5 and 6, Certified Associate
Certification
:Oracle Certifications
Vendor
:Oracle
Total Questions
:242 Q&As
Last Updated
:Dec 07, 2021
Oracle 1Z0-850 Online Questions &
Answers
Question 71:
Given:
1.
interface Flyer {
2.
void takeOff();
3.
boolean land();
4.
}
5.
class Airplane implements Flyer {
6.
public void takeOff() { /* some code */ }
7.
// insert code here
8.
return true;
9.
}
10.
}
Which, inserted at line 8, correctly implements the interface?
A. boolean land(int i) { B. public void land() { C. protected boolean land() { D. public boolean land() { E. boolean land() {
D. public boolean land() {
Question 72:
Which two are characteristics of an RDBMS? (Choose two.)
A. Business-tier applications use session beans to represent rows in an RDBMS. B. Java technologies provide capabilities for connecting a legacy RDBMS to a web application. C. An RDBMS represents data using two-dimensional tables. D. J2EE provides a cross-platform RDBMS. E. An RDBMS represents data using three-dimensional tables.
B. Java technologies provide capabilities for connecting a legacy RDBMS to a web application. C. An RDBMS represents data using two-dimensional tables.
Question 73:
Given:
13.
class Stone {
14.
String color = "white";
15.
}
16.
17.
public class ManyStones {
18.
Stone[] stones = {new Stone(), new Stone(), new Stone()};
19.
}
Which is true?
A. Compilation fails. B. The class ManyStones has a color attribute. C. The class Stone has a relationship to a ManyStones object. D. The class ManyStones CANNOT have access to multiple class Stone objects. E. The class ManyStones has a relationship to three Stone objects.
E. The class ManyStones has a relationship to three Stone objects.
Question 74:
Which is true about RMI?
A. RMI is used to create thin web clients. B. RMI is used to develop applications for wireless mobile devices. C. RMI is the Java API used for executing queries on a database. D. RMI allows objects to be sent from one computer to another. E. RMI is the transport protocol used by web servers and browsers.
D. RMI allows objects to be sent from one computer to another.
Question 75:
Click the Exhibit button.
Which correctly implements the relationships shown in the diagram?
A. public class Y {private Z[] z1and2;public Y(Z[] z1and2) {if (z1and2 == null || z1and2.length != 2) {System.exit(1); // ERROR!}this.z1and2 = z1and2;}} B. public class Z {private Y[] y1and2;public Z(Y[] y1and2) {if (y1and2 == null || y1and2.length != 2) {System.exit(1); // ERROR!}this.y1and2 = y1and2;}} C. public class Z {private Y y1;private Y y2;public Z(Y y1) {if (y1 == null) System.exit(1); // ERROR!this.y1 = y1;}public Z(Y y1, Y y2) {this(y1);this.y2 = y2;}} D. public class Y {private Z z1;private Z z2;public Y(Z z1) {if (z1 == null) System.exit(1); // ERROR! this.z1 = z1;}public Y(Z z1, Z z2) {this(z1);this.z2 = z2;}}
D. public class Y {private Z z1;private Z z2;public Y(Z z1) {if (z1 == null) System.exit(1); // ERROR! this.z1 = z1;}public Y(Z z1, Z z2) {this(z1);this.z2 = z2;}}
Question 76:
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
B. complexity
Question 77:
Which four are primitive integer types in Java? (Choose four.)
A. float B. long C. byte D. double E. int F. short G. nibble
C. byte E. int F. short
Question 78:
Which two are true about HTML? (Choose two.)
A. HTML documents CANNOT be browsed by a text editor. B. HTML uses tags to structure text into headings, paragraphs, and lists. C. HTML can set up hypertext links between documents. D. HTML is an object-oriented programming language.
B. HTML uses tags to structure text into headings, paragraphs, and lists. C. HTML can set up hypertext links between documents.
Question 79:
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 private getName() and private getBreed() methods in the Dog class, and mark the name and breed instance variablesprivate. C. Provide public getName() and public 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()/setName() and public getBreed()/setBreed() methods in the Dog class, and mark the name and breedinstance variables private.
C. Provide public getName() and public getBreed() methods in the Dog class, and mark the name and breed instance variables private.
Question 80:
Which two are true about stateless session beans? (Choose two.)
A. They are used to represent data stored in an RDBMS. B. They implement the JMS API. C. They are used to implement business logic. D. They CANNOT hold client state.
C. They are used to implement business logic. D. They CANNOT hold client state.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Oracle exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your 1Z0-850 exam preparations
and Oracle certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.