Computer Science, asked by Yesthat, 1 year ago

what is the difference between 'p' and "p" in java

Answers

Answered by Rajdeep11111
10
'p' is a character literal
"p" is a string
Answered by 1234567890kute
10
'p' in java means that by putting single quotes it becomes a character constant and "p" means that by putting double quotes it becomes string constant.

Similar questions