Java Tutorial for Beginners 1 - Basic keywords explained

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 95

  • @user-fu8zl2zi5f
    @user-fu8zl2zi5f 3 года назад +3

    Helps even 6 years later, thank you so much

  • @KevinSmith-qt4hz
    @KevinSmith-qt4hz 7 лет назад +20

    This video is amazing. No other video actually explains any of this, they just tell you to "put this here and that there". It feels good to actually make a functional Gui, but it doesn't help not knowing why it works the way it does.

    • @MarcusBiel
      @MarcusBiel  7 лет назад +2

      Thanks. You might want to try out my latest videos, for example "Immutables in Java".

  • @MarcusBiel
    @MarcusBiel  9 лет назад +30

    In this first lesson am going to introduce you to the following fifteen Java keywords or Java related concepts:
    package
    import
    class
    method
    variable
    public
    void
    @Test
    CamelCase
    dot
    semicolon
    object
    constructor
    variable declaration
    object allocation
    It’s okay if you don’t directly grasp everything. We will go in more detail and recap the important parts later on...

    • @dzzification
      @dzzification 9 лет назад

      +Marcus Biel Very nice and clean explanation. I have a question: How much prior Java knowledge is required before jump into Android development? Would you say that this beginners tutorial series is good enough to start with Android tutorials afterward? I'm not absolute beginner in programming, I learned basic Javascript, HTML and CSS.

    • @MarcusBiel
      @MarcusBiel  9 лет назад +1

      Well, as always, it depends. It depends on what you want to achieve, how fast you are, how much time and effort you invest... Generally speaking, my goal for this Java course is to give you a SOLID basis to do any kind of development including Android development. You could also directly start with Android development, but my course is not only teaching you Java, but ALSO clean code principles, giving you practical hands on advice on what to do and what to avoid.

    • @dzzification
      @dzzification 9 лет назад

      +Marcus Biel Thank you Marcus. I will continue to follow your tutorials.

    • @MarcusBiel
      @MarcusBiel  9 лет назад

      Your welcome! Let me know if there is anything I can help you with! :)

  • @sagarnagrani7574
    @sagarnagrani7574 6 лет назад +11

    thank you so muck for making this video .
    I'm a programmer also ,but the way you explained the topics i have never seen such teachers.
    you are great.

    • @MarcusBiel
      @MarcusBiel  6 лет назад +1

      Thanks a lot! Don't forget to check out my blog also. For every video, it contains a long and detailed article, written with love and passion as well. Soon a free book will follow also :)

  • @19Pulsar
    @19Pulsar 9 лет назад +4

    I'm learning programming from scratch, and I have chosen Java as a 1st language. I found this video to be one of the best beginner videos out there. What may have helped me is I have been exposed to some java code at work over the last week, and this video helped me put the pieces together in terms of how to read a method (among some other basic concepts). I liked the pace, and the simplicity. You explain things very well for the beginner. I want to thank you for taking the time to put this together and for your open welcoming of feedback.
    I became a bit unclear during the discussion about variables, especially at the end around the relationship between objects and variables. I will go back and re-review several times so I can get it.

    • @MarcusBiel
      @MarcusBiel  9 лет назад

      +19Pulsar Can you be more specific of what is unclear to you? A class is like a template, a written down idea how something should be. Then when the program starts,
      there will be a time when the "computer" needs to use this class / idea / template to create something "living" out of it, it will "sit" in the memory and the "computer" will be able to work in it.

    • @19Pulsar
      @19Pulsar 9 лет назад +1

      +Marcus Biel Thanks for your response. I am clear on the idea that class is a template and at run time an object is created in memory from that class.
      I was a bit unclear about the relationship with the variable, specifically in this line: Car myPorsche = new Car(1, 320);
      However, after reviewing it again, I think I'm starting to understand it. We are creating an object of the Car class and also a variable called "myPorche" and linking them together. What is the benefit of doing this? Is it so I can reference myPorche without having to create an object again? Any other benefits? Also, why do I have to type "Car" twice in that line. Seems like additional manual work to type the class name twice.

    • @MarcusBiel
      @MarcusBiel  9 лет назад

      +19Pulsar Yes. This allows you to reference the object you created later on. If you create an object without any reference to it, the JVM (more specifically the so called Garbage Collector) is allowed to "remove" the object from memory (it won't be actually removed, it will just be allowed to overwrite it from then on).
      One more tip - often it is WISE to NOT specifically create a new object - e.g. when you just want to return it from a method - it is enough to say "return new Car();" This way, your code is shorter and you save one reference :)

    • @19Pulsar
      @19Pulsar 9 лет назад +1

      +Marcus Biel I have been looking at some advanced code and it looks like it may be using this concept but in a different manner. Say you have class CarOne. In another class, say CarTwo, a variable is declared at the top as CarOne carOne; No other information is on that line. Then later in the CarTwo class, a new method may call a method in CarOne by prefixing object carOne. I'm guessing it's the same idea?

    • @MarcusBiel
      @MarcusBiel  9 лет назад

      +19Pulsar This is a so called "instance variable", as this makes one object part of another object (you can also say "instance"). You as the programmer can decide at what time the object related to this CarTwo variable will be created - sometimes, this will in the same line, which creates the two objects pretty much at the same time. Sometimes however, this might not be possible, because only when you run the program you have the necessary information to create the object. An instance variable can be used / seen in the whole class, in every method, so you can in another method at a later time say car2 = new Car2(), or you can also create it completly somewhere else - then you can forward the reference variable of the Car2 object to a method and say
      car= otherCar2 - so what will basically happen in the background is it will COPY the VALUE of the reference variable which is something like a number, a pointer - it will copy this from the one variable to the other - there is only one object the entire time - you can have several reference variables pointing ALL to the same one object...

  • @JessjustlovingGod
    @JessjustlovingGod 3 года назад

    You are AMAZING!! The game changer between you and other "youtube coders" is you explain a word before you use it-- most don't and we are all lost by the 2 minute mark! Amazing work and thank you for the great videos!

  • @bradharris
    @bradharris 5 лет назад +5

    I'm learning from scratch and I like it. The fact that you better defined it as an Object Oriented Language helped me the most. I have a tendency to think in the abstract, so this helped me think about using concrete language specific to the job.

  • @carmencojocaru9421
    @carmencojocaru9421 3 года назад +1

    This is the best Java tutorial ever. Thank you for all the effort you are making to teach us java.

  • @audreydelgado926
    @audreydelgado926 9 лет назад +2

    Thank you Marcus. This is very informational, and good for those who are beginners, who need extra detail. This helps to compliment the classes that I am taking as well. Thank you.

    • @MarcusBiel
      @MarcusBiel  9 лет назад

      +Audrey Delgado Thanks! If you have any question, let me know, happy to help :)

  • @lfcbpro
    @lfcbpro 8 лет назад +2

    VERY good, I have tried multiple learning channels and also Lynda.com,
    you managed to explain things in a better way than all of them,
    thank you very much and keep up the good work :)

    • @MarcusBiel
      @MarcusBiel  8 лет назад

      Your welcome :) Check out my latest videos, I think and hope I have improved over time :)

  • @SuperGensel
    @SuperGensel 8 лет назад +4

    You have a great way of explaining these terms! Amazing work, thank you!

    • @MarcusBiel
      @MarcusBiel  8 лет назад

      Thanks for your positive feedback :)

    • @MarcusBiel
      @MarcusBiel  8 лет назад

      Thanks for your positive feedback :)

  • @fotistsakiris
    @fotistsakiris 8 лет назад +1

    Very nice tutorial. Important topics are being described in detail. Even if one knows about classes and methods in Java, is good to watch this video, to get a better understanding of them.
    Phootis

    • @MarcusBiel
      @MarcusBiel  8 лет назад +1

      +Φώτης Τσακίρης Thanks! If there is anything else I can help you with, just let me know :)

  • @MaseraSteve2
    @MaseraSteve2 3 года назад

    Found this guy video years ago and here's the thing, this week i just read a book about java by Joshua Bloch out of curiosity and surprise surprise, this guy name are mentioned on the book as the advisor to writer there's no way that there's a coincidence in name similarities and field of knowledge.. The more you know, the better it'll be. Because you're dealing with expert level guy
    here not a so-random-dude teaching you

  • @smellydonut5088
    @smellydonut5088 4 года назад +3

    Why r online teachers always so much better than in person teachers

  • @AlY-dr8hp
    @AlY-dr8hp 8 лет назад +2

    Hi , Marcus, ty for your hard work and generosity. I will follow u since this course seems to be one of the few that incorporate Intellij.
    My goal is to figure out how to implement APIs from external sources, such as Yahoo finance in order to "catch" real time forex data and plot it in candle stick form. I have a workable charting program from the web, as open sourced by the author; the only part missing is connecting it to Yahoo finance api in order to feed it real time market data. If you have some suggestion as to how to begin and research this topic in order to make it a reality i would be enormously grateful.

  • @ParulBhargava18
    @ParulBhargava18 2 года назад

    Hello Marcus, You have explained it really well, specially for beginners, explaination of keywords is really good. Please can you tag the OOPs concept where are they applied, which video is explaining which feature of OOP. Thank you so much for amazing videos.

  • @Icarusmachete
    @Icarusmachete 4 года назад +1

    The explanation is really worth the time. Thanks alot. Please provide a link to the full video

    • @MarcusBiel
      @MarcusBiel  4 года назад

      The course is a series of videos you can find here on my RUclips channel. Or go to my website Marcus-biel.com, it has all vídeos plus the course as a free book with additional information.

    • @Icarusmachete
      @Icarusmachete 4 года назад +1

      @@MarcusBiel thank you sir

  • @ekkngetich
    @ekkngetich 7 лет назад +1

    wow!Well explained,eye-catching, mind-sticking and interesing! the keywords are home!thanks Marcus biel!cheers

  • @Martin-ko7uw
    @Martin-ko7uw 3 года назад +3

    anyone 2021?

  • @ahmedroot9018
    @ahmedroot9018 4 года назад +1

    thank you so much..
    you deserve the best

  • @seriousskateboarding9938
    @seriousskateboarding9938 3 года назад

    So, if I read this like MethodReadLast.readThird.readSecond.readFirst this would be the correct way to read those periods in the method, correct?

  • @soumadip_banerjee
    @soumadip_banerjee 5 лет назад +3

    Loved the session! Thankeeww so much Marcus! ... May I know what's ur nationality?

    • @MarcusBiel
      @MarcusBiel  5 лет назад +1

      I am from Munich, Germany.

    • @soumadip_banerjee
      @soumadip_banerjee 5 лет назад +2

      @@MarcusBiel I kneeewww ittt!!! I know datttt accent! Ich bin Indien, aber spreche ich ein bisschen Deutsch! Nur ein bisschen.... Und... Noch einmal... Danke Sehr für der Lektion!

  • @aslitatti
    @aslitatti 4 года назад

    What is an access modifier?? Really loving the tutorials btw

    • @MarcusBiel
      @MarcusBiel  4 года назад +1

      A modifier modifying the access?! 😋 Yeah I don't like this word too much either. It is for instance public private or package private (not written, the default).

    • @aslitatti
      @aslitatti 4 года назад +1

      @@MarcusBiel thank you!😂😅

  • @rajakumaran1459
    @rajakumaran1459 2 года назад

    Super. Please give exercise for more practice

  • @tito6121
    @tito6121 3 года назад

    can i still learn this?
    as java 8 is old ,
    sorry i am new to coding

  • @mingcode
    @mingcode 4 года назад +1

    Well Done!

  • @imaginextramusic5530
    @imaginextramusic5530 2 года назад

    Is it better to memorize these?

  • @RachelWho
    @RachelWho 5 лет назад +2

    Thanks man! This is really easy to follow :D

  • @St.Pa-al
    @St.Pa-al 4 года назад

    Thanks, great explanation.

  • @NilutpalTawesome
    @NilutpalTawesome 4 года назад +1

    Amazing

  • @Shvmadogg
    @Shvmadogg 4 года назад

    can you tell me which theme are you using so I'll have easier time following your teaching?
    the default theme comes with different icons and I'm not sure what is what :)

    • @MarcusBiel
      @MarcusBiel  4 года назад

      Intellij idea dracula theme

    • @Shvmadogg
      @Shvmadogg 4 года назад

      I know it's dracula theme, I meant what are the icons on the project tool window

    • @Shvmadogg
      @Shvmadogg 4 года назад

      Thanks BTW :)

    • @MarcusBiel
      @MarcusBiel  4 года назад

      @@Shvmadogg I don't know what you mean. All intellij default.

    • @Shvmadogg
      @Shvmadogg 4 года назад +1

      thanks man. amazing tutorial.

  • @kokolumahesh9201
    @kokolumahesh9201 5 лет назад +1

    Nice

  • @iamnadeemzafar
    @iamnadeemzafar 6 лет назад

    Thank you so much sir.. Can i get your theories in pdf format??

  • @MemeHubSpot
    @MemeHubSpot 4 года назад +1

    Thank you!

  • @johnoden137
    @johnoden137 4 года назад

    Thank you. Excellent!

  • @islamicsolution5618
    @islamicsolution5618 3 года назад

    How can we install.

  • @vicstalr
    @vicstalr 7 лет назад +1

    What is abstraction.

    • @MarcusBiel
      @MarcusBiel  7 лет назад

      I have answered this in my videos about "Interfaces" and "Inheritance" - episodes 16 and 17 - or just continue to watch the episodes, one by one, and you will know, soon! :)

  • @sameer-nb2jv
    @sameer-nb2jv Год назад

    where are oops videos??

  • @fksheke1
    @fksheke1 8 лет назад

    Great tutorial. Thank you.

  • @schandanui
    @schandanui 8 лет назад

    Great video. really helped a lot :)

  • @furydash3165
    @furydash3165 8 лет назад +1

    Hey! Awesome tutorial! But you writed at 20:48 "Variable DeclaRtion".

    • @MarcusBiel
      @MarcusBiel  8 лет назад +2

      +Furydash Thanks for letting me know.

  • @tejaswini9368
    @tejaswini9368 3 года назад

    Thank you sir:)

  • @m.hazimmuaafii7687
    @m.hazimmuaafii7687 4 года назад +1

    thank you

  • @radufffp
    @radufffp 9 лет назад

    great tutorial!

  • @MrPablobb
    @MrPablobb 8 лет назад

    Excellent!!

    • @MarcusBiel
      @MarcusBiel  8 лет назад

      Thanks ☺. Let me know if there is anything I could help you with.

    • @MrPablobb
      @MrPablobb 8 лет назад

      +Marcus Biel yes, perfect sure in the future..thanks!

  • @otaldepeewee3596
    @otaldepeewee3596 Год назад

    Cool.

  • @jxsl13
    @jxsl13 8 лет назад +1

    If methods could cook for me, I'd be so happy.

    • @jxsl13
      @jxsl13 8 лет назад

      and after I wrote this comment, you started talking about cooking, coincidence?

    • @MarcusBiel
      @MarcusBiel  8 лет назад

      +jxsl13 ;-)

  • @itzdoopie8518
    @itzdoopie8518 3 года назад

    video by free code camp lmaoo

    • @MarcusBiel
      @MarcusBiel  3 года назад +1

      Wow Mr. Smart and who created that video?! It was posted on FreeCodeCamp as a copy from my channel with my permision. On FreeCodeCamp, however, you will only find half of my videos actually.