JVM Tutorial - Java Virtual Machine Architecture Explained for Beginners

Поділитися
Вставка
  • Опубліковано 19 сер 2024
  • Java Virtual Machine (JVM) is the core of the Java ecosystem. It makes it possible for Java-based software programs to follow the "write once, run anywhere" approach. You can write Java code on one machine, and run it on any other machine using JVM.
    Whether you have used Java to develop programs or not, you must have heard about Java Virtual Machine (JVM) at some point or other.
    JVM was initially designed to support only Java. However, over time, many other languages such as Scala, Kotlin, and Groovy, etc. were adopted on the Java platform. All of these languages are collectively known as JVM languages.
    In this video, we will learn more about the JVM, how it works, and the various components that it is made of.
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    If you liked this video, please hit the like button and subscribe to my channel. Don't forget to press the bell icon to receive notifications about my future videos.
    If you have any queries or feedback, please mention it in the comments. You can also reach out to me on the following handles:
    💥 LinkedIn - / theawesomenayak
    💥 Twitter - / theawesomenayak
    💥 Instagram - / theawesomenayak
    Book a session with me on TopMate - topmate.click/...
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Track: Lost Sky - Fearless pt.II (feat. Chris Linton) [NCS Release]
    Music provided by NoCopyrightSounds.
    Watch: • Lost Sky - Fearless pt...
    Free Download / Stream: ncs.io/Fearless2YO
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

