What is the result?

Given the code fragment:

What is the result?
A. An exception is thrown at runtime.
B. -1
C. 5
D. 0

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “What is the result?

  1. I think there’s something like this on the exam, only instead it has an empty space before and after the actual text. Which would not be deleted by trim() unless its assigned to a variable

Leave a Reply

Your email address will not be published. Required fields are marked *

The reCAPTCHA verification period has expired. Please reload the page.