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 181:
A Java programmer wants to develop a small application to run on mobile phones. Which Java edition (or editions) are required to develop the application?
A. only J2ME B. J2SE and J2EE C. only J2EE D. J2SE and J2ME E. only J2SE F. J2EE and J2ME
D. J2SE and J2ME
Question 182:
Which two are true about HTML? (Choose two.)
A. HTML can set up hypertext links between documents. B. HTML uses tags to structure text into headings, paragraphs, and lists. C. HTML is an object-oriented programming language. D. HTML documents CANNOT be browsed by a text editor.
A. HTML can set up hypertext links between documents. B. HTML uses tags to structure text into headings, paragraphs, and lists.
Question 183:
Which two are valid? (Choose two.)
A. class EnumTest {public static void main(String args[]) {enum Num { ONE, TWO, THREE, FOUR } System.out.println(Num.ONE);} 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. 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);} D. enum Suit { CLUBS, DIAMONDS, HEARTS, SPADES }class EnumTest {public static void main(String args[]) {System.out.println(Suit.CLUBS);}
Question 184:
Which is NOT associated with the web tier in a J2EE web-based application?
A. JavaMail B. HTML C. message-driven beans D. JNDI E. JavaBeans
C. message-driven beans
Question 185:
You need to create a class that maintains a customer's account balance. The class must allow both credits (deposits) and debits (withdrawals) to the account.
Which class correctly implements this functionality?
A. public class Account {double balance;public void debit(double amount) {amount = balance - amount;} public void credit(double amount) {amount = balance + amount;} B. public class Account {double balance;public void debit(double amount) {balance = balance - amount;} public void credit(double amount) {balance = balance + amount;} C. public class Account {double balance;balance = balance - amount;}public void credit(double amount) {double balance;balance = balance + amount;} D. public class Account {public void debit(double amount) {double balance;balance = balance - amount;} public void credit(double amount) {double balance;balance = balance + amount;} E. public class Account {double balance;public void debit() {double debit;balance = balance - debit;}public void credit() {double creditbalance = balance + credit;}
B. public class Account {double balance;public void debit(double amount) {balance = balance - amount;} public void credit(double amount) {balance = balance + amount;}
Question 186:
Which package contains classes to read from, and write to, files?
A. java.net B. javax.swing C. javax.file D. java.util E. java.io F. java.lang G. java.stream
E. java.io
Question 187:
Which object-oriented principle is supported by the use of Java packages?
A. encapsulation B. polymorphism C. inheritance D. dynamic typing
A. encapsulation
Question 188:
Which two are true about the java and javac commands? (Choose two.)
A. java -classpath lets you specify one or more directories to be used by the JVM to locate class files. B. java -version will print the version of the JVM. C. java -classpath will print the classpath used by the JVM. D. javac -version will print the OS version for the machine on which the JDK is installed. E. javac -D lets you specify the destination directory for the compiled class files.
A. java -classpath lets you specify one or more directories to be used by the JVM to locate class files. B. java -version will print the version of the JVM.
Question 189:
Which option for javac sets the destination directory for class files?
A. -classes B. -d C. -dest D. -classpath E. -output F. -directory
B. -d
Question 190:
Which type of J2EE component is used to store business data persistently?
A. stateless session beans B. JavaBeans C. stateful session beans D. entity beans E. JavaServer Pages
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.