The way Java works...

A dream doesn't become reality through magic; it takes sweat, determination and hard work -Colin Powell


With the quote in mind, lets assume you are trying to build your own home. At the starting, you are like
This is what a programmer writes
Then you think, this is too abstract and you should ask help from an architect and you give him a call and he works on it.
Mr.  JDK
Then he comes up with a plan that looks something like this,
This is the generated Class file
Now, your plan is complete, now you call for a builder, may be in world of cartoons, but he is also a builder.
Mr. JVM
And what he gives you in return is...
The final output of your program
You are now happy with your home...

So your dream of a home becomes reality this way. Let's see how your idea becomes a working program.

        1. You first think of greeting the world - that's your idea.
        2. Then you talk to JDK via Java language - that's what you write your program
        3. JDK gives you a class - analogous to the 2 BHK home plan
        4. Then you ask for the JVM - who will make your dream to reality
        5. Your program greets the world - the final output of your program

This is just instructions, we'll dive deeper next...

Prev     Next
Palash Kanti Kundu

No comments:

Post a Comment