What will be displayed as a result of executing the following code?

```
int x = 6;
String msg = "I am enjoying this class.";
String msg1 = msg.toUpperCase();
String msg2 = msg.toLowerCase();
char ltr = msg.charAt(x);
int strSize = msg.length();
System.out.println(msg);
System.out.println(msg1);
System.out.println(msg2);
System.out.println("Character at index x = " + ltr);
System.out.println("msg has " + strSize + "characters.");
```

a. I am enjoying this class.
I AM ENJOYING THIS CLASS.
i am enjoying this class.
Character at index x = e
msg has 24 characters.

b. I am enjoying this class.
I AM ENJOYING THIS CLASS.
i am enjoying this class.
Character at index x = e
msg has 25 characters.

c. I am enjoying this class.
I AM ENJOYING THIS CLASS.
i am enjoying this class.
Character at index x = n
msg has 24 characters.

d. I am enjoying this class.
I AM ENJOYING THIS CLASS.
i am enjoying this class.
Character at index x = n
msg has 25characters.


d. I am enjoying this class.
I AM ENJOYING THIS CLASS.
i am enjoying this class.
Character at index x = n
msg has 25characters.

Computer Science & Information Technology

You might also like to view...

You can apply artistic effects to a picture used as a slide's background.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You want to test an application upgrade on a server that is running as a guest OS in Hyper-V. You want an exact duplicate of the server so you can test the upgrade without affecting the production server. What should you do?

A. dynamically provision B. revert a snapshot C. live migrate D. create a clone

Computer Science & Information Technology

Which of the following is not true about de facto standards?

a. They never evolve into de jure standards. b. They are those standards that emerge in the marketplace. c. They tend not to be developed by an official industry or government body. d. They are generally supported by more than one vendor but de facto standards have no official standing. e. They tend to emerge based upon the needs/response of the marketplace.

Computer Science & Information Technology

Select the command below that can be used to provide a long listing for each file in a directory:

A. ls -T B. ls -L C. ls -F D. ls -l

Computer Science & Information Technology