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. …show more content…
public abstract class Circle extends Shape { private int radius; } C. public class Circle extends Shape { private int radius; public void draw(); } D. public abstract class Circle implements Shape { private int radius; public void draw(); } E. public class Circle extends Shape { private int radius; 5 http://www.testkiller.com http://www.troytec.com 310-065 public void draw() {/* code here */} F. public abstract class Circle implements Shape { private int radius; public void draw() { /* code here */ } Answer: B,E QUESTION: 8 Given: 11. public class Barn { 12. public static void main(String[] args) { 13. new Barn().go("hi", 1); 14. new Barn().go("hi", "world", 2); 15. } 16. public void go(String... y, int x) { 17. System.out.print(y[y.length - 1] + " "); 18. } 19. } What is the result? A. hi hi B. hi world C. world world D. Compilation fails. E. An exception is thrown at runtime. Answer: D QUESTION: 9 Given: 10. class Nav{ 11. public enum Direction { NORTH, SOUTH, EAST, WEST } 12. } 13. public class Sprite{ 14. // insert code here 15. } Which code, inserted at line 14, allows the Sprite class to compile? A. Direction d = NORTH; B. Nav.Direction d = NORTH; C. Direction d = Direction.NORTH; D. Nav.Direction d = Nav.Direction.NORTH; 6 http://www.testkiller.com http://www.troytec.com 310-065 Answer: D QUESTION: 10 Click the Exhibit button. Which statement is true about the classes and interfaces in the exhibit? A.
A 3. G 4. J 5. D 6. B 7.
8. Write a line of code that will declare the variable count to be of type int. Don’t initialize.
Given ABCD is a square and rhombus EFGH is inscribed in the square. We want to prove that EFGH will be a square.\\
In this homework assignment, you will be working through two crashing problems and four earned value problems. All the information you need is included within this Homework packet. Make sure you answer all parts of the questions in their entirety.
| |This Module 2: Lesson 4 Assignment is worth 15 marks. The value of each assignment and each question is stated in the left margin. |
5. ___G__ You go to a lecture and the topic seems to focus on blue-yellow and red-green perception of color. The lecture is likely discussing ______________.
c. This material had some parts that were difficult to read through. Throughout most of the book,
3. Are there any bases (Ns) that need to be edited? Yes: ___ No: __X__
11. A network engineer connects two PCs (PC1 and PC2) using Ethernet NICs and an Ethernet cable that has copper wires inside. The two PCs communicate successfully. Which of the following happens when PC1 sends bits to PC2? D)PC1 converts the bits to sound waves, and the NIC uses an A/D converter to send the data over the cable.
Please choose from one (1) of the scenarios below. Note: The scenario that you choose in this assignment will be the one (1) with which you continue for Assignment 2.
5. Model shapes in the world by building shapes from components (e.g., sticks and clay balls) and drawing shapes.
The subject of this book dealt with the idea of how this discrepancy between the reality of crime, the public’s perception, and government expenditures has come to pass. Also what are its consequences for the quality of life in the United States? The misperception between what the public believes and what politicians tell us was created because politicians search for publicly approved issues, local law enforcement agencies support the uniform crime report (UCR) findings, the media is always looking for sensational news. “ the police and the FBI are joined by the media in the never-ending search for sensational topics that will titillate and exacerbate the fears and anxieties of the viewing public and, not coincidentally, increase the number
B. Matching type. Match concepts in column left with the best answers in column right. Write letters only.
In most Shakespearian tragedies, the hero possesses a character trait which under normal circumstances would be a virtue, but which under the special circumstances of the play proves to be a fatal flaw. Macbeth consists of several situations where the hero portrays many such qualities that drive him to commit wrong actions. Macbeth’s desires convinced him to ignore the impact of his actions. In addition, his doubtfulness controlled his consciousness and finally his blindness affected his aptitude to seek reality. An analysis of Macbeth’s actions and behaviour reveals that Macbeth should be justified as a tragic hero validating the belief that he possesses several fatal flaws which eventually resulted in his downfall.
The following questions