1 00:00:03,040 --> 00:00:09,640 And now here within the print function we are directly printing the hello world string but I now suppose 2 00:00:09,730 --> 00:00:16,060 if I wanted to find a string then what is a syntax to define a variable or some string value within 3 00:00:16,060 --> 00:00:17,140 the main method. 4 00:00:17,170 --> 00:00:21,400 So for that we have to use the keyword of the art space. 5 00:00:21,640 --> 00:00:27,270 Let's say my string and then equal to let's say hello. 6 00:00:27,430 --> 00:00:32,240 Void right now here inside the print method. 7 00:00:32,240 --> 00:00:36,850 Simply because my string and then read the code. 8 00:00:36,880 --> 00:00:38,570 So in the output we get. 9 00:00:38,640 --> 00:00:39,300 Hello world. 10 00:00:39,400 --> 00:00:40,160 Right. 11 00:00:40,270 --> 00:00:45,220 So in case of Cartland we define any variables with this keyword of that. 12 00:00:45,220 --> 00:00:54,700 Now suppose you want to make a let's say my numbered large C equal to 10 and now simply pass my number 13 00:00:54,820 --> 00:00:55,460 here. 14 00:00:55,720 --> 00:01:01,260 Now Voltaire would a value that you would do fine here that means there are that type of this variable. 15 00:01:01,270 --> 00:01:01,840 Right. 16 00:01:01,840 --> 00:01:10,750 So here this my number automatically becomes in your value now seminary that space my decimal value 17 00:01:11,110 --> 00:01:13,530 equals to see one point zero. 18 00:01:13,540 --> 00:01:18,310 So this my decimal variable simply becomes a floating point value. 19 00:01:18,400 --> 00:01:23,330 But I now suppose as for example you want to define variable space. 20 00:01:23,380 --> 00:01:25,510 Let's see my string. 21 00:01:25,510 --> 00:01:29,680 And now suppose you don't want to initialize your string variable here. 22 00:01:29,830 --> 00:01:31,470 So for that you can do. 23 00:01:31,600 --> 00:01:34,560 You can simply declare the type of this variable. 24 00:01:34,560 --> 00:01:39,320 By simply using the semi-colon and use the key word of string right. 25 00:01:39,460 --> 00:01:43,810 And now later on you can simply define the value of this my string. 26 00:01:43,810 --> 00:01:46,900 Very well my string equal to legacy. 27 00:01:47,020 --> 00:01:48,030 Hello world. 28 00:01:48,040 --> 00:01:52,810 So in this way in just one statement you do find that this is a variable. 29 00:01:52,810 --> 00:01:54,410 All of that type of string. 30 00:01:54,460 --> 00:01:59,140 And later on you decided to initialize it with this value of Hello World. 31 00:01:59,140 --> 00:02:05,720 Now here this string is actually mutable in nature that is at any point of time we can simply mortify 32 00:02:05,720 --> 00:02:06,690 this very well. 33 00:02:06,700 --> 00:02:10,790 Let's see my string equal to an adder and void but I. 34 00:02:10,860 --> 00:02:15,510 So now this value of this variable has been changed from this hello world to another way. 35 00:02:15,670 --> 00:02:19,390 Now suppose you want to fix the value of this variable as. 36 00:02:19,420 --> 00:02:20,540 Hello world only. 37 00:02:20,620 --> 00:02:21,640 So that later on. 38 00:02:21,640 --> 00:02:23,700 Nobody can change this value. 39 00:02:23,830 --> 00:02:25,750 So for that purpose party will do. 40 00:02:25,750 --> 00:02:28,770 You will simply use the keyword of the value. 41 00:02:28,870 --> 00:02:34,690 Let's see my the string and then simply use it to define the value. 42 00:02:34,690 --> 00:02:35,360 Let's see. 43 00:02:35,530 --> 00:02:38,700 My constant string right now later on. 44 00:02:38,710 --> 00:02:43,760 If you trying to modify this my add a string to Lerche save some other value. 45 00:02:44,020 --> 00:02:44,580 Hello. 46 00:02:44,770 --> 00:02:48,050 Then the intellisense will simply show some error. 47 00:02:48,190 --> 00:02:52,620 This might add another ISDE or cannot be reassigned to some other string value. 48 00:02:52,750 --> 00:02:55,520 Because here we are using the V.L. keyword. 49 00:02:55,600 --> 00:03:00,300 So my end of the string cannot be mortified at any at that point right. 50 00:03:00,460 --> 00:03:07,450 So here we can see this is our constant value and now here let us remove it. 51 00:03:07,660 --> 00:03:12,220 So here I have simply mortified my comment that it is actually the immutable string. 52 00:03:12,370 --> 00:03:18,920 And here it is actually the immutable string whose value can be changed later on here or there. 53 00:03:19,060 --> 00:03:19,380 Right.