Java Programming

Java ProgrammingIn this Java programming Tutorial I’ll teach you all of the core knowledge needed to write Java code in 30 minutes. This is the most popular request from everyone.

I specifically cover the following topics: primitive data types, comments, class, import, Scanner, final, Strings, static, private, protected, public, constructors, math, hasNextLine, nextLine, getters, setters, method overloading, Random, casting, toString, conversion from Strings to primitives, converting from primitives to Strings, if, else, else if, print, println, printf, logical operators, comparison operators, ternary operator, switch, for, while, break, continue, do while, polymorphism, arrays, for each, multidimensional arrays and more.

If you like videos like this it helps my Google search rank when you share on Google Plus with a click here [googleplusone]

If you prefer a slower Java tutorial I have one here. Here I show you how to install Eclipse and Java.

Java Programming Code

36 thoughts on “Java Programming”

  1. Hey, I really enjoy your videos and I have much respect for you.

    How can I go further into learning the java language?
    For example how can I train and test what I have in my knowledge?

  2. Hi Derek,

    I really like the way you explain. I would like to know and learn the difference between Java 6 and Java 7 and also about new features of Java 8.
    Have already given tutorial on this ? If not, please point out the differences / additions / enhancements of Java 6, Java 7, Java 8 if possible. That would be of great help. This is actually a basic interview question for which there is no proper answer on internet.

    I hope to see the tutorial soon 🙂

    Thank you for wonderful tutorials. Keep up the good work !

    Swati.

  3. Hi Derek – Thanks very much! This is a lot of stuff put togther in best possible way.

    Appreciate your Tutorial. 🙂

  4. Hi Derek. You are doing an awsome work for mankind. ThankYou.

    I really want to be a Software Developer in Java and would like to have some advices from you.

    Thank you a lot.

    1. Thank you 🙂 I try to do my best. Basically it just comes down to practice. Get very good at solving problems with UML and object oriented design. Learn how to write flexible code with design patterns and refactoring. Learn how to think like a programmer with algorithms. Most importantly think about and create projects that are fun. Stick to it and you’ll do great.

  5. nice job derek on both java and php. was wondering if you could do video – address and compare lambda vs closure vs java vs lambda in php?? obviously i havent messed with them much but to understand the difference wud totally help. thanks kindly.

  6. very nice video, a little bit too fast but I think it will help me with my project. I am going to start watching your videos, I am trying to learn java for my class and the other videos that I’ve seen don’t have that much of explanation. I hope your videos make me understand what I could not understand 2 computer science classes before

      1. is there any video that you would recommend for me to create a book contact project? I would like to create all these in my project public interface ProjTwo {
        public void readInitialFromFile();
        public void writeFinalToFile();
        public void addContact(Contact c);
        public void deleteContact(String nm);
        public void showByName(String nm);
        public void showByPhoneNumber(long pN);
        public void showByComment(String c);
        }

        with
        Contact,
        VectorOfContacts,
        OrderedVectorOfContacts,
        and Driver2

  7. Hello Derek. I have started learning Java from the book Head First Java – 2nd Edition, you recommended on your youtube channel. Can you please tell me the next book / books you recommend to expand my knowledge? I want to learn the language properly before starting with your great playlist of tutorials. Thanks in advance, have a great day.

      1. Ok, I’ll follow your advice. Btw great job with your tutorials, I have subscribed. You also have my respect.

  8. Hi Derek! Awesome job you have done! It’s the best tutorial video of core Java that I have ever gone through! I just finish my study of core Java, and the video content, though only 30 minutes, has covered what I have learned in the past two months , and even more!

    It is really impressive video and I appreciate your share and your effort. You do have my respect!

    And I have a question here, since I have just finished my study of core Java, what do you think is the next move on the way to become a real java programmer ? I mean, what to learn after core java? Where can I find some project to practice my coding?

    Another question Is web development or mobile development a better market to enter in the coming few years?

    Thank you!

    1. Thank you for the compliment 🙂 I’d say the next thing you need to work on is problem solving. i cover that in my UML, object oriented design, design patterns and refactoring tutorials. There is a ton of web development work out there. PHP is still the dominate language there though. I have also found a ton of mobile work by focusing on creating private apps for small business owners. It doesn’t seem like I have any competition locally for that. Best of luck.

  9. I found your video on YouTube as I am in a Java class and this has really helped me get a better handle on what I am doing. THANK YOU for the video and this page.

      1. Hi. Pasting this code into android studio main activity creates all sorts of errors – a lot based on the static declarations. Would that be expected?

  10. Hi Derek,
    Thanks for all of the wonderful java video I enjoy so much. May I know if you are still going to teach hibernate, spring & other related video.
    Thanks

  11. Hello, Derek,

    Thanks a lot for your awesome work!
    I am quite new to this so I will really appreciate some advice. The copy/pasted code does not compile on Eclipse, I get the message “Build path specifies execution environment OSGi/Minimum-1.2. There are no JREs installed in the workspace that are strictly compatible with this environment.” To solve this, I have tried new projects and tried different options in the field “use an execution environment JRE”. It didn’t work. Probably the problem comes from other versions of java I previously had on my computer.
    If I run java -version on Command Prompt I get 1.8.0_31 version even if I deleted the 8th version and reconnected Eclipse to the 7th version (in Preferences Installed JREs).
    I also have from previous trials a program called DrJava and there the code is compiling, but I want to run it in Eclipse so I can follow you better and I also want to understand what I did wrong.

    Thanks a lot!

Leave a Reply

Your email address will not be published. Required fields are marked *