How Java Program Works, Compiler, Interpreter | Java Tutorial

preview_player
Показать описание
In this step by step java video tutorial for beginners you will learn how a java program works, what are compilers and interpreters in detail with example.

Get the source code for our tutorials at our website

LearningLad in social media
Рекомендации по теме
Комментарии
Автор

Here's a Tl;Dr for everyone:
Java is normally first compiled to an intermediary language which is stored in a JAR File. This file is then run by the Java Virtual Machine. Initially the JVM interprets the bytecode but as time passes it slowly compiles the code to native machine language. So Java is in essence, both Interpreted and Compiled. (As a side effect of this Java is the only language that gets increasingly faster as time passes; While most other programs written in other languages will stay at the same speed throughout, Java programs tend to execute somewhat slowly when first starting up, but will speed up over time and can get as fast as even C/C++ programs are)

I will mention that the official Java compiler has the option to compile Java directly to the target executable instead of JVM bytecode however

theshermantanker
Автор

The best explanation of the difference between a compiler and an interpreter, thanks a lot, keep up the good work!

edasaydan
Автор

The sweet accent of "I'm gonna have this technology subject as well explained as I'd ever wish"

danielpinto
Автор

Awesome video. This not only coincides with the information on the java docs. But it clears up some problems I had. Thanks

angusquigley
Автор

u you saved me from a whole chapter reading

nadiameftah
Автор

This explanation is the masterpiece. Thanks sir.

dawidciezadlik
Автор

simple and straight to the point. Thank you.

jonasmoyo
Автор

The best explanation available on Youtube

dn-hj
Автор

EXTREMELY COMPLETELY HELPFUL VIDEO... THANK YOU.

drmikroskop
Автор

it was thanks for the wonderful explanation

debarghyapodder
Автор

Awesome video, very easy to understand. Thanks for this

genehorecka
Автор

awesome video
well explained!!!
thanks a lot

tadassatafarra
Автор

Nice Tutorial for beginners!. Simple and straight. Thanks guys.

kkNari-fdcw
Автор

Thanks sir you answered on my all questions ❤️

shorouqadel
Автор

I have a question that why we use both the compiler and interpreter in java to execute final programs. Why not only interpreter or a combination of compiler and executor?And which one would be better(faster/efficient)?

DrYawningMoon
Автор

Just got what I want.... Nice tutorial!!!

akhil
Автор

6:28 all I need to know. Great video though, thanks.

karlomagnoguadalupe
Автор

really great video bro, really for it..!!

DanishShaikh-pxye
Автор

i have an request to you anil sir,
can i use your video links, youtube links on my website.
m asking you links ha..is it legal..?

ashishpatil
Автор

Hi, thanks for such a neat explanation.
So this satisfies the platform independent concept of java.

vmvsairam