Which capability exists only in java.io.FileWriter?
Reveal answer details Close answer details
Correct answerD
Oracle · 1Z0-852
Preview real exam questions, verified answers and available explanations before choosing a study plan.
|
Single choice
Which capability exists only in java.io.FileWriter? Reveal answer details Close answer detailsCorrect answerD
Single choice
Given: 5. import java.util.Date; 21. DateFormat df Which code fragment, inserted at line 23, allows the code to compile? Reveal answer details Close answer detailsCorrect answerE
Single choice
Which can appropriately be thrown by a programmer using Java SE technology to create a desktop application? Reveal answer details Close answer detailsCorrect answerD
Multiple choice
Given: 11. public class PingPong implements Runnable { Which two statements are true? (Choose two.) Reveal answer details Close answer detailsCorrect answersC, D
Single choice
Given the following directory structure: ![]() And the following command line invocation: javac -d classes source/Utils.java Assume the current directory is bigProject, what is the result? Reveal answer details Close answer detailsCorrect answerC
Single choice
Given: 11. public class Yikes { What is the result? Reveal answer details Close answer detailsCorrect answerA
Single choice
Given the following six method names: addListener How many of these method names follow JavaBean Listener naming rules? Reveal answer details Close answer detailsCorrect answerB
Single choice
Given: 23. Object [] myObjects = { What is the result? Reveal answer details Close answer detailsCorrect answerC
Drag & drop
DRAG DROP Place the Types in one of the Type columns, and the Relationships in the Relationship column, to define appropriate has-a and is-a relationships. ![]() Reveal answer details Close answer details![]()
Multiple choice
Given: 10. abstract class A { and: A x = new B(); C y = new C(); A z = new C(); What are four valid examples of polymorphic method calls? (Choose four.) Reveal answer details Close answer detailsCorrect answersA, B, D, F
Multiple choice
Given that: Gadget has-a Sprocket and Gadget has-a Spring and Gadget is-a Widget and Widget has-a Sprocket Which two code fragments represent these relationships? (Choose two.) Reveal answer details Close answer detailsCorrect answersA, C
Single choice
Given: 21. class Money { What is the result? Reveal answer details Close answer detailsCorrect answerE
Single choice
Given: 11. public class Barn { What is the result? Reveal answer details Close answer detailsCorrect answerD
Multiple choice
Given: 11. public class Commander { and the command line: java -Dprop.custom=gobstopper Commander Which two, placed on line 13, will produce the output gobstopper? (Choose two.) Reveal answer details Close answer detailsCorrect answersD, E
Single choice
Given: 1. public class Donkey2 { If class Donkey is invoked twice, the first time without assertions enabled, and the second timewith assertions enabled, what are the results? Reveal answer details Close answer detailsCorrect answerC |