What output is produced by the following code? String first = James; String last = Kirk; String

Question:

What output is produced by the following code?

String first = "James";

String last = "Kirk";

String middle = "T.";

System.out.println(last);

System.out.println("My name is " + first);

System.out.println(first + " " + last);

System.out.println(last + ", " + first + " " + middle);

System.out.println(middle + " is for Tiberius");

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: