And now here within the print function we are directly printing the hello world string but I now suppose
if I wanted to find a string then what is a syntax to define a variable or some string value within
the main method.
So for that we have to use the keyword of the art space.
Let's say my string and then equal to let's say hello.
Void right now here inside the print method.
Simply because my string and then read the code.
So in the output we get.
Hello world.
Right.
So in case of Cartland we define any variables with this keyword of that.
Now suppose you want to make a let's say my numbered large C equal to 10 and now simply pass my number
here.
Now Voltaire would a value that you would do fine here that means there are that type of this variable.
Right.
So here this my number automatically becomes in your value now seminary that space my decimal value
equals to see one point zero.
So this my decimal variable simply becomes a floating point value.
But I now suppose as for example you want to define variable space.
Let's see my string.
And now suppose you don't want to initialize your string variable here.
So for that you can do.
You can simply declare the type of this variable.
By simply using the semi-colon and use the key word of string right.
And now later on you can simply define the value of this my string.
Very well my string equal to legacy.
Hello world.
So in this way in just one statement you do find that this is a variable.
All of that type of string.
And later on you decided to initialize it with this value of Hello World.
Now here this string is actually mutable in nature that is at any point of time we can simply mortify
this very well.
Let's see my string equal to an adder and void but I.
So now this value of this variable has been changed from this hello world to another way.
Now suppose you want to fix the value of this variable as.
Hello world only.
So that later on.
Nobody can change this value.
So for that purpose party will do.
You will simply use the keyword of the value.
Let's see my the string and then simply use it to define the value.
Let's see.
My constant string right now later on.
If you trying to modify this my add a string to Lerche save some other value.
Hello.
Then the intellisense will simply show some error.
This might add another ISDE or cannot be reassigned to some other string value.
Because here we are using the V.L. keyword.
So my end of the string cannot be mortified at any at that point right.
So here we can see this is our constant value and now here let us remove it.
So here I have simply mortified my comment that it is actually the immutable string.
And here it is actually the immutable string whose value can be changed later on here or there.
Right.