#4 How Java Works

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ • 201

  • @aeroabrar_31
    @aeroabrar_31 Рік тому +80

    This is the explanation which every java developer needs, Kudos and Thank you sir.

  • @alessandrocupaiolo6859
    @alessandrocupaiolo6859 9 місяців тому +9

    I work as Java developer since 2 years ago, and no one told me everything i watched in this video. Really thank you :)

  • @satyakanna4220
    @satyakanna4220 Рік тому +21

    This is the Marvelous Explanation sir Please provide Interview Questions Asked For Java Developers.

  • @SalakotPhilippines
    @SalakotPhilippines 10 місяців тому +2

    Thank you Navin Reddy my forever teacher since 2015

  • @havory6621
    @havory6621 Рік тому +12

    If VS Code gives you an error of the type "package system does not exist" make sure to have the "s" in "system" to be capital letter, alongside the first letter of string it also must be a capital letter.

  • @hari-7872
    @hari-7872 5 місяців тому +38

    Superb sir
    Anyone in 2024❤️

  • @gayathriyendru2147
    @gayathriyendru2147 8 місяців тому +2

    If I ever learned anything in the Java world it is because of you sir!! Thankful forever!!❤

    • @funatsun
      @funatsun 4 місяці тому

      hii bro,i got an error in javac hello.java i checked the code also...and i didnt got hello.class? at 8:42

  • @balive053
    @balive053 Рік тому +9

    Thanks for the great and clear explanation! I didn't know this about Java when I started learning it.

  • @AbdoulayeZakaria-u3y
    @AbdoulayeZakaria-u3y 2 місяці тому +1

    Wow, that's the type of instructors that all beginner in programming need

    • @adhmherr9864
      @adhmherr9864 Місяць тому

      I get always error even when i wrote every things correct 😢

  • @mukeshmgm7335
    @mukeshmgm7335 Рік тому +3

    Greatest Tutorial Ever In UA-cam.....

  • @Dilluded
    @Dilluded 15 днів тому

    You're the best Java instructor, thank you!!

  • @chiltoncharles
    @chiltoncharles 2 місяці тому +2

    The explanation quality of this video is outstanding, thank you so much my brother, may god bless you

    • @devendraverma1356
      @devendraverma1356 Місяць тому

      hi bro can you please tell me why he not used package in his code and his code still running ?

  • @TanayKarn20147_alt
    @TanayKarn20147_alt 15 днів тому

    One thing that I really like in this series is that he doesn't say that you cannot do programming on a phone, instead he encourages mobile users to program.

  • @traveltribethings1336
    @traveltribethings1336 9 місяців тому

    you explained this so beautifully! The most best part about your videos are unline others, you always try to give in depth knowledge on what happens in the backend which makes it more easier to learn.. I havent done coding in my entire life, but your videos are mind blowing!!! Keep explaining logic and concept wise..Great work!

  • @roshnimandarapu5097
    @roshnimandarapu5097 28 днів тому +1

    This is a WOW explanation. Thanks sir!

  • @_I_like_kebeb
    @_I_like_kebeb 9 місяців тому

    you are amazing, I have been learning Java for 1 year but now someone explained it correctly :D

  • @BuiHoangucAnh-tn5fz
    @BuiHoangucAnh-tn5fz 5 місяців тому

    This is the explanation which every java developer needs, Thank you sir.

  • @konradbartczak6083
    @konradbartczak6083 Рік тому +3

    Cool content. I subscribed.
    Up to java 8 we could only install JRE to run purpose.
    But for java 9 everyone has to install the whole JDK.

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

    Literally, The way you explained !! I'm your fan!!

  • @actandrepeat
    @actandrepeat Рік тому +16

    In summary:
    The compiler compiles Java source code into byte code and the byte code (machine code) is then read by the JVM, processed and converted into instructions for the respective OS to understand.

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

      Thanks! 😊

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

      Bro needs to pin this comment bc the beginning was a bit hard for me to follow but this comment really helped everything click together. Thank you!

  • @art19kp04
    @art19kp04 7 місяців тому +1

    Very sharp explaining salute 🫡 sir

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

    JDK contains JRE, and JRE contains JVM.
    JVM need to build for particular OS.

  • @girlwhocodesandlifts
    @girlwhocodesandlifts Рік тому +7

    Hi, is there any way I can see these things(JRE, JVM etc) in action? Any way to know what's happening at JRE/JVM level when I run a java program/application?

    • @PalGanesh75
      @PalGanesh75 5 місяців тому

      Different functions are available inside folders of jdk/conf
      These functions execute all these

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

    i like your explanation , my problem is english i will improve my english and my talk , for hear you again

  • @faaizuddin5090
    @faaizuddin5090 Рік тому +15

    Assalamualaikum sir, how you are ? I'm from Pakistani I watch your all video . Sir kindly upload advance java courses which based on industry requirements.

  • @fadisalameh3368
    @fadisalameh3368 5 місяців тому

    super explaining
    I think, you are the best java teacher

  • @robertjr8205
    @robertjr8205 3 місяці тому

    This was the greatest explanation ever! Thank you!

  • @NoahMichaelZ
    @NoahMichaelZ Рік тому +4

    Hello, I'm From france and I'm learning java online and I found your channel when I first search for java videos. I watched all your java videos and thank you so much for these videos, I'm really grateful to you.

    • @JEEVI-y2k
      @JEEVI-y2k 11 місяців тому

      France 🇫🇷????

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

      @@JEEVI-y2k quoi ? qu'entends-tu par France ?

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

      @@JEEVI-y2k ah i get what you meant by that. yes I'm from france. you also???

    • @funatsun
      @funatsun 4 місяці тому

      ​@@NoahMichaelZ hii bro,i got an error in javac hello.java i checked the code also...and i didnt got hello.class? at 8:42

  • @abdulkarimyahuza6596
    @abdulkarimyahuza6596 11 місяців тому +1

    Sir, thank you for the explicit explanation❤❤❤❤

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

    Thank very much for your simple and understandable explanation, indeed, it's wonderful

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

    Thank you so much sir... really your explanation too good easily any one can understand...

  • @brunomiguel6603
    @brunomiguel6603 Рік тому +3

    Hi @Telusko, I hope you are doing well. First of all, thank you for this contents, however I have got confused when explained about the main method… when we use JSE we have a main method but in Jakarta we don’t have the main verb because is web application…

  • @sivaranjanis9019
    @sivaranjanis9019 3 місяці тому

    Great Navin. Very Useful . Thank you for such wonderful video

  • @pavi.R
    @pavi.R 4 місяці тому +4

    If I type `javac hello.java` and press enter, my class file is not created instantly. However, if I run the program and then type `javac hello.java` again, I can see the class file is created. Why isn't it created instantly as shown in the video?

    • @adhmherr9864
      @adhmherr9864 Місяць тому

      I have same problem here 😢

  • @vivan1310
    @vivan1310 2 місяці тому +1

    bro I love this man so much it is not funny

  • @devotionalsongs5673
    @devotionalsongs5673 8 місяців тому

    This is amazing I am able to understand java now!

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

    sir kya badhiya bataya hai apki english bhi bahut simple hai sab samjh aya or appne jo bataya mujhe bahut acha laga abb mai bhi placement lepaunga thanks 🙏✨

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

    1:48 I don't understand what u are talking about
    Later, I understand it🙂

  • @Fredy-v3n
    @Fredy-v3n Рік тому +1

    In my research I found: a 'static block' executing before 'main' method, So when we compile the code to byte and run through the JVM, the jvm look for main method or static block first?

  • @techysam-bl9mk
    @techysam-bl9mk 11 місяців тому +1

    Beautifully explained - Kudos

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

    Congratulations, your explanation is the best! Keep going.

  • @swathim3988
    @swathim3988 9 місяців тому +1

    Best teacher❤

  • @sumiluckymikkubasant
    @sumiluckymikkubasant 4 місяці тому +1

    May i know why the class is not getting created

  • @darshanjain5876
    @darshanjain5876 Місяць тому

    i
    f VS Code gives you an error of the type "package system does not exist" make sure to have the "s" in "system" to be capital letter, alongside the first letter of string it also must be a capital letter.

  • @Elevated2363-l8z
    @Elevated2363-l8z 5 місяців тому

    This is amazing you have taught me so much

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

    execellent explanation sir

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

    Thank you so much, your explanation is very good.

  • @CoffeeGuy2327
    @CoffeeGuy2327 8 місяців тому +1

    Hi, I was trying to run the code using javac Hello.java but I get this error
    unnamed classes are a preview feature and are disabled by default.
    public static void main (String a[])
    (use --enable-preview to enable unnamed classes)
    Anyone knows how to fix this? Just beginning to learn coding through this channel. Thanks!

    • @CoffeeGuy2327
      @CoffeeGuy2327 8 місяців тому +1

      *UPDATE*
      All goods now. I was able to search it up in google. I just have to enable preview it. Thanks!

    • @NiharikaENneha
      @NiharikaENneha Місяць тому

      How to fix this?

  • @astech5825
    @astech5825 5 місяців тому +2

    byte code is not coming sir

  • @ishitadas
    @ishitadas 4 місяці тому +2

    Hi Sir,
    I have a problem.
    My class is not getting created and I am unable to find why it is
    Can you please help me

    • @adhmherr9864
      @adhmherr9864 Місяць тому

      I have same problem here. 😢

  • @durgaraoponnuru17
    @durgaraoponnuru17 Рік тому +3

    Hi Sir, Thanks for your videos. I have a doubt, how can system have JRE and JVM without installing JDK.
    As per my knowledge, when we download and install JDK, JVM and JRE will be created.

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

      correct, i also read this, jvm comes with the jdk not preinstalled with the os

  • @omagency2771
    @omagency2771 4 місяці тому

    sir very nice explanation ,thank you sir

  • @abhinaybandi44
    @abhinaybandi44 4 місяці тому +3

    Umm i got a problem. I could not the extra file after typing javac Hello.java

  • @codeblooded03
    @codeblooded03 11 місяців тому +2

    hi sir when i give the run command it says " Error: Main method not found in class hello2, please define the main method as:
    public static void main(String[] args)
    or a JavaFX application class must extend javafx.application.Application " please tell me how to solve it.

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

      The error is because you can't run a Java file without main method. Public static void main(String[ ] args) {
      }
      Note : we can compile (javac) the Java code without main method, but we can't run the Java code without main method

  • @BinduVuppala
    @BinduVuppala 11 місяців тому +2

    After compiling its not giving byte code, please respond

  • @bakytsheishenbekov3468
    @bakytsheishenbekov3468 7 днів тому

    Thank you Sir!

  • @KOLKATARChele-555
    @KOLKATARChele-555 28 днів тому

    So we can say that Java application is jvm dependent

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

    Amazing, greetings from Colombia

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

    Sir I got confused at the end. That our friend's machine only have JRE and JVM. JDK is not required.
    Thank you so much sir for this beautiful content.....

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

      JRE ( which contains JVM) is only required for executing byte code.

  • @thanhtran-wy5wr
    @thanhtran-wy5wr Рік тому +1

    hello sir, where can i take the exercises to improve my skills? thank you so much 🥰

  • @higiniofuentes2551
    @higiniofuentes2551 8 місяців тому

    Thank you for this very useful video!

  • @lionarpotter9535
    @lionarpotter9535 Рік тому +53

    Sir after running Java code (Hello.java) successfully,the byte code( Hello class) is not appearing in left top corner sir why and bcoz of that it shows no class name as hello world

    • @ajitkumarsaha4074
      @ajitkumarsaha4074 Рік тому +4

      Mine also not appearing but when appeared..it printed hello world but after that whatever I want to print it is printing only hello world

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

      Facing same challenge like yours..

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

      Mee too

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

      I think the file exist but it is hidden by vs code, check it in vs code settings

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

      @@hondaxblade2127 Okay, lemme give a try..

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

    public static void main(String[ ] args){ // code ..} or public static void main(String args[ ]){ // code ..} is both correct ?

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

    Hi Sir, from past month i am asking this doubt,plz do reply.My conecern is that is this course for absolutel beginners!!! I need to start from very scratch because i didn't even know what is public static void main ..so plz do reply for my query

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

      Yaa bro 😊 even I am the beginner. You can start dude.ALL THE BEST. 😊

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

    Hi sir . I wrote java program like u same but in terminal when i compile code error:- could not find or load main class Hello . What the problem can you tell me 🙂.

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

      Bruh did you got the solution cause I too got the same prblm?

  • @FrancesObeleEbubechukwu-yz7po
    @FrancesObeleEbubechukwu-yz7po 4 місяці тому

    Very good sir 💯✨

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

    Suppose Android app is made using Java. Does our Android phone have jvm installed to run the application.

  • @babugovindaraj6411
    @babugovindaraj6411 4 місяці тому

    Ur great sir🎉

  • @manishsrivastava5611
    @manishsrivastava5611 Рік тому +3

    Hi Sir , my byte code "hello.class was not created. Plz explain

    • @bhanuprakash5703
      @bhanuprakash5703 Рік тому +6

      You need press ctrl + s in order to save the code you have written in the file. then execute javac command. hope it works 🙂

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

      ​@@bhanuprakash5703thankyou

    • @pranavgarg3301
      @pranavgarg3301 8 місяців тому

      ​@@bhanuprakash5703 thanks it worked

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

    Well I've never had problem with printing Hello World in programming, seems like people have experienced same thing here and No help... :D it just cant find class with name Hello

  • @Tanya-v9l
    @Tanya-v9l 10 днів тому

    Hi, I have some some doubts how to ask?

  • @jatinasthana5318
    @jatinasthana5318 5 місяців тому

    sir is jvm is pre installed with the os of any computer or when we download java (from oracle ) then jvm comes with it?

    • @sandrawanja1793
      @sandrawanja1793 5 місяців тому

      It doesn't come preinstalled but rather it comes after installing java

  • @navaneethkp8691
    @navaneethkp8691 3 місяці тому

    8:30 no new file is created in my system after compiling . Why ?(btw jdk version is 22)

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

    oh brother, your accent makes me cry

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

    awesome man keep it up

  • @rannnniiiiii
    @rannnniiiiii 4 місяці тому

    why did you sir suddenly remove 'ln' from 'println' ?

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

    sir how did you compile the code , i am not able to understand , it all happened a bit too fast

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

    Why jdk required in our machine, if not required in friend's machine

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

    getting f0lllowing error,
    Hello.java:3: error: cannot find symbol
    public static void main(string a[])

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

    i didn't get a class file after compiling,what do i do

    • @BbbSss-qu3we
      @BbbSss-qu3we 6 місяців тому

      Me same thing.. how to fix it ?

  • @BluePaneTechnologies-nu4hh
    @BluePaneTechnologies-nu4hh 6 місяців тому

    simply great.

  • @funatsun
    @funatsun 4 місяці тому

    helo sir ,i got an error in javac hello.java i checked the code also...and i didnt got hello.class? at 8:42

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

    awesome video!

  • @HappyMishra-i7n
    @HappyMishra-i7n 4 місяці тому +1

    Sir in windows it is showing error

  • @SwethaChelpuri0101
    @SwethaChelpuri0101 Місяць тому

    Hello.Class was not coming how to fix it

  • @mr.double.s909
    @mr.double.s909 9 місяців тому

    You are amazing

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

    sir i have an issue vs code says hello.java is non -project file what should i do?

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

    Sir it is coming main not found in the file .define main method . please help me sir 🙏🙏🙏🙏🙏🙏

  • @akshaykadam8168
    @akshaykadam8168 4 місяці тому

    kudos sir .!!

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

    Hello sir
    I have a problem
    That is,I can't run my project when I type Java Hello it not works😢😢
    I solve my problem

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

    very helpful

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

    Sir we can write println also?

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

      yeah it's also used to print stmt in java , liittle diffrence is by using print it will print given stmt in same line, whereas println prints stmt in new line everytime

  • @muthinenidharmagokul7603
    @muthinenidharmagokul7603 9 місяців тому

    when I tried to run the Java file it didn't generate the class file in the vs code, what may be the reason?, when I tried javac version it showed me the latest installed version as well

    • @yskarthik7853
      @yskarthik7853 9 місяців тому +1

      You need to save the file before generating the class file.

  • @Jelvix
    @Jelvix 5 місяців тому

    Thank you for this video! It's very helpful, especially for beginners. We also created a video on a similar topic, but we talk about the key differences between Java and Python

  • @kapilsoraganvi8234
    @kapilsoraganvi8234 3 місяці тому

    I am Facing a problem with running the code my class is not created after running the code please help me with it

  • @addankiadda2594
    @addankiadda2594 5 місяців тому

    love from andhra

  • @vempatinithin5591
    @vempatinithin5591 3 місяці тому

    sir i did't get hello class extra file plz can u tell

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

    How many platforms for writing java code ,vs and note pad NetBeans except these is there any

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

      Eclipse and IntelliJ is the most popular ides those are using by most companies

  • @TrendBomb-vrs
    @TrendBomb-vrs Рік тому

    Thank u bro❤

  • @katzwhacky
    @katzwhacky 3 місяці тому

    Heresy! Putting the opening brace on the next line. IllegalCodeStyleException