Well known data type String is also available on Java.
There are a lot of easy-to-use features on using String data type.
But its little bit complicated on actually using them.
Let me explain by some actual examples.
As you see on the 4th line, if you put the calculating expression in front of the string (which is covered in quotes) and it will automatically return the calculated value of the expression and merge those two strings.
The opposite seems to show the same output, but it doesn't.
See the 5th line and you will see. The following expression 3 + 4 isn't calculated.
Didn't know dem
Its always good to know new things ;)
There are a lot of easy-to-use features on using String data type.
But its little bit complicated on actually using them.
Let me explain by some actual examples.
As you see on the 4th line, if you put the calculating expression in front of the string (which is covered in quotes) and it will automatically return the calculated value of the expression and merge those two strings.
The opposite seems to show the same output, but it doesn't.
See the 5th line and you will see. The following expression 3 + 4 isn't calculated.
Its always good to know new things ;)