Preview

Java Dumps

Satisfactory Essays
Open Document
Open Document
5526 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Java Dumps
310-065

Sun Certified Programmer for the Java 2 Platform.SE 6.0 Exam: 310-065
Edition: 3.0

© 2008 - 2009 Test Killer, LTD All Rights Reserved
1 http://www.testkiller.com http://www.troytec.com

310-065

QUESTION: 1 Given: 1. public class Threads2 implements Runnable { 2. 3. public void run() { 4. System.out.println("run."); 5. throw new RuntimeException("Problem"); 6. } 7. public static void main(String[] args) { 8. Thread t = new Thread(new Threads2()); 9. t.start(); 10. System.out.println("End of method."); 11. } 12. } Which two can be results? (Choose two.) A. java.lang.RuntimeException: Problem B. run. java.lang.RuntimeException: Problem C. End of method. java.lang.RuntimeException: Problem D. End of method. run. java.lang.RuntimeException: Problem E. run. java.lang.RuntimeException: Problem End of method.

Answer: D, E QUESTION: 2 Which two statements are true? (Choose two.) A. It is possible for more than two threads to deadlock at once. B. The JVM implementation guarantees that multiple threads cannot enter into a deadlocked state. C. Deadlocked threads release once their sleep() method 's sleep duration has expired. D. Deadlocking can occur only when the wait(), notify(), and notifyAll() methods are used incorrectly. E. It is possible for a single-threaded application to deadlock if synchronized blocks are used incorrectly. F. If a piece of code is capable of deadlocking, you cannot eliminate the possibility of deadlocking by inserting invocations of Thread.yield().

2

http://www.testkiller.com http://www.troytec.com

310-065

Answer: A, F QUESTION: 3 Given: 7. void waitForSignal() { 8. Object obj = new Object(); 9. synchronized (Thread.currentThread()) { 10. obj.wait(); 11. obj.notify(); 12. } 13. } Which statement is true? A. This code can throw an InterruptedException. B. This code can throw an IllegalMonitorStateException. C. This code can throw a TimeoutException after ten minutes. D. Reversing the order of obj.wait() and

You May Also Find These Documents Helpful

  • Powerful Essays

    13. Which one of the following OSPF neighbor states is the expected state after completion of the…

    • 901 Words
    • 3 Pages
    Powerful Essays
  • Satisfactory Essays

    PT1420 U8 Homework

    • 431 Words
    • 4 Pages

    6. a loop that never hits a max value or that never turns true is infinite…

    • 431 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    6. In regard to your answer to part a, approximate how much faster (in seconds or milliseconds) of a response time the better scenario has. 0.5 sec…

    • 765 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    B. Write Code inside the main method and test it by compiling (F9) and running (Shift + F6) your code.…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Satisfactory Essays

    BUS311 CASE Study 1

    • 336 Words
    • 1 Page

    Read the Hypothetical Case Problem #1 at the end of Chapter 1 and respond to these questions:…

    • 336 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Fin 534 Quiz 3

    • 2029 Words
    • 9 Pages

    Which of the following statements regarding a 15-year (180-month) $125,000, fixed-rate mortgage is CORRECT? (Ignore taxes and transactions costs.)…

    • 2029 Words
    • 9 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Practice Quiz

    • 5122 Words
    • 42 Pages

    False 2. None of these v t 6. 3. This may happen in a few cases, but it is very rare. 4.…

    • 5122 Words
    • 42 Pages
    Satisfactory Essays
  • Satisfactory Essays

    PHI 201 Week 6 Quiz 1

    • 755 Words
    • 7 Pages

    Which one of the following hypothetical syllogisms is invalid? Use the section on "hypothetical syllogisms" in the textbook to analyze these…

    • 755 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    Unit 5 PT1420

    • 959 Words
    • 7 Pages

    2. You need to test a condition and then execute one set of statements if the condition is true. If the condition is false, you need to execute a different set of statements. What structure will you use?…

    • 959 Words
    • 7 Pages
    Good Essays
  • Good Essays

    6) When an experiment is repeated and the new results are different from the original results, what could you assume to be true? A) The first set of results MUST be incorrect and thrown out. B) The second set of results MUST be…

    • 650 Words
    • 3 Pages
    Good Essays
  • Good Essays

    One disadvantage of being a sole proprietor is that you have to pay corporate taxes, even though you don’t realize the benefits of being a corporation.…

    • 1185 Words
    • 5 Pages
    Good Essays
  • Good Essays

    Fluids

    • 2539 Words
    • 11 Pages

    1. Identify each of the following statements as either true or false. If false, explain why.…

    • 2539 Words
    • 11 Pages
    Good Essays
  • Better Essays

    Outline The Problem Of Evil

    • 2599 Words
    • 11 Pages

    a) EXPLAIN THESE TWO STATEMENTS AND SHOW WHY THEY ARE SAID TO BE CONTRADICTORY (20)…

    • 2599 Words
    • 11 Pages
    Better Essays
  • Satisfactory Essays

    Core Java Vol Ii 8th Ed.

    • 21466 Words
    • 86 Pages

    Core Java Volume II-Advanced Features, Eighth Edition - Graphically Rich Book ....................... 1 Table of Contents ................................................................................................................................................................................. 2 Copyright ..................................................................................................................................................................................................... 5 Preface .......................................................................................................................................................................................................... 7 Acknowledgments ............................................................................................................................................................................. 10 Chapter 1. Streams and Files .................................................................................................................................................. 11 Streams ................................................................................................................................................................................................ 22 Text Input and Output .................................................................................................................................................................... 33 Reading and Writing Binary Data ............................................................................................................................................. 43 ZIP Archives ....................................................................................................................................................................................... 51 Object Streams and Serialization…

    • 21466 Words
    • 86 Pages
    Satisfactory Essays
  • Satisfactory Essays

    java

    • 258 Words
    • 2 Pages

    Standard Ed. 7 Prev ClassNext ClassFramesNo FramesAll ClassesSummary: Nested | Field | Constr | MethodDetail: Field | Constr | Method…

    • 258 Words
    • 2 Pages
    Satisfactory Essays