AllExam Dumps

DUMPS, FREE DUMPS, VCP5 DUMPS| VMWARE DUMPS, VCP DUMPS, VCP4 DUMPS, VCAP DUMPS, VCDX DUMPS, CISCO DUMPS, CCNA, CCNA DUMPS, CCNP DUMPS, CCIE DUMPS, ITIL, EXIN DUMPS,


READ Free Dumps For Oracle- 1z0-803





Question ID 21931

Given the code fragment:
int a = 0;
a++;
System.out.println(a++);
System.out.println(a);
What is the result?

Option A

Explanation:
The first println prints variable a with value 1 and then increases the variable to 2.

Correct Answer A
Explanation


Question ID 21932

Given:
public class x{
public static void main (string [] args){
String theString = "Hello World";
System.out.println(theString.charAt(11));
}}
What is the result?

Option A

There is no output

Option B

d is output

Option C

A StringIndexOutOfBoundsException is thrown at runtime

Option D

An ArrayIndexOutOfBoundsException is thrown at runtime

Option E

A NullPointException is thrown at runtime

Option F

Correct Answer: C

Explanation:
There are only 11 characters in the string "Hello World". The code theString.charAt(11) retrieves the 12th
character, which does not exist. A StringIndexOutOfBoundsException is thrown. Exception in thread "main"
java.lang.StringIndexOutOfBoundsException: String index out of range:

Correct Answer F
Explanation

Send email to admin@getfreedumps for new dumps request!!!