Java is platform independent explain in less than 60 seconds. JVM

Опубликовано: 21 Июнь 2024
на канале: Programmer ONE - Sumit Tiwari - SoftEthics
576
57

#shorts #short #shortvideo #shortsfeed #softethics #java #javaforbeginners #coding #programming
How Java achieve platform independence explained in less than 60 seconds.

Concept of byte code and Java Virtual Machine (JVM).

Java’s slogan is “Write once, run anywhere” and this is actualized by introducing the concept of Platform independence. Platform independence is one of the major features of java language. Programs which are developed in java language are platform neutral i.e., they may create in one type of OS like Windows and may run any other kind of OS like Linux or Mac OS. Java uses the concept of byte code which actually makes java, a platform independent language. Java is the first language which is platform independent.

Most of the other languages like C, C++ generate an exe file which is machine code based on the operating system. So, this exe file is operating system dependent there by generating operating system dependent platform dependent files, this exe file which is generated for window OS can run only in window OS’s meaning you have to write code separately for unix OS and mac OS and etc. But JAVA won’t convert the source code directly into a machine, it converts the source code into a scarp code using a java complier. This scarp code is called byte code and this byte code is platform independent i.e. general machine code. Then JVM which is platform dependent generates a machine code based on the generated byte code.


🔔 Stay Connected:
Subscribe:
   / @programmer_one  

Explore on Web:
https://programmerone.com
https://softethics.com

Follow us on:
https://x.com/programmerone_
https://x.com/SoftEthics

Like us on:
https://fb.me/programmerone
https://fb.me/softethics

Study Stuff:
Apps:
Java Pattern Programs: https://fb.me/JavaPatternPrograms
SoftEthics Learner's App: https://n2s.in/learnersapp
Find study material and programs here:-
ON WEB:- https://codingdots.in/

For queries/suggestions/opportunities:
[email protected]
[email protected]
[email protected]