This page was exported from New Real Practice Test With VCE And PDF For Free Download [ http://www.actualtest.info ] Export date:Fri Jan 24 8:31:44 2025 / +0000 GMT ___________________________________________________ Title: [Premium](100% Valid) Passleader New Oracle 1Z0-803 Exam Questions With 100 Percent Money Back (46-60) --------------------------------------------------- Info For 1Z0-803 Exam 100% Pass: PassLeader provides you with the newest 1Z0-803 169q exam questions updated in recent days to prepare your 1Z0-803 certification exams. Our best 1Z0-803 169q exam dumps will offer you the newest questions and answers with premium VCE and PDF format to download. And PassLeader also offer you the latest free version VCE Player! Vendor: OracleExam Code: 1Z0-803Exam Name: Java SE 7 Programmer I QUESTION 46Given the code fragment:String valid = "true";if (valid) System.out.println ("valid");else system.out.println ("not valid");What is the result? A.    ValidB.    not validC.    Compilation failsD.    An IllegalArgumentException is thrown at run time Answer: C QUESTION 47Given:public class ScopeTest {int z;public static void main(String[] args){ScopeTest myScope = new ScopeTest();int z = 6;System.out.println(z);myScope.doStuff();System.out.println(z);System.out.println(myScope.z);}void doStuff() {int z = 5;doStuff2();System.out.println(z);}void doStuff2() {z=4;}}What is the result? A.    6 5 6 4B.    6 5 5 4C.    6 5 6 6D.    6 5 6 5 Answer: A QUESTION 48Which two are valid instantiations and initializations of a multi dimensional array? A.    int [] [] array 2D ={ { 0, 1, 2, 4} {5, 6}};B.    int [] [] array2D = new int [2] [2];array2D[0] [0] = 1;array2D[0] [1] =2;array2D[1] [0] =3;array2D[1] [1] =4;C.    int [] [] []array3D = {{0, 1}, {2, 3}, {4, 5}};D.    int [] [] [] array3D = new int [2] [2] [2];array3D [0] [0] = array;array3D [0] [1] = array;array3D [1] [0] = array;array3D [0] [1] = array;E.    int [] [] array2D = {0, 1}; Answer: BD QUESTION 49An unchecked exception occurs in a method dosomething(). Should other code be added in the dosomething() method for it to compile and execute? A.    The Exception must be caughtB.    The Exception must be declared to be thrown.C.    The Exception must be caught or declared to be thrown.D.    No other code needs to be added. Answer: C QUESTION 50Given the code fragment:int b = 4;b -- ;System.out.println (-- b);System.out.println(b);What is the result? A.    2 2B.    1 2C.    3 2D.    3 3 Answer: A QUESTION 51Given the code fragment:interface SampleClosable {public void close () throws java.io.IOException;}Which three implementations are valid? A.    public class Test implements SampleCloseable {Public void close () throws java.io.IOException { / /do something}}B.    public class Test implements SampleCloseable {Public void close () throws Exception { / / do something}}C.    public class Test implements SampleCloseable {public void close() throws java.io.FileNotFoundException { / / do something}}D.    public classTest extends SampleCloseable {Public voidclose ()throws java.IO.IOException{ / / do something}}E.      public class Test implements SampleCloseable {public void close() / / do something}} Answer: ACE QUESTION 52Given the following code:public class Simple { /* Line 1 */public float price; /* Line 2 */public static void main (String[] args) { /* Line 3 */Simple price = new Simple (); /* Line 4 */price = 4; /* Line 5 */} /* Line 6 */} /* Line 7 */What will make this code compile and run? A.    Change line 2 to the following:Publicint priceB.    Change line 4 to the following:int price = new simple ();C.    Change line 4 to the following:Floatprice = new simple ();D.    Change line 5 to the following:Price = 4f;E.    Change line 5 to the following:price.price = 4;F.    Change line 5 to the following:Price= (float) 4:G.    Change line 5 to the following:Price= (Simple) 4;H.    The code compiles and runs properly; no changes are necessary Answer: E http://www.passleader.com/1z0-803.html QUESTION 53Given:public class DoWhile {public static void main (String [] args) {int ii = 2;do {System.out.println (ii);} while (--ii);}}What is the result? A.    21B.    210C.    nullD.    an infinite loopE.    compilation fails Answer: E QUESTION 54You are writing a method that is declared not to return a value. Which two are permitted in the method body? A.    omission of the return statementB.    return null;C.    return void;D.    return; Answer: AD QUESTION 55Identify two benefits of using ArrayList over array in software development. A.    reduces memory footprintB.    implements the Collection APIC.    is multi.thread safeD.    dynamically resizes based on the number of elements in the list Answer: AD QUESTION 56Which three are valid types for switch? A.    intB.    floatC.    doubleD.    integerE.    StringF.    Float Answer: ADE QUESTION 57Give:public class MyFive {static void main(String[] args) {short ii;short jj = 0;for (ii = kk;ii > 6; ii -= 1) { // line x //jj++;}System.out.println("jj = " + jj);}}What value should replace KK in line x to cause jj = 5 to be output? A.    -1B.    1C.    5D.    8E.    11 Answer: E QUESTION 58Given the following code fragment:if (value >= 0) {if (value != 0)System.out.print("the ");elseSystem.out.print("quick ");if (value < 10)System.out.print("brown ");if (value > 30)System.out.print("fox ");else if (value < 50)System.out.print("jumps ");else if (value < 10)System.out.print("over ");elseSystem.out.print("the ");if (value > 10)System.out.print("lazy ");} else {System.out.print("dog ");}System.out.print("... ");}What is the result if the integer value is 33? A.    The fox jump lazy...B.    The fox lazy...C.    Quick fox over lazy ...D.    Quick fox the .... Answer: B QUESTION 59Given the code fragment:Int [] [] array = {{0}, {0, 1}, {0, 2, 4}, {0, 3, 6, 9}, {0, 4, 8, 12, 16}};Systemout.printIn(array [4] [1]);System.out.printIn (array) [1][4]);int [] [] array = {{0}, {0, 1}, {0, 2, 4}, {0, 3, 6, 9}, {0, 4, 8, 12, 16}};System.out.println(array [4][1]);System.out.println(array) [1][4]);What is the result? A.    4 NullB.    Null 4C.    An IllegalArgumentException is thrown at run timeD.    4 An ArrayIndexOutOfBoundException is thrown at run time Answer: D QUESTION 60Given:public class DoCompare1 {public static void main(String[] args) {String[] table = {"aa", "bb", "cc"};for (String ss: table) {int ii = 0;while (ii < table.length) {System.out.println(ss + ", " + ii);ii++;}}How many times is 2 printed as a part of the output? A.    ZeroB.    OnceC.    TwiceD.    ThriceE.    Compilation fails. Answer: D http://www.passleader.com/1z0-803.html --------------------------------------------------- Images: http://www.itexamquiz.com/passleader/plimages/12cc8f589c45_B37B/PassLeader-1Z0-803-Braindumps18.jpg http://www.itexamquiz.com/passleader/plimages/12cc8f589c45_B37B/PassLeader-1Z0-803-Braindumps26.jpg http://www.itexamquiz.com/passleader/plimages/12cc8f589c45_B37B/PassLeader-1Z0-803-Braindumps9.jpg --------------------------------------------------- --------------------------------------------------- Post date: 2015-01-12 04:49:32 Post date GMT: 2015-01-12 04:49:32 Post modified date: 2015-01-12 04:49:32 Post modified date GMT: 2015-01-12 04:49:32 ____________________________________________________________________________________________ Export of Post and Page as text file has been powered by [ Universal Post Manager ] plugin from www.gconverters.com