Featured Post
Java....Why we call it Platform Independent or Architectural Neutral??
- Get link
- X
- Other Apps
By
Rishoo Mittal
-
Java a complete object oriented programming language is said to be platform independent or architectural neutral as a java program do not depend upon the operating system or hardware it is running on. The Platform independent nature can be interpreted by two things:
Operating System Independent: Independent of the operating system on which your source code is being run.
Hardware Independent: Doesn't depend upon the harware on which your java code is run upon .e. it can run on any hardware configuration.
These two points make it a platform independent language. Hence, the user do not have to change the syntax of the program according to the Operating System and do not have to compile the program again and again on different Operating Systems. The meaning of this point can be understood as you read further.
Now talking about C,C++ they are a platform dependent language's as the file which compiler of C,C++ forms is a .exe(executable) file which is operating system dependent. The C++ program is controlled by the operating system whereas, the execution of a Java program is controlled by JVM( Java Virtual Machine).
The JVM is the main component of making the java a platform independent language. For building and running a java application we need JDK(Java Development Kit) which comes bundled with Java runtime environment(JRE) and JVM. With the help of JDK the user compiles and runs his java program. As the compilation of he user source program (the java program which user writes) starts the JavaByteCode is created i.e. a .class file by the JRE. Now the JVM comes into play, which is made to read and execute this Javabytecode. The JVM is linked with operating system and runs the Javabytecode to execute the code depending upon operating system. Therefore, a user can take this class file(JavaByteCode file) formed to any operating system which is having a JVM installed and can run his program easily without even touching the syntax of a program or source code is not even required. The .class file which consists the Javabytecode is not user understandable and can be interpreted by JVM only to build it into the machine code.
The above information clearly states that why java is a platform independent or architectural neutral and why C,C++ are platform Dependent.
A java program is compiled by writing your program name with .javac.exe extension.
ex: program.javac.exe.
The above process creates a .class file which consist of Javabytecode.
Now the user runs this code by writing class file name with extension .java.
ex: program.java.
The JVM runs the program from here on and the output of program is displayed to the user.
Operating System Independent: Independent of the operating system on which your source code is being run.
Hardware Independent: Doesn't depend upon the harware on which your java code is run upon .e. it can run on any hardware configuration.
These two points make it a platform independent language. Hence, the user do not have to change the syntax of the program according to the Operating System and do not have to compile the program again and again on different Operating Systems. The meaning of this point can be understood as you read further.
Now talking about C,C++ they are a platform dependent language's as the file which compiler of C,C++ forms is a .exe(executable) file which is operating system dependent. The C++ program is controlled by the operating system whereas, the execution of a Java program is controlled by JVM( Java Virtual Machine).
The JVM is the main component of making the java a platform independent language. For building and running a java application we need JDK(Java Development Kit) which comes bundled with Java runtime environment(JRE) and JVM. With the help of JDK the user compiles and runs his java program. As the compilation of he user source program (the java program which user writes) starts the JavaByteCode is created i.e. a .class file by the JRE. Now the JVM comes into play, which is made to read and execute this Javabytecode. The JVM is linked with operating system and runs the Javabytecode to execute the code depending upon operating system. Therefore, a user can take this class file(JavaByteCode file) formed to any operating system which is having a JVM installed and can run his program easily without even touching the syntax of a program or source code is not even required. The .class file which consists the Javabytecode is not user understandable and can be interpreted by JVM only to build it into the machine code.
The above information clearly states that why java is a platform independent or architectural neutral and why C,C++ are platform Dependent.
A java program is compiled by writing your program name with .javac.exe extension.
ex: program.javac.exe.
The above process creates a .class file which consist of Javabytecode.
Now the user runs this code by writing class file name with extension .java.
ex: program.java.
The JVM runs the program from here on and the output of program is displayed to the user.
Comments
Related Posts
Facebook in SIM Card
By
Rishoo Mittal
-
How about Facebook comes embedded inside a SIM card you buy from your nearby store. Yeah its true...a Dutch digital security company Gemalto has made it possible and has announced Facebook for SIM card at the annual world congress in Barcelona. The company has achieved this by shrinking the facebook into such a small size that it can be stored in SIM. Therefore, enabling people to enjoy the Facebook on their GSM networks without a data plan.In doing so, Gemalto is offering Facebook to millions of mobile phone users regardless of their handset type. The app uses Class 2 SMS to ensure compatibility with the most basic handsets and networks. Class 2 SMS messages are delivered direct to the SIM without the user being involved, and then the application running on the SIM can tell the handset to alert the user. Gemalto did not reveal any release details, but emerging markets where data plans are ridiculously expensive, or simply not available, is likely the target audience.
Microsoft To Issue Emergency Fix For Windows .LNK Flaw
By
Rishoo Mittal
-
Microsoft will issue an out-of-band patch on Monday for a critical vulnerability in all of the current versions of Windows. The company didn't identify which flaw it will be patching, but the description of the vulnerability is a close match to the LNK flaw that attackers have been exploiting for several weeks now, most notably with the Stuxnet malware. The advance notification from Microsoft on Friday said that the company is patching a critical vulnerability that is being actively exploited in the wild and affects all supported Windows platforms. The LNK flaw in the Windows shell was first identified earlier this month when researchers discovered the Stuxnet worm spreading from infected USB drives to PCs. Stuxnet has turned out to be a rather interesting piece of malware as it not only uses the LNK zero day vulnerability to spread, but it had components that were signed using a legitimate digital certificate belonging to Realtek, a Taiwanese hardware manufacturer.
Downloading icloud photos using icloudpd on linux, windows or mac
By
Rishoo Mittal
-
iCloud Photo Backup Guide Downloading icloud photos using icloudpd on linux, windows or mac icloudpd is a third-party command-line tool to download all your iCloud Photos automatically. Install icloudpd Install Python3 and pip: sudo apt update sudo apt install python3 python3-pip Install icloudpd: pip3 install icloudpd Download iCloud Photos Create a directory for your photos (e.g., /mnt/backup_photos ): mkdir -p /mnt/backup_photos Run icloudpd to download your photos: icloudpd --directory /mnt/backup_photos --username your_apple_id Authenticate: You’ll be prompted to enter your Apple ID password. If Two-Factor Authentication (2FA) is enabled, you’ll need to enter a verification code sent to your Apple devices. Let icloudpd sync all your phot...
How to Convert Microsoft WMA and Rhapsody WMA to iPod
By
Rishoo Mittal
-
People all around the world have a preference on iPod, and today I found the reasons: In the official company FAQ, Apple says that: iPod is designed to provide the best-quality sound. iPod has a powerful 60 mW amplifier so it can deliver audio as loud as you want. It also has a 20 Hz to 20 kHz frequency response, which means you can hear distortion-free music at the lowest or highest pitches. Besides, it can skip the protection. iPod has a memory cache. It is made up of solid-state memory, that means it has no mechanical or moving parts, hence it is not affected by movement of the device. iPod skip protection works by preloading up to 25 minutes of music to the cache at a time. iPod plays music from the memory cache instead of the hard drive, so even rigorous activities won't cause music to skip. You can also remove the "gaps" between songs on the iPod. What formats does iPod support ? '''AAC''' (M4A, M4B, and M4P up to 320 Kbps) ...
EAV versus Row modeling
By
Rishoo Mittal
-
Following are main features/downsides EAV has over classic row modeling technique. A row-modeled table is homogeneous. I t will always carry same type of data in contrast to EAV modeled table where this cannot be an issue. The data type of the value column/s in a row-modeled table is pre-determined by the nature of the facts it records. In contrast, in an EAV table, the conceptual data type of a value in a particular row depends on the attribute in that row. A Row modeling technique data increase only in one direction i.e. from Upside-down whereas in EAV data model data increase in both directions i.e. from upside down as well as from left-right. Other Related Links: EAV(Entity-Attribute Value) Model EAV versus Row modeling Downsides of EAV data model over class row model Opting classic row modeling or EAV data modeling?
Hey
ReplyDeleteCan you please elaborate the difference between platform independent and architecture neutral?