nerdexam
Oracle

1Z0-804 · Question #40

Given: What is the result?

The correct answer is B. John. The split() method is used to split a string into an array of substrings, and returns the new array. regex: - followed by two characters

String Processing

Question

Given:

What is the result?

Exhibit

1Z0-804 question #40 exhibit

Options

  • AJohn-.-George-.-Paul-.-Ringo
  • BJohn
  • CJohn -
  • DAn exception is thrown at runtime
  • ECompilation fails

How the community answered

(42 responses)
  • A
    2% (1)
  • B
    83% (35)
  • C
    10% (4)
  • D
    5% (2)

Explanation

The split() method is used to split a string into an array of substrings, and returns the new array. regex: - followed by two characters

Topics

#String.split#limit parameter#delimiter#regex

Community Discussion

No community discussion yet for this question.

Full 1Z0-804 Practice