Computer Science, asked by ranjitkumarmodi1223, 9 months ago

Which is a valid declarations of a string? String s1 = null; string s2 = 'null'; string s3 = (string) 'abc'; string s4 = (string) '\ufeed';?

Answers

Answered by alokpandey34001
0

Answer:

String s1 = null; string s2 = 'null'; string s3 = (string) 'abc'; string s4 = (string) '\ufeed';?.

Answered by amproc
0

Answer:

string s2 = 'null';

Explanation:

A string must be enclosed in single/double inverted comma.

Similar questions