Platform Independent Nature of JAVA

Nabanita biswasNabanita biswas
3 min read

//this is my first Technical Blog

Ever wondered why JAVA is considered as a Platform Independent language, what makes JAVA stand out from most of the languages which were built back in the 19's..

Well, before diving into the WHY'S of the question, let's dive into HOW this all started from the very basics. As we all know PLATFORM INDEPENDENCY is the most prominent feature of java. Well by Platform Of A Computer ,what do we understand is that it comprises of 2 components HARDWARE component( microprocessor) and SOFTWARE component (operating system) .

For e.g;- Say someone wants to know the platform of your computer then this is what he means in breif- inteli9 + windows 10 or Power i8 + MAC O.S

So Platform Independency , from a software engineering prespective, platform of a computer is nothing but the underlying O.S of the computer

In the above diagram you can have an idea what is platform independent. JAVA's secret weapon lies in WORA (Write Once, Read Anywhere).Developers can code in a particular operating system say Windows and it can run seamlessly anywhere be it MAC O.S, linux, windows etc..

Well you may wonder HOW JAVA ADOPTED THE PLATFORM INDEPENDENCY ???WHAT'S THE PROCESS BEHIND IT...well good things comes to those who wait...

Enters the hero of the story by JAMES GOSLING which is JVM( java virtual machine.

At the very first HLL which is nothing but the programming language (eg. c, java) is converted into Object code(the file where object code is stored is .obj) by the Compiler then external libraries are added with the help of linker and then converted into executable code from where this execuatvnle code is uploaded on the internet and various o.s can install from it but since executable code is platform dependent thus it can only run on the same platform it was made, thus here LIES FAILURE OF C LANGUAGE

Whereas in java , compiler converts the java program into BYTECODE (which is stored in the file .class) and since it is a secure code and platform independent, no hacking issue would occus and it can be safely uploaded on the Internet and in the internet you can install JVM according to your system as different systems have their own specific JVM installed in the website itself amd this it converts the bytecode to MLL (Machine level language) which is stored in the RAM untill it is executed....

Thus in conclusion;-The platform independence of Java is not a mere illusion. The true power lies in creating applications that are adaptable, affordable, and simple to upkeep. As technology advances, Java remains a prominent force, guaranteeing effortless compatibility across various devices and operating systems with its exceptional capabilities. Therefore, start utilizing your magical Java coding skills and witness the initiation of the platform-independent charm

  • -By Nabanita
0
Subscribe to my newsletter

Read articles from Nabanita biswas directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Nabanita biswas
Nabanita biswas

๐Ÿš€ CSE 3rd year | Java & MERN Enthusiast | SIH Finalist ๐Ÿ† | Tech Blogger ๐Ÿ–‹๏ธ | Coding odyssey from Java to MERN | Infusing creativity into code | Let's grow together! ๐ŸŒโœจ Connect: [Twitter / LinkedIn / GitHub]. ๐Ÿš€ Passionate about transforming challenges into innovative solutions, I'm fueled by a relentless curiosity for cutting-edge technologies. Join me on this exhilarating journey, and let's push the boundaries of what's possible in the world of coding! ๐Ÿš€๐ŸŒŸ