Question: 15. Consider the following snippet of code. 5; String s double y 3; + y/2; Integer.parseInt (s); int z System.out.println (z); What is the outcome?

15. Consider the following snippet of code. "5"; String s double y 3; + y/2; Integer.parseInt (s); int z System.out.println (z); What is the outcome? A. Prints "53.0/2" B. Prints "25" C. Prints "26" D. Compile-time error Run-time error (ANSWER) E. 16. Which regular expression matches four or five-digit palindromes? Palindromes are sequences that are read the same way forward and backward, for example 1001 or 12321 A. \d{5} B. \d\d\d?\d\d C. \d\d\D\d\d D. (\d\d)?\1 E. (\d)(\d)\d?\2\1 (ANSWER)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
