What is the result?

Given:

What is the result?
A. A B C D
B. A C D
C. A B C C
D. A B D
E. A B D C

Download Printable PDF. VALID exam to help you PASS.

3 thoughts on “What is the result?

  1. public static void main(String[] args) {
    String ta=”A”;
    ta= ta.concat(“B”);
    String tb = “C”;
    ta=ta.concat(tb);
    ta.replace(“C”,”D”);//not change because without assigned to (ta = )
    ta=ta.concat(tb);
    System.out.println(ta);//ABCC
    }

Leave a Reply

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


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