1.

What is the difference between ‘x’ and “x”?

Answer»

‘x’ indicates that this value is a single character and can be stored by a variable having the data type as char. Whereas, “x” indicates that even though it’s a single character, but it is going to be stored in the variable having data type as String.



Discussion

No Comment Found

Related InterviewSolutions