Computer Science, asked by seemahendra100, 1 month ago

Find the errors and rectify it?
1. Char C=“a”;
2. String x = ‘computer’;​​

Answers

Answered by brijrajsingh
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