Categories

Jun 16, 2019 in JAVA

Q: Difference between Character Constant and String Constant in java ?

Character constant is enclosed in single quotes. String constants are enclosed in double quotes. Character

constants are single digit or character. String Constants are collection of characters.

Ex :’2’, ‘A’

Ex : “Hello World”

1 Answer

Jun 17, 2019

Character constant is enclosed in single quotes. String constants are enclosed in double quotes. Character

constants are single digit or character. String Constants are collection of characters.

Ex :’2’, ‘A’

Ex : “Hello World”

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

Madanswer
Jun 16, 2019 in JAVA
Jun 16, 2019 in JAVA
Jun 17, 2019 in JAVA
...