Hi this is sharing so hard and welcome to the next video of the Scotland programming series.
Now in the previous video we just had our first application up and running.
Now in this video let's check out how does the Helliwell program in Codlin verdicts.
Now the main motto of this video is to tell you that in Cartland we don't require the usage of Flast
explicitly to make our application run.
Now what do you mean by this is let's just compare the hello world called with the Java code.
So here I have some Java code public plus some name inside which I have public static void main method
inside which I have the print statement of hello world.
Right.
We all are aware of this.
Now if you are not from Java don't then please don't worry about it.
This course is designed in such a way that even the non Java programmer can also watch the Codlin programming
series.
I am just citing such example so that things will be more clear now in order to bring the hello world.
We need to put that inside their double gold first and then use the print function as we all are aware
of this.
Now in case of Codlin we just need to use the main method right.
Such as if you in space mean energy is empty of string and back open and backward close.
So here in the output we get.
Hello world.
Right now in case of Cartland we don't have any class defined at all like we have defined the class
here.
If it is so then Vivier so much concerned with the class definition.
So let's check it out.
Now in order to execute any Java code it simply means the class fails.
That is the Java virtual machine simply defines the class files.
Right now in case of Cartland the Codlin also needs the Java virtual machine in the runtime.
Similar to Java.
To execute it's called right because Gorlin is more advanced form of Java or the more powerful version
of Java.
And it also needs Java virtual machine in runtime forward scored execution.
Now as we all know the main function was not enclosed within that class.
Right now the question arises does Cartland create a class internally during the runtime.
The answer to this is yes.
While the Cartland called our Exec did the Cartland compiler simply creates a class file which is loaded
into the memory for the code execution in the runtime.
So the Cartland in the runtime behaves similar to a java file in case of Java as well.
That darned java file extension is simply converted to the bytecode present inside that door class extension.
Now similarly the Codlin file as well are actually converted to the class files with the help of this
Gorlin compiler so that it will be further executed with the help of the Java virtual machine in the
runtime.
Right now let us move back to the intelligent ID and let us check out how that Scotland compiler creates
that class file and now this time I'm simply going to open my current project that I have saved in the
previous video in our store.
Now to open any existing project you just need to click on open right and also you can do the import
project.
If you have made your project in some other PC or laptop and then you want to import that project inside
your current laptop or PC.
But since I have created this project inside my own PC so let us open it.
And then simply navigate to the next stop Gartin programming and simply open it.
So here is some tape.
There are explosive.
And now make sure you are working under the project level hierarchy.
This view right now is simply expand your project here.
You will find a source folder within which I have my first file dark gayety within which we build our
Hello World program right now whenever we execute our code by using this I can click on this icon and
then here you will find my first file.
Now Vardis file means that during the compile time that Gorlin compiler simply converts our dark guilty
file into this file such as my first file.
Which is actually the class but I search simply converts out of the extension file into a file which
is understandable by the Java virtual machine.
So if I click on brenne then it will simply execute are called and you will get the output in the output
console.
Now this output you can find it inside the runtime.
So here this red menu simply click on it and here you will find all the output that we will get in our
upcoming videos as well.
And now let me show you something extra inside the outfielder.
You will find if you expanded my first file Kaytee dark glass.
Now this is the class file that I am talking about which is actually auto generated.
So I have not created this file.
It has been generated automatically.
So you don't have to deal with this dark glass file extension.
Now if you open it then you will find some code here.
And here you will find it shows it is actually the compiled code and it is actually autogen Richard.
So please don't open this file and deal with it.
And now to an hour Hellawell program.
You can also do one thing you can simply click on brenne at the top.
And here you will find this at an option.
My first file security as you can also find this red button here.
But make sure here you have to select this my first file.
Right.
Which is other then configuration.
So simply run it.
And let's see what happens.
So here again we get hello world in the output.
And now you must be thinking in Java.
We used to date public static void main method.
Now what about the static part in Codlin we don't have any static functions or methods so in Scotland
we don't have any static concept that is this main method is actually by default playing the role of
static function.
And now let's just play around with the hello world application.
So here let us try the print function and downside.
Let us use one more intimate.
And it is Sprint.
Hello.
Cartland.
And now there an hour called by simply clicking on this Emberton.
So here in the output we get.
Hello world.
Hello Cartland.
Now here since we are using the paint function so it does not offend the new line character.
At the end so far that we have a method of print.
Alan Right.
So this method print line simply paints a backslash and character at the end of hello world and then
they will get.
Hello Cartland.
In the second line.
So let us know what an hour.
Or again.
So here we get.
Hello world and hello Cartland.
And now suppose you want to perform some mathematical operation such as insert of this string.
Let us try something different.
And minus nine.
And then let's see the output.
So here we get one as the output.
Now let us try something different.
Then divided by 9.
Then it and again we get one as the output.
Now you must be thinking then divided by 9 is actually one point something.
It is our decimal point of value.
So Vivier getting only 1 in the output.
Now this is because we simply define the integer value not the flawed value or their double value.
So here let us try and point 0 and then run the code.
And here we go.
We get one point something in the output.
Now shortly in our upcoming videos we are going to play around with the variables and other types.
So as of now simply remember Vortiger videotape inside the print and in function the results will be
printed in the output.
But I suppose you type here through and then let's see what happens.
So again in the output we get through.
So even if you pass some boolean value then also we get some output.
So this was all about the video in which we learned why we don't declare a class.
In case of Gartley explicitly.
Just because a Cartland compiler internally creates this class file that I thought the runtime execution.
So this is all about this value.
Thank you and have a good day.