What is the result?

public class MyClass {
public static void main(String[] args) { String s = ”’Java Duke"; int len = s . trim (). length () ;
What is the result?
A. Compilation fails
B. 11
C. 8
D. 9
E. 10

Download Printable PDF. VALID exam to help you PASS.

2 thoughts on “What is the result?

Leave a Reply

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

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