What is the result? 10/29/2018 – by Mod_GuideK 5 Given the code fragment: What is the result? A. An exception is thrown at runtime. B. -1 C. 5 D. 0 SHOW ANSWERSCorrect Answer: A Explanation/Reference: Download Printable PDF. VALID exam to help you PASS.
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 1 Reply
C
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
C:
# javac Test30.java
# java Test30
5
Answer is C
C