Solved

What Is the Output of the Following Code Snippet? String

Question 29

Multiple Choice

What is the output of the following code snippet? String firstname = "William";
String lastname;
System.out.println("First: " + first) ;
System.out.println("Last: " + lastname) ;


A) First: William
Last:
B) First: William
Last: lastname
C) Code will not compile
D) Unpredictable output

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions