1Z0-850 | A Review Of High value 1Z0-850 exam dumps


Q1. - (Topic 2) 

Which object-oriented principle is supported by the use of Java packages? 

A. encapsulation 

B. polymorphism 

C. inheritance 

D. dynamic typing 

Answer:

Q2. - (Topic 2) 

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. 

Answer: B,D 

Q3. - (Topic 1) 

Given: 

3.

 int calc() { 

4.

 long x = 40L; 

5.

 int i = 30; 

6.

 i = x; 

7.

 System.out.println("result is: " + i); 

8.

 } 

What is the result of calling calc()? 

A. Compilation fails because of an error at line 6. 

B. Compilation fails because of an error at line 4. 

C. result is: 40 

D. result is: 30 

Answer:

Q4. - (Topic 1) 

What keyword is used to create an enumeration? 

A. ENUM 

B. const 

C. enumeration 

D. There is no keyword for creating enumerations. The Enum class must be used instead. 

E. enum 

Answer:

Q5. - (Topic 1) 

Which two are true? (Choose two.) 

A. A single import statement can be used to simplify access to several packages in the Java API. 

B. A single import statement can be used to simplify access to several classes in the Java API. 

C. An import statement is associated with only one class in a source file. 

D. A source file can have from zero to many import statements. 

E. If a source file has one import statement, it must be preceded by a package statement. 

Answer: B,D 

Q6. - (Topic 1) 

Which two are associated with the business tier in a J2EE web-based application? (Choose two.) 

A. stateless session beans 

B. servlets 

C. JSP 

D. HTML 

E. entity beans 

Answer: A,E 

Q7. - (Topic 2) 

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. 

Answer:

Q8. - (Topic 2) 

Given: 

5.

 // insert code here 

6.

 public void eat(); 

7.

 } 

8. 

9.

 // insert code here 

10.

 public void eat() { 

11.

 System.out.println("eating dinner"); 

12.

 } 

13.

 } 

Which, inserted at lines 5 and 9, allows the file to compile? 

A. 5. class Animal { 

9. public class Tiger implements Animal { 

B. 5. interface Animal { 

9. public class Tiger implements Animal { 

C. 5. class Animal { 

9. public class Tiger subclasses Animal { 

D. 5. interface Animal { 

9. public class Tiger extends Animal { 

E. 5. class Animal { 

9. public class Tiger extends Animal { 

F. 5. interface Animal { 

9. public class Tiger subclasses Animal { 

Answer:

Q9. - (Topic 2) 

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 

Answer: A,C 

Q10. - (Topic 2) 

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 

Answer: