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

How Java Virtual Machine Works

Can you tell me how Java Virtual Machine works?

Java Virtual Machine or JVM has the motto write once, run everywhere.

I know the motto, but I do not understand the how.

Because Java Virtual Machine compiles code at real time, AKA just in time compilation, you see slightly slower execution. But since you run JVM directly on your computer, this ensures that Java runs on every type of device.

And generates just as many errors, too.

JVM creates a runtime instance every time you start a Java application. It is supposed to kill the instance when the application completes.

It manages to crash often enough.

Java Virtual Machines terminate the JVM runtime when all non-daemon threads are running. If the daemon threads are running, it still goes on, but JVM can kill an application through the security manager using the exit method.

When something is found wrong by security, head to the exits. But how does JVM work?

Java source code is saved as .java source files, but it is translated into Java bytecode. When you run Java, the Java Virtual Machine converts the bytecode into machine instructions.

It has to be good, because a lot of languages now use the JVM. But won't it crash if I have more than one running?

Each Java application uses its own Java Virtual Machine.

So JVM is virtual, and I can have more than one JVM running?

That's right.

So I could have lots of different types of applications using JVM, and it won't error out.

No more than usual. There are several versions of JVM, too, though the most common version of JVM was written by Oracle, its creator.

So JVM is an execution method for any language that is written to use it.

And JVM is compatible with almost any device because it compiles code in real time using a native method interface and native libraries.

It's a code translator.

That's a fair way of looking at it.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How Java Virtual Machine Works», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

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

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

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