Heidi's history and start and really come to the next topic of discussion that is in operability in
case of Cartland Now this is going to be the most interesting part of this series of Cartland programming
now at the very beginning of this series I told you that in supports in that operability.
Now what does this means.
This means that you can simply call any job function from the Cartland and vice versa.
That is you can call the Cartland functions from the job will fail.
This simply means that you can have both Java and Cartland files present inside your same application.
So how does this work actually so far that you have to first understand this thing how a Java cauldrons
now the whole process is actually divided into two parts.
The first is the compile time and the second part is the runtime not doing the compile time the compiler
simply converts you to a java file that contains the Java code into the bytecode.
Now this bytecode is actually stored inside the file which has the extension of Dorte class.
So here I have my moods are Java and here I have made a model class that simply contains the bytecode
which is a more refined form of the code which is actually understandable by the Java virtual machine.
So the Java virtual machine with the help of some other libraries simply makes your code execute and
hence your program is now up and running.
Now what happens in case of Cartland.
Now in case of Cartland the whole process is again divided into the compile time and runtime.
Now in case of compile time we have made they more guilty.
We have dord give the extension file simply contains the Cartland called similar to what we have here
is Java code.
Now the Cartland compiler simply converts the K-T file extension into my dark class simply contains
the bytecode.
Now here you can notice I have made my more dog Katie so the class file name is actually made the more
guilty dog class.
This is the standard naming convention in case of Codlin when the compiler converts this file into the
byte called.
Now this file contains the byde called trade.
So here if you compare the both side you will find.
Here we have it called and again in case of Cartland we have the byte called.
Now since we have bytecode in both the forms now this byte called in the runtime will be executed with
the help of a Java virtual machine.
And then your program will be now up and running.
So this is how our typical Java code runs and the Codlin cauldrons.
So now if you notice in Buddh the case we are having the bytecode right and now proceeding forward let
us know.
Check out How does our typical Cartland file or code looks like.
So what we see inside the Cartland file is this.
Now suppose our Karleen file has a name of my first darte gayeties stored inside the source for it.
And here is our code.
Suppose I have a method of function and that takes a bit of a in danger and simply returns a boolean
value and this is the method Bartie.
Now are the High-Level we actually see discord right now what happens after the compiler can do that.
My first daughter gave the file.
Now soon after the completion this file is actually converted into my first grade art class right and
then vord the compiler do is that I simply add the wrapper off class on top of this function.
So don't leave.
What happens is that discord is actually converted into discord such as I have now plus my first guilty
raid inside which I have public static boolean add in a.
Now if you compare this method and this method you will notice that this is the High-Level method.
In case of Portland and now this is typical method in case of Java.
So we have public stocktake now Bideford all the metrics in queues of Cortland are actually public in
nature.
So we have public care now since this method is a high level method.
So it has been converted to this tactic.
Right.
And here we have a boolean return type.
So again we have a boolean return type.
And this is a method name with NBG a barometer.
And now inside this we have an amateur Barbie.
So what we see in dentally does not appear to be the same after the code is compiled.
Right.
So now since we know the internal structure of the my first KTAR class so this good can be called from
any of the java file.
It is an inside job application so how can we access the Cartland file from Javal file.
They will check out in the next video so please make sure you watch my next video because it is a very
important part of discourse.
So see you guys in the next video.
Thank you.