RUVIDEO
Поделитесь видео 🙏

Core java Tutorial || Introduction to Java | video-12 || Java Platform Independent क्यों है?

Your Queries -
Java Platform Independent क्यों है?
Why Java is Platform Independent
Java Platform Independent


People always skip the most important point while talking about platform independence. Platform is not only the operating environment ! It consists of both the OS and the Hardware (specifically the CPU architecture). All the other answers mentions about the byte code but I am mentioning what they left.

In C and C++, data types vary according to different architecture. Like int has different size on 8-bit architecture, 16-bit, 64-bit and so on. But in java size of int remains same for all the architecture. This is the major benefit of java (known as portability)

When you run you java application on a 16-bit machine that you made on 32-bit, you do not have to worry about converting the data types according to the target system. You can run your app on any architecture and you will get the same result in each. But if you made an app in C/C++, every time you need to change the source code to match the target system architecture.

The java Byte Code (.class) is OS independent, it has same extension in all the different OS unlike in the case of C which has .exe in windows and that is not recognized by Linux and Mac.

But the machine code that has to be generated to run the java app on different platforms is machine dependent. Here comes the JVM (which is platform dependent), it converts the byte code to target machine code.

latform independent language means once compiled you can execute the program on any platform (OS).

Java is platform independent. Because the Java compiler converts the source code to bytecode, which is Intermidiate Language. Bytecode can be executed on any platform (OS) using JVM( Java Virtual Machine).

In reality, nothing is perfectly platform independent. There are always some constraints on specific platforms that cannot be ignored. Examples are things like the maximum length of filenames, or the available RAM on a system. No matter how much you try to be platform independent, your code may fail if you try to run it on a platform that is too tightly constrained. There are occasionally bugs in language implementations that only occur on certain platforms. So even if your code is theoretically 100% portable, you still need to test it on different platforms to make sure you aren't running into any unusual bugs!

Overall, Java is probably about as close to true platform independence as you can get, but as you can see there is still quite a bit of platform-specific work done under the hood. If you stick to 100% pure Java code and libraries, you can count on Java as being "effectively" platform independent and it generally lives up to the Write Once Run Anywhere (WORA) promise. But you should still test it!!

Your Queries -
Java Platform Independent क्यों है?

Thanks For watching

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Core java Tutorial || Introduction to Java | video-12 || Java Platform Independent क्यों है?», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.