Find the errors and rectify it?
1. Char C=“a”;
2. String x = ‘computer’;
Answers
Answered by
0
Char c ='a';
String x ="computer";
Explanation:
if you're using the datatype char, then we use single quotes ('') and in a string datatype we use double quotes("")
Similar questions