Which of the following is a valid statement?
A. String name("Doe");
B. String ("Doe");
C. String name = "Doe";
D. name = new String;
Answer:A
Which of the following is a valid statement?
A. String name("Doe"); B. String ("Doe"); C. String name = "Doe"; D. name = new String;