what is the difference between 'p' and "p" in java
Answers
Answered by
10
'p' is a character literal
"p" is a string
"p" is a string
Answered by
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