КОМЕНТАРІ • 79

  • @quincylarsonmusic
    @quincylarsonmusic 3 роки тому +36

    This is one of best explanations of the JVM I have watched. The slides are really clear and well thought-out as well.

  • @thevagabond85yt
    @thevagabond85yt 11 місяців тому +6

    VM 1:56
    Java Overview 2:46
    JVM Architecture 3:53
    1. Class Loader 4:28
    *** Loading 4:56
    *** Linking 7:24
    *** Initialization 9:03
    2. Runtime Data Area 9:58
    *** Memory Area 10:13
    *** Heap Area 11:07
    *** Stack Area 11:43
    *** PC Register 12:56
    *** Native Method Stack 12:56
    3. Execution Engine 13:39
    *** Inerpreter 14:07
    *** JIT Compiler 14:57
    *** Garbage Collector 16:47
    - Java Native Interface 18:58
    ---------------------------------------------------------
    Summary 20:11

  • @DineshKumar-zj5ei
    @DineshKumar-zj5ei Рік тому +1

    what an explanation from 10 year experience person. Cant believe you have only 10 experience. Fantastic effort.

  • @andrewryabchenko2407
    @andrewryabchenko2407 Рік тому

    I'm glad I found this video before wasting time on other superficial explanations. Thank you Siben.

  • @emanuelb1154
    @emanuelb1154 Рік тому +2

    It's kinda sad that you have only 3 videos. Thank you for your clear explanation!

  • @nsitkarana
    @nsitkarana Рік тому +1

    one of the most concise explanations of the JVM available. very nicely articulated !!

  • @sasikumar5527
    @sasikumar5527 3 роки тому +7

    I read the article. It was super awesome and easy to understand.

  • @thomasmunguya2207
    @thomasmunguya2207 Рік тому +2

    Great tutorial. Clearly explains how the JVM works. Thank you for sharing.

  • @utkarshgupta2274
    @utkarshgupta2274 2 роки тому +2

    Amazing explanation sir. I haven't watched such detailed and knowledgeable video about JVM yet. Humble request to create more videos regarding Java. It will be very helpful. Thanks.

  • @itravelnotenough
    @itravelnotenough 2 роки тому +4

    Just what I was looking for man. Brilliantly put together. Thank you.

  • @AnujKumar-wp7eg
    @AnujKumar-wp7eg 4 місяці тому

    very nice exaplanation of JVM architecture with its working

  • @jaymakam9673
    @jaymakam9673 Рік тому +1

    the voice audio comes from only on the left side , while on the other side there is music. It makes it very in-convenient to watch the video

  • @ranausama9474
    @ranausama9474 2 роки тому +2

    Hi Sir. This is the best source to learn about JVM. Thanks for helping all of us. Please can you do the same for Tomcat as well.

  • @ramakt1503
    @ramakt1503 2 місяці тому

    brilliant!!!
    pls come up with more topics in Java. Thanks

  • @ashishtayade047
    @ashishtayade047 10 місяців тому

    Thank you sir very nice gide & very nice best information jvm architecture teaching video.👍

  • @intesto1
    @intesto1 Рік тому +1

    Great explanation, thank you. Keep up the good work.

  • @paraslalit4881
    @paraslalit4881 3 роки тому +1

    Hi siben,
    Great explanation. Please keep posting and sharing knowledge

  • @satishakumar1073
    @satishakumar1073 Рік тому +1

    Great content and very detailed.

  • @AMSHASH-xw7lt
    @AMSHASH-xw7lt 3 роки тому +1

    You are my hero.

  • @hanpoyang
    @hanpoyang 2 роки тому +1

    Nice work. One thing , the voice only in left-channel before 19min, and that sounds a little imperfect with headset.

  • @Siddharth240rko
    @Siddharth240rko 3 роки тому +1

    Excellent explanation sir👍👍
    Please make more on java 🙏🙏
    Like arrays, strings,oops,constructors,etc.
    Thank you so much sir 🙏🙏

  • @Siddharth240rko
    @Siddharth240rko 3 роки тому +2

    I have subscribed and liked this video.😉

  • @numrathakumari4582
    @numrathakumari4582 2 роки тому

    You explain so easy to understand ..thank you 😊

  • @thevagabond85yt
    @thevagabond85yt 11 місяців тому

    great conceptual video.

  • @mareeswaran7644
    @mareeswaran7644 3 роки тому +1

    Nice video bro..Thanks for sharing your valuable knowledge 🙂

  • @abhishekpowar2733
    @abhishekpowar2733 2 роки тому +1

    This is a really well-researched & well-written, informative video. The only thing that bugged me a little was the voiceover. Why is it mono? I could only hear it on the left channel and that makes it hard to concentrate. Thanks though.

  • @stefantataru8
    @stefantataru8 Рік тому

    Thanks a lot for this explanation!

  • @isakilikya7236
    @isakilikya7236 2 роки тому +1

    freeCodeCamp article link: www.freecodecamp.org/news/jvm-tutorial-java-virtual-machine-architecture-explained-for-beginners/

  • @ganeshrajpadhayay3714
    @ganeshrajpadhayay3714 3 роки тому

    Nicely explained, Siben. Keep up the good work.

  • @sanjanapanwar3844
    @sanjanapanwar3844 6 місяців тому

    jit compiler has the following - 1 intermediate code generator
    2. code optimizer
    3. target code generator
    4 . profiler
    so the target code generator converts the bytecode to native code then what is 1. intermediate code generator does

  • @chandrashekharkotekar8453
    @chandrashekharkotekar8453 Рік тому

    We can skip to 01:45 to see the actual content.

  • @bolivarobi3499
    @bolivarobi3499 3 роки тому

    Great explanations Sir. Thank you so much!

  • @bavaagustin
    @bavaagustin 7 місяців тому

    Thanks!

  • @MrVitalirapalis
    @MrVitalirapalis Рік тому

    Wow!!!

  • @nikhilsulghur7589
    @nikhilsulghur7589 2 роки тому +1

    excellent video !

  • @babitabisht060
    @babitabisht060 3 роки тому

    Very good explanantion. Just one suggestion - The background music is disturbing, Although your voice is loud but its still not working out.

  • @tarunsoni6971
    @tarunsoni6971 Рік тому

    I was taken aback by the loud and that fast pace intro music bruh.... I was at the maximum volume of the headphones and my ears took some recoverable damage but bruh I request you to tone it down and keep it mellow.

  • @saiveeresh7043
    @saiveeresh7043 3 роки тому

    Nicely explained, good work

  • @raimondsbortascenoks3905
    @raimondsbortascenoks3905 2 роки тому

    Good work ty

  • @siteldevcorpafrica2047
    @siteldevcorpafrica2047 2 роки тому

    good

  • @86Saurabh1
    @86Saurabh1 Рік тому +1

    Great explanation. One of the questions I had was regarding the Execution Engine. Since it supports both the interpreter and JIT compiler, you have mentioned that the interpreter executes the bytecode and the JIT compiler compiles the entire bytecode into machine native code. Does that mean that ,in case of JIT compiler, the OS would be responsible for executing the native code, whereas interpreter works independently of the OS and executes the code directly?

    • @johnhammond3605
      @johnhammond3605 Рік тому

      Itna andar nhi ghusne ka re baba

    • @imranwahid9871
      @imranwahid9871 Рік тому

      I also have the same question. Please share the answer if anyone knows about it.

    • @86Saurabh1
      @86Saurabh1 7 місяців тому

      @@imranwahid9871 This works as I have mentioned. The JIT compiler looks for the frequently executed code and converts that code into machine native code and then that code is executed by OS. In case of interpreter, it works independently of the OS, that is why Java follows "write once, run anywhere" philosophy as the bytecode is independent of the underlying OS.

    • @sanjanapanwar3844
      @sanjanapanwar3844 6 місяців тому

      jit compiler has the following - 1 intermediate code generator
      2. code optimizer
      3. target code generator
      4 . profiler
      so the target code generator converts the bytecode to native code then what is 1. intermediate code generator does
      @@86Saurabh1

  • @prayashsanta160
    @prayashsanta160 3 роки тому

    Siben bhai..Today i just saw your video in E-Learning Bridge UA-cam channel ...there u say u passed out ur B-Tech from BBSR, and u r from Cuttack..and in Amazon you create the Bill payment section...i am very excited and so happy .. I am from Odisha, Nayagarh...now I am a continuing my B-Tech in GIFT, BBSR..in the branch of Computer Science . I am a 3rd year student .
    I want to know more about what is actually a Software Engineer work, and I am very poor in coding, i understand easily the process of coding but i am unable to think and what to write the next step in coding .Please gave me some suggestions to how i am improving my coding skills . I want to know briefly and concept of coding. I want ur guidelines please.

    • @theawesomenayak
      @theawesomenayak  3 роки тому +1

      Hey Prayash, you should start practicing on Hackerrank. That is a easy and methodical place to learn and practice coding. For projects, there are so many resources on UA-cam you can follow, depending on whether you're interested in frontend or backend.

  • @vasistasai4385
    @vasistasai4385 3 роки тому +1

    You should have kept Dual Audio bro ... Why did u have to do to make it only left ? Or was that by a mistake ? Plug in headphones and listen you'll know

    • @rsrini7
      @rsrini7 3 роки тому

      I am using Noise Cancel headphones. High base due to that. Content so much good. Same feeling. Please remove Background music and mono audio. Thanks for the content.

  • @ainbrisk545
    @ainbrisk545 Рік тому

    good explanation, but only my left ear heard it!

  • @tamilkumarannamalai5545
    @tamilkumarannamalai5545 Рік тому

    Left side audio not working 😢

  • @serhatuyanmis1493
    @serhatuyanmis1493 3 роки тому

    Thank you for the video. Is that hard to write an example on JVM,? If not, It would be great to see and follow that video. Thanks again.

    • @theawesomenayak
      @theawesomenayak  3 роки тому

      Hi Serhat. What do you mean when you say example on JVM?

  • @vishalpatil6578
    @vishalpatil6578 Рік тому

    pleaes keep dual audio

  • @pockpicket9360
    @pockpicket9360 3 роки тому

    Hi, great video but I have a question. When you introduce method area, you say that the fields name and age are stored in method area and next you said that all instance fields are store in the heap area. I'm confuse.

    • @theawesomenayak
      @theawesomenayak  3 роки тому +1

      Hi. The variables name and age are stored in the method area. However, when you create an employee object, that object instance is stored in heap area.

    • @pockpicket9360
      @pockpicket9360 3 роки тому

      @@theawesomenayak Ok so the names of variables are stored in method area and the value in the heap. Thank you

  • @pankajmishra4796
    @pankajmishra4796 3 роки тому

    Hii , Currently i'm working on TCS Pune , they forcefully allot me on support project.
    I joined TCS april 2021 nd am 2020 batch passout from IT stream.
    really I'm not intrested in support ....I have good command in java then what should i do.
    plz plz plz reply.
    Thanks

  • @kennethcarvalho3684
    @kennethcarvalho3684 2 роки тому

    METHOD AREA = PERMGEN??

  • @satwikram2479
    @satwikram2479 3 роки тому

    Voice is very low

  • @patrasuman
    @patrasuman 3 роки тому

    Interpreted Languages - executed directly without having to compile them
    Is part is totally wrong ...

    • @theawesomenayak
      @theawesomenayak  3 роки тому +1

      www.geeksforgeeks.org/difference-between-compiled-and-interpreted-language/

  • @mahkhi7154
    @mahkhi7154 Рік тому

    Java is Slower, BECAUSE, More Code is Running. That Code is Checking Security (Array out of Bounds, buffer Overflow etc).
    That Checking, Is ALSO Happening in the HARDWARE DEBUGGER. THE CPU is SLOWER.

  • @mahkhi7154
    @mahkhi7154 Рік тому

    C# is Half the Speed of C++.