Java Dumps

Satisfactory Essays
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

    Reseach Dump

    • 7483 Words
    • 30 Pages

    3.0. How to structure a business dissertation Title Page Dedication Acknowledgements Abstract: A summary of the dissertation Table of Contents Introduction: Introduces the study and summaries the state of area prior to the research. This section outlines the problem(s) to be investigated, the aims and objectives of the research and describes the methodologies used. Additionally, an outline of the overall dissertation structure may be included. Literature Review: This accounts the previously…

    • 7483 Words
    • 30 Pages
    Powerful Essays
  • Good Essays

    Garbage Dumps

    • 5540 Words
    • 23 Pages

    SCENARIO-GARBAGE DUMPS REGISTRATION ID:1002858 PROJECT SCENARIO:Garbage Dumps - One day they are all going to blow on our faces.. TEAM MEMBERS: S.HARINI V.ARUNA R.RANJITHA S.GAYATHRI PROJECT CO-ORDINATOR: Prof.D.Muthu(Department of civil engineering) E-MAIL ID:dmuthu@civil.sastra.edu TABLE OF CONTENTS: 1) Introduction 2) What Is Waste? 3) Garbage Dumps -A Major Global Issue 4) First…

    • 5540 Words
    • 23 Pages
    Good Essays
  • Satisfactory Essays

    Java

    • 1218 Words
    • 5 Pages

    without any errors. . Copyright Reserved. Mohd Fadzli Marhusin. 3 Computer Instruction : Cont’ You write a computer program using a high-level programming language, e.g. java. The java compiler and interpreter responsible to converting the code you write into form of on and off switches. When you execute a java program, the program is run within a contained environment…

    • 1218 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    Java

    • 827 Words
    • 4 Pages

    Java Problems SEQUENCE PROBLEMS: 1. Create a Java program that will print the sum of two integers. 2. Print the sum and product of three integers. 3. Print the perimeter and area of a rectangle. 4. Given the number of a baseball team’s wins and losses, compute its winning percentage. Assume that there are no ties. 5. Input the number of a team’s wins, losses, and ties, and print its winning percentage. Assume that a tie game counts as a full game played and a half-game won. 6. Given the…

    • 827 Words
    • 4 Pages
    Good Essays
  • Better Essays

    JAVA

    • 956 Words
    • 4 Pages

    called Java and eventually in 1994 after the failure of Interactive TV Java project team switched their focus to the web. On May 23rd 1995 the director of Sun Microsystems along with co-founder and executive vice president Netscape announced to the world about the Java. There is only 30 pepole team when java was started. Development of java has taken step by step process. There are many versions in Java like Versions 1.0 and 1.1 are the initial release of Java. Java 2 (Version 1.2), Kestrel (Java 1.3)…

    • 956 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Java

    • 34590 Words
    • 158 Pages

    Java 2 ™ FOR DUMmIES ‰ 2ND by Barry Burd EDITION Java 2 For Dummies, 2nd Edition Published by Wiley Publishing, Inc. 111 River Street Hoboken, NJ 07030-5774 Copyright © 2004 by Wiley Publishing, Inc., Indianapolis, Indiana Published by Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying…

    • 34590 Words
    • 158 Pages
    Good Essays
  • Good Essays

    bauxite dump for mining

    • 946 Words
    • 4 Pages

    bauxite dump for mining Bauxite Ore Mining Crushing Plant for Bauxite … Bauxite will come in free-flowing form, that makes it relatively simple to dig from the floor. Front end loaders fill the bauxite into 150 tonne bottom-dump vehicles ... Mining banned on Steve Irwin’s nature reserve, Cape … Nov 22, 2013 · Cape Alumina has suspended all work on its Pisolite Hills mine and port project in Queensland after the state government banned mining over the … BAUXITE J/V DUMPS…

    • 946 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Java

    • 5076 Words
    • 21 Pages

    Java Software Solutions: Foundations of Program Design, 6e (Lewis/Loftus) Chapter 1 Introduction Multiple-Choice Questions 1) A Java program is best classified as A) hardware B) software C) storage D) processor E) input Answer: B Explanation: B) Programs are classified as software to differentiate them from the mechanisms of the computer (hardware). Storage and the processor are two forms of hardware while input is the information that the program processes. 2) 6 bits can be…

    • 5076 Words
    • 21 Pages
    Good Essays
  • Satisfactory Essays

    Java

    • 473 Words
    • 2 Pages

    OOP2: Object Oriented Programming 2 (Java) Jocel L. Garrido,CCNA Object Oriented Programming 2 (Java) Instructor: Jocel L. Garrido Classes 3 Parts: -Class Name -Attributes -Functions or methods class Reading_Material public class Reading_Material { public class Reading_Material { private String Title, Publisher; private int date_published, current_page; public int get_page() { return current_page; } -Title -Publisher -date_published -current_page private String Title, Publisher;…

    • 473 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Java

    • 3153 Words
    • 13 Pages

    subject matter, subject landscape, or even world view. This transformation may be sudden or it may be protracted over a considerable period, with the transition to understanding proving troublesome ” (H.F. Meyer and R Land, 2006, p.3). An example in Java programming, the array is the accepted standard to store more than one variable, it is virtually practised universally. But the concept, when grasped, tends to be “ritual knowledge” (Perkins 1999). It doesn’t have to be understood, one just has…

    • 3153 Words
    • 13 Pages
    Powerful Essays