To declare a String variable named name
and set it equal to "Lillian" in Java, the correct syntax is:
String name = "Lillian";
So, the correct answer from your choices would be:
String name = "Lillian";
1 answer
To declare a String variable named name
and set it equal to "Lillian" in Java, the correct syntax is:
String name = "Lillian";
So, the correct answer from your choices would be:
String name = "Lillian";