1 00:00:00,990 --> 00:00:05,890 Hi this is sharing so hard and welcome to the next video of the Scotland programming series. 2 00:00:05,970 --> 00:00:10,910 Now in the previous video we just had our first application up and running. 3 00:00:11,010 --> 00:00:16,050 Now in this video let's check out how does the Helliwell program in Codlin verdicts. 4 00:00:16,060 --> 00:00:22,140 Now the main motto of this video is to tell you that in Cartland we don't require the usage of Flast 5 00:00:22,200 --> 00:00:25,620 explicitly to make our application run. 6 00:00:25,650 --> 00:00:32,610 Now what do you mean by this is let's just compare the hello world called with the Java code. 7 00:00:32,640 --> 00:00:40,380 So here I have some Java code public plus some name inside which I have public static void main method 8 00:00:40,830 --> 00:00:44,240 inside which I have the print statement of hello world. 9 00:00:44,250 --> 00:00:44,720 Right. 10 00:00:44,880 --> 00:00:46,320 We all are aware of this. 11 00:00:46,320 --> 00:00:50,410 Now if you are not from Java don't then please don't worry about it. 12 00:00:50,420 --> 00:00:56,910 This course is designed in such a way that even the non Java programmer can also watch the Codlin programming 13 00:00:56,910 --> 00:00:57,890 series. 14 00:00:57,900 --> 00:01:05,280 I am just citing such example so that things will be more clear now in order to bring the hello world. 15 00:01:05,280 --> 00:01:12,660 We need to put that inside their double gold first and then use the print function as we all are aware 16 00:01:12,660 --> 00:01:13,490 of this. 17 00:01:13,530 --> 00:01:18,630 Now in case of Codlin we just need to use the main method right. 18 00:01:18,900 --> 00:01:26,310 Such as if you in space mean energy is empty of string and back open and backward close. 19 00:01:26,340 --> 00:01:28,300 So here in the output we get. 20 00:01:28,350 --> 00:01:29,070 Hello world. 21 00:01:29,070 --> 00:01:35,910 Right now in case of Cartland we don't have any class defined at all like we have defined the class 22 00:01:35,940 --> 00:01:36,770 here. 23 00:01:36,780 --> 00:01:41,550 If it is so then Vivier so much concerned with the class definition. 24 00:01:41,550 --> 00:01:42,690 So let's check it out. 25 00:01:42,810 --> 00:01:47,910 Now in order to execute any Java code it simply means the class fails. 26 00:01:47,940 --> 00:01:52,270 That is the Java virtual machine simply defines the class files. 27 00:01:52,350 --> 00:01:58,200 Right now in case of Cartland the Codlin also needs the Java virtual machine in the runtime. 28 00:01:58,350 --> 00:01:59,700 Similar to Java. 29 00:01:59,970 --> 00:02:07,050 To execute it's called right because Gorlin is more advanced form of Java or the more powerful version 30 00:02:07,050 --> 00:02:07,980 of Java. 31 00:02:08,220 --> 00:02:12,890 And it also needs Java virtual machine in runtime forward scored execution. 32 00:02:12,930 --> 00:02:17,330 Now as we all know the main function was not enclosed within that class. 33 00:02:17,340 --> 00:02:24,810 Right now the question arises does Cartland create a class internally during the runtime. 34 00:02:24,810 --> 00:02:27,230 The answer to this is yes. 35 00:02:27,320 --> 00:02:34,200 While the Cartland called our Exec did the Cartland compiler simply creates a class file which is loaded 36 00:02:34,200 --> 00:02:38,360 into the memory for the code execution in the runtime. 37 00:02:38,370 --> 00:02:44,390 So the Cartland in the runtime behaves similar to a java file in case of Java as well. 38 00:02:44,430 --> 00:02:51,450 That darned java file extension is simply converted to the bytecode present inside that door class extension. 39 00:02:51,450 --> 00:02:57,600 Now similarly the Codlin file as well are actually converted to the class files with the help of this 40 00:02:57,810 --> 00:03:04,670 Gorlin compiler so that it will be further executed with the help of the Java virtual machine in the 41 00:03:04,680 --> 00:03:05,420 runtime. 42 00:03:05,430 --> 00:03:12,190 Right now let us move back to the intelligent ID and let us check out how that Scotland compiler creates 43 00:03:12,190 --> 00:03:19,340 that class file and now this time I'm simply going to open my current project that I have saved in the 44 00:03:19,340 --> 00:03:21,680 previous video in our store. 45 00:03:21,890 --> 00:03:28,520 Now to open any existing project you just need to click on open right and also you can do the import 46 00:03:28,580 --> 00:03:29,260 project. 47 00:03:29,300 --> 00:03:35,510 If you have made your project in some other PC or laptop and then you want to import that project inside 48 00:03:35,510 --> 00:03:37,600 your current laptop or PC. 49 00:03:37,670 --> 00:03:42,550 But since I have created this project inside my own PC so let us open it. 50 00:03:44,110 --> 00:03:50,110 And then simply navigate to the next stop Gartin programming and simply open it. 51 00:03:50,120 --> 00:03:51,380 So here is some tape. 52 00:03:51,440 --> 00:03:52,470 There are explosive. 53 00:03:52,880 --> 00:03:57,230 And now make sure you are working under the project level hierarchy. 54 00:03:57,230 --> 00:04:01,040 This view right now is simply expand your project here. 55 00:04:01,070 --> 00:04:07,340 You will find a source folder within which I have my first file dark gayety within which we build our 56 00:04:07,400 --> 00:04:15,260 Hello World program right now whenever we execute our code by using this I can click on this icon and 57 00:04:15,260 --> 00:04:18,690 then here you will find my first file. 58 00:04:19,160 --> 00:04:26,090 Now Vardis file means that during the compile time that Gorlin compiler simply converts our dark guilty 59 00:04:26,090 --> 00:04:30,520 file into this file such as my first file. 60 00:04:30,680 --> 00:04:38,020 Which is actually the class but I search simply converts out of the extension file into a file which 61 00:04:38,020 --> 00:04:41,350 is understandable by the Java virtual machine. 62 00:04:42,430 --> 00:04:49,650 So if I click on brenne then it will simply execute are called and you will get the output in the output 63 00:04:49,650 --> 00:04:50,630 console. 64 00:04:50,670 --> 00:04:54,950 Now this output you can find it inside the runtime. 65 00:04:55,140 --> 00:05:01,710 So here this red menu simply click on it and here you will find all the output that we will get in our 66 00:05:01,770 --> 00:05:03,770 upcoming videos as well. 67 00:05:03,810 --> 00:05:08,030 And now let me show you something extra inside the outfielder. 68 00:05:08,190 --> 00:05:12,750 You will find if you expanded my first file Kaytee dark glass. 69 00:05:12,780 --> 00:05:17,830 Now this is the class file that I am talking about which is actually auto generated. 70 00:05:17,970 --> 00:05:19,940 So I have not created this file. 71 00:05:19,980 --> 00:05:22,620 It has been generated automatically. 72 00:05:22,620 --> 00:05:26,850 So you don't have to deal with this dark glass file extension. 73 00:05:26,880 --> 00:05:30,040 Now if you open it then you will find some code here. 74 00:05:30,480 --> 00:05:37,040 And here you will find it shows it is actually the compiled code and it is actually autogen Richard. 75 00:05:37,140 --> 00:05:40,130 So please don't open this file and deal with it. 76 00:05:40,410 --> 00:05:42,720 And now to an hour Hellawell program. 77 00:05:42,810 --> 00:05:47,990 You can also do one thing you can simply click on brenne at the top. 78 00:05:48,180 --> 00:05:50,320 And here you will find this at an option. 79 00:05:50,340 --> 00:05:55,390 My first file security as you can also find this red button here. 80 00:05:55,530 --> 00:05:59,540 But make sure here you have to select this my first file. 81 00:05:59,690 --> 00:06:00,310 Right. 82 00:06:00,330 --> 00:06:02,300 Which is other then configuration. 83 00:06:02,340 --> 00:06:03,540 So simply run it. 84 00:06:03,630 --> 00:06:05,580 And let's see what happens. 85 00:06:05,580 --> 00:06:08,460 So here again we get hello world in the output. 86 00:06:08,550 --> 00:06:10,850 And now you must be thinking in Java. 87 00:06:10,890 --> 00:06:14,700 We used to date public static void main method. 88 00:06:14,730 --> 00:06:22,410 Now what about the static part in Codlin we don't have any static functions or methods so in Scotland 89 00:06:22,560 --> 00:06:29,880 we don't have any static concept that is this main method is actually by default playing the role of 90 00:06:29,940 --> 00:06:31,480 static function. 91 00:06:31,890 --> 00:06:35,400 And now let's just play around with the hello world application. 92 00:06:35,430 --> 00:06:39,050 So here let us try the print function and downside. 93 00:06:39,060 --> 00:06:41,330 Let us use one more intimate. 94 00:06:41,730 --> 00:06:42,720 And it is Sprint. 95 00:06:42,990 --> 00:06:43,540 Hello. 96 00:06:43,650 --> 00:06:44,470 Cartland. 97 00:06:44,730 --> 00:06:49,960 And now there an hour called by simply clicking on this Emberton. 98 00:06:49,990 --> 00:06:51,860 So here in the output we get. 99 00:06:51,940 --> 00:06:52,590 Hello world. 100 00:06:52,660 --> 00:06:53,820 Hello Cartland. 101 00:06:53,830 --> 00:06:59,010 Now here since we are using the paint function so it does not offend the new line character. 102 00:06:59,050 --> 00:07:02,570 At the end so far that we have a method of print. 103 00:07:02,700 --> 00:07:03,750 Alan Right. 104 00:07:03,790 --> 00:07:10,720 So this method print line simply paints a backslash and character at the end of hello world and then 105 00:07:10,920 --> 00:07:11,570 they will get. 106 00:07:11,650 --> 00:07:12,540 Hello Cartland. 107 00:07:12,580 --> 00:07:14,080 In the second line. 108 00:07:14,290 --> 00:07:15,350 So let us know what an hour. 109 00:07:15,360 --> 00:07:17,190 Or again. 110 00:07:17,310 --> 00:07:18,170 So here we get. 111 00:07:18,210 --> 00:07:20,150 Hello world and hello Cartland. 112 00:07:20,430 --> 00:07:27,150 And now suppose you want to perform some mathematical operation such as insert of this string. 113 00:07:27,180 --> 00:07:28,710 Let us try something different. 114 00:07:28,830 --> 00:07:31,650 And minus nine. 115 00:07:31,980 --> 00:07:35,050 And then let's see the output. 116 00:07:35,070 --> 00:07:37,500 So here we get one as the output. 117 00:07:37,500 --> 00:07:39,440 Now let us try something different. 118 00:07:39,620 --> 00:07:42,760 Then divided by 9. 119 00:07:42,960 --> 00:07:46,920 Then it and again we get one as the output. 120 00:07:47,060 --> 00:07:51,700 Now you must be thinking then divided by 9 is actually one point something. 121 00:07:51,770 --> 00:07:53,650 It is our decimal point of value. 122 00:07:53,840 --> 00:07:56,390 So Vivier getting only 1 in the output. 123 00:07:56,390 --> 00:08:02,560 Now this is because we simply define the integer value not the flawed value or their double value. 124 00:08:02,720 --> 00:08:07,650 So here let us try and point 0 and then run the code. 125 00:08:07,700 --> 00:08:08,490 And here we go. 126 00:08:08,510 --> 00:08:11,820 We get one point something in the output. 127 00:08:11,840 --> 00:08:17,750 Now shortly in our upcoming videos we are going to play around with the variables and other types. 128 00:08:17,750 --> 00:08:23,750 So as of now simply remember Vortiger videotape inside the print and in function the results will be 129 00:08:23,780 --> 00:08:25,320 printed in the output. 130 00:08:25,370 --> 00:08:30,770 But I suppose you type here through and then let's see what happens. 131 00:08:30,800 --> 00:08:33,300 So again in the output we get through. 132 00:08:33,320 --> 00:08:37,920 So even if you pass some boolean value then also we get some output. 133 00:08:37,970 --> 00:08:42,770 So this was all about the video in which we learned why we don't declare a class. 134 00:08:42,770 --> 00:08:45,780 In case of Gartley explicitly. 135 00:08:46,310 --> 00:08:53,910 Just because a Cartland compiler internally creates this class file that I thought the runtime execution. 136 00:08:54,020 --> 00:08:55,950 So this is all about this value. 137 00:08:56,030 --> 00:08:57,550 Thank you and have a good day.