1Z0-803 | What Validated 1Z0-803 exam dumps Is?


Q41. boolean log3 = ( 5.0 != 6.0) && ( 4 != 5); 

boolean log4 = (4 != 4) || (4 == 4); 

System.out.println("log3:"+ log3 + nlog4" + log4); 

What is the result? 

A. log3:false log4:true 

B. log3:true log4:true 

C. log3:true log4:false 

D. log3:false log4:false 

Answer:

Q42. Which two are Java Exception classes? 

A. SercurityException 

B. DuplicatePathException 

C. IllegalArgumentException 

D. TooManyArgumentsException 

Answer: AC 

Q43. An 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 caught 

B. 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:

Q44. Given the fragment: 

What is the result? 

A. 13480.0 

B. 13480.02 

C. Compilation fails 

D. An exception is thrown at runtime 

Answer:

Q45. Given the code fragment: 

What values of x, y, z will produce the following result? 

1 2 3 4 

1 2 3 4 

1 2 3 4 

1 2 3 4 

A. X = 4, Y = 3, Z = 2 

B. X = 3, Y = 2, Z = 3 

C. X = 2, Y = 3, Z = 3 

D. X = 4, Y = 2, Z = 3 

E. X = 2, Y = 3, Z = 4 

Answer:

Q46. Given: 

What is the result? 

A. Null 

B. Compilation fails 

C. An exception is thrown at runtime 

D. 0 

Answer:

Q47. Which code fragment is illegal? 

A. Option A 

B. Option B 

C. Option C 

D. Option D 

Answer:

Q48. Given: 

And the commands: 

Javac Test.java 

Java Test 12345 

What is the result? 

A. Number us : 12345 

B. A NullPointerException is thrown at runtime 

C. A NumberFormatException is thrown at runtime 

D. AnArrayIndexOutOfBoundException is thrown at runtime. 

Answer:

Q49. Given: 

A. Ym 

Xm2 

B. Ym 

Xm1 

C. Compilation fails 

D. A Class Cast Exception is thrown at runtime 

Answer:

Q50. Given: 

What is the result? 

A. The program prints nothing 

B. d 

C. A S StringIndexOutOfBoundsException is thrown at runtime. 

D. AnArrayIndexOutOfBoundsException is thrown at runtime. 

E. A NullPointerException is thrown at runtime. 

Answer: