Answer:

String ant = "It was a dark and stormy night." 
    Correct.
String bat = new( "A shot rang out in the dark." ); 
    Wrong--new needs a constructor name.
int    cat = "123"; 
    Wrong--can't initialize an int to a String
double dog = 45.69; 
    Correct

End of the Chapter

You may wish to review the following. Click on a subject that interests you to go to where it was discussed.

The next chapter will discuss object references.

You have reached the end of the chapter.

go to previous page   go to home page