1. Engineering
  2. Computer Science
  3. write a single statement that creates a string reference variable...

Question: write a single statement that creates a string reference variable...

Question details

Write a single statement that creates a String reference variable s, creates a String object that contains the string "dog", and assigns s the reference to the object created.

**Java Language Programming

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution