“Art of Learning Java”- Introduction Part 1
Shortlink : http://www.talkonsomething.com/?p=1195
“Art of learning Java” is the way in which i learned Java Programming language , will be sharing my experience .
This Articles are intended for audiences who want to learn Java and people who want to improve their Java skills prior to taking up their Certifications .
“Art of Learning Java” -The best way to learn any programming language is through Analogy and with real time examples .Will be providing analogies so that concept are much more clearer through Analogy .
Note: If you find any semantic or syntax mistakes or any suggestions please notify it to me by emailing to talkonsomething@gmail.com or just dropping an comment in the same post where you found an error.
Contents:
1.Introduction to Java
2.Platform Independence in Java
Introduction to Java : James Gosling was the creator of Java initially called Oak in June 1991 . Java is mainly Application Programming Language . which is used for developing applications like
Desktop Application(J2SE)
Web Application (J2EE)
Mobile and gaming applications(J2ME)
Network Applications
With recent technology innovation of Open source Mobile Operating System Android ,entire Android application platform is developed using Java.
Lets try to understand the difference between an Application Programming and System Programming
Application programming language basically are intended for developing applications which provides services to users and Application program directly interacts with system software . Ex Notepad
System programming is used for providing services to the underlying physical hardware device. Ex. All device driver applications.
Analogy :

→ Word Pad is Application Program which provides service for user in writing content in digitized format .
→ Word Pad application in turn calls the System program methods perform I/O functionalities through System calls present in device drivers (system program) . These System program interact with the physical hardware to convert the word pad content into file storage .
Platform Independence in Java
Distinguishing feature of Java from other programming language by its platform Independent feature. Other languages are platform dependent as shown in analogy
→ Platform dependent Analogy in programming languages


In case of other programming languages like C,C++ etc
→ when a file which contains program is compiled by the respective compilers to produce an Object Code or Object file which is Specific to particular Operating System and in turn this Object file is run or executed by CPU to machine level code (binary 0’s and 1’s).
→ Platform Independent Analogy in Java


Above diagram and analogy explains how Java is Platform Independent
→ The Java source file or program say test.java will be compiled by the compiler to produce the intermediate byte code , which is universal and the output of test.java is test.class which is platform independent (test.class can be run on any device which has the Java Virtual Machine which is specific to Operating System ) .
→ test.class can be run on
Desktop PC which has Java Virtual Machine
Mobile Phones which has Java Virtual Machine
Washing Machine (Embedded System)
→ Java is platform independent because of Java Virtual Machine . This JVM will convert the Java’s class file or byte code ,i.e test.class which is platform independent to test.o whichis platform dependent.
In Part 2 of “Art of learning Java ” will be explaining about the Installation Procedure of Java ,IDE and also kick start with writing our First Program using Java . And Java Virtual Machine will be taken in depth in my up coming articles
.
If you liked it please spread a word about talkonsomething.com
and you can also follow me on twitter here



December 30th, 2009 at 4:45 pm (Quote)
Gr8 tutorials coming up..useful will learn from this
tnx srini
December 31st, 2009 at 5:17 am (Quote)
Super sina.. representing in images with real life example is an added advantage. W8ting for more