Political Science, asked by shny, 1 year ago

In java is there any difference between A and 'A'...... If there is plz answer


shny: sorry!! its computer

Answers

Answered by LonelyHeart
4
Hey friend ,
Here is your answer:

In Java there is difference between A and 'A'.
A is just a variable name given. It can be given to store values.
'A' is is a string constant. It has a specific char value. The char value of 'A' is 65.

Hope it helps u.

LonelyHeart: ^_^ hope u understood
Similar questions