BeginnersBook

  • Home
  • All Tutorials
    • Learn Servlet
    • Learn JSP
    • Learn JSTL
    • Learn C
    • Learn C++
    • Learn MongoDB
    • Learn XML
    • Learn Python
    • Learn Perl
    • Learn Kotlin
    • Learn jQuery
  • Core Java
  • OOPs
  • Collections
  • Java I/O
  • JSON
  • DBMS

Java tutorial for beginners: Learn Java Programming

This tutorial would help you learn Java like a pro. I have shared 500+ tutorials on various topics of Java, including tutorials on core java and advanced Java concepts along with several Java programming examples to help you understand better.

This core Java Tutorial contains the links of all the tutorials in a systematic order starting from beginner’s level to the advanced level. Whether you are a college student looking to learn Java programming for free or a company employee learning advanced Java topics for building an application in Java, this Java tutorial would definitely be useful for you so Let’s start learning.

Table of contents

  • Java Tutorial
  • Tutorials on Java basics for beginners
  • Java OOPs tutorial
  • Java Exception Handling Tutorial
  • Java Collections Tutorial
  • Tutorial on Annotation, Enum and Regex
  • Miscellaneous Core Java Tutorial
  • Java 8 Tutorial
  • Java 9 Features
  • Java Input/Output Tutorials
  • Java Programs

Java Tutorial

To learn Java programming, refer these tutorials in the given order. These tutorials are written for beginners so even if you have no prior knowledge in Java, you won’t face any difficulty understanding these tutorials(this page includes core and advanced Java tutorials).

Tutorials on Java basics for beginners

Start from here. An introduction to java and java basics with examples

  1. Introduction to Java
  2. History of Java
  3. Features of Java
  4. C++ vs Java
  5. JDK vs JRE vs JVM
  6. Java Virtual Machine(JVM) Basics
  7. First Java Program
  8. Variables in Java
  9. Java Data Types
  10. Java Operators
  11. If-else in Java
  12. Switch-Case in Java
  13. Java For loop
  14. Java While loop
  15. do-while loop in Java
  16. Java Continue statement
  17. Java Break statement

Java OOPs tutorial

Following are the some of the most popular topics related to Object Oriented programming. Learn more at OOPS Concepts

  1. Constructor in Java
  2. Static keyword in Java
  3. Java Inheritance with example
  4. Types of inheritance in Java
  5. Aggregation in Java
  6. Association in Java
  7. Super Keyword in Java
  8. Method overloading in Java
  9. Method overriding in Java
  10. Java – Method Overloading vs Method Overriding
  11. Polymorphism in Java
  12. Types of polymorphism in Java
  13. Static and dynamic binding
  14. Abstract class in Java
  15. Java Abstract method with example
  16. Interface in Java
  17. Java – Abstract class vs interface
  18. Java Encapsulation with example
  19. Java Packages with examples
  20. Access modifiers in Java
  21. Garbage Collection in Java
  22. final keyword

Java Exception Handling Tutorial

  1. Java Exception handling
  2. Java try-catch block
  3. Java finally block
  4. How to throw exception in Java
  5. Custom Exception in Java
  6. Exception Examples

Java Collections Tutorial

I have written several tutorials on Java collections Framework, These are the few important topics I have picked for you to build basics, if you want to learn Java collections from start and go through all the tutorials on this topic, then refer this complete guide: Learn Java Collections, this guide contains all the topics starting from a beginner level to the advanced level.

  1. Java ArrayList
  2. Java LinkedList
  3. Vector in Java
  4. HashMap in Java
  5. Java TreeMap
  6. Java LinkedHashMap
  7. Java HashSet
  8. TreeSet in Java
  9. LinkedHashSet
  10. Hashtable in Java
  11. Queue
  12. PriorityQueue
  13. Deque & ArrayDeque
  14. Comparable Interface
  15. Comparator Interface

Tutorial on Annotation, Enum and Regex

  1. Java Enum
  2. Java Annotations
  3. Java Regex

Miscellaneous Core Java Tutorial

  1. String in Java
  2. Java Multithreading
  3. Java Serialization
  4. Java AWT Tutorial
  5. Java Swing Tutorial
  6. Java autoboxing and unboxing
  7. Wrapper Class in Java

Java 8 Tutorial

There are several new features introduced in Java 8. I have covered all the Java 8 Features in the separate tutorials, here are the links:

  1. Java Lambda Expressions
  2. Java Method References
  3. Java Functional Interfaces
  4. Java Stream Tutorial
  5. Java Stream Filter Tutorial
  6. Java Interface changes – introduction of default and static methods
  7. Java forEach
  8. Java Stream Collectors class
  9. Java StringJoiner class
  10. Java Optional class
  11. Java Arrays Parallel Sort

Java 9 Features

Here are the tutorials on Java 9 features –

  1. Java 9 – REPL (JShell)
  2. Factory methods to create immutable List, Set and Map
  3. Introduction of Private methods in interfaces
  4. Try with resources enhancements
  5. Anonymous inner class and diamond operator
  6. @SafeVarargs Annotation (with examples)
  7. Java 9 – Stream API Enhancements (With Examples)
  8. Java 9 Modules

Java Input/Output Tutorials

  1. Create a file in java
  2. Read a file in java
  3. Write a file
  4. Append to a file in java
  5. How to delete file in Java
  6. How to compress a File in GZip format
  7. How to Copy a File to another File in Java
  8. How to get the last modified date of a file in java
  9. How to make a File Read Only in Java
  10. How to check if a File is hidden
    For more Java I/O tutorials, refer this: Java I/O

Java Programs

I have shared 100+ programs of Java programming language, links for some of the programs are shared below. These programs are especially shared for beginners.

To get the complete list of java programs, refer: Java Examples.

  1. Java Program to add two numbers
  2. Java program to Display Fibonacci Series
  3. Java program to Find Factorial
  4. Java program to swap two numbers using bitwise operator
  5. Java program to find largest of three numbers using ternary operator
  6. Java program to check leap year
  7. Java Program to Reverse an input number
  8. Java Program to Calculate area of circle
  9. Java Program to Calculate area of triangle
  10. Java Program to Find sum of array elements
  11. Program to Check for prime number
  12. Program to Check whether number is even or odd in Java
  13. Java Linear Search Program
  14. Java Binary Search Program
  15. Program to Generate random number in Java
  16. Java program for Binary to decimal conversion
  17. Java Program Get input from user
Java Introduction ❯

Comments

  1. malesh says

    July 9, 2014 at 2:22 PM

    hi
    thanks for your website its very helpful for me.
    please send me some examples for oop concepts

    thanks
    malesh
    ([email protected])

    Reply
    • Chaitanya Singh says

      July 10, 2014 at 5:29 AM

      Refer this: https://beginnersbook.com/2013/04/oops-concepts/

      Reply
      • guna says

        March 22, 2016 at 3:38 PM

        do u have any videos related to learn java

        Reply
  2. Revanasiddappa says

    July 27, 2014 at 1:15 PM

    Wrapper Classes Are Not Explained……….

    please provide Wrapper Classes Concept in this tutorial

    Thank You so much…………….

    Reply
  3. Revanasiddappa says

    July 27, 2014 at 1:37 PM

    Java TYPE CASTING also not explained

    Reply
  4. junaid ahmad says

    August 12, 2014 at 8:09 PM

    assalam-o-alaikum Sir!
    i am beginner to JAVA
    my question is, how to pass a loop variable value to textfield in JFrame.
    e.g

    for(int i=0;i<5;i++)
    {
    textfield.settext(Integer.toString(i));
    try{ Thread.sleep(1000);}
    catch(Exception obj){System.err.println("Exception occured");}

    }

    it only displays the last value of loop with terminates in textfield.

    Reply
    • Naveed says

      October 7, 2015 at 8:29 PM

      You are using only textfield. so in every iteration of loop, same textfield is updating.

      Reply
    • Heil says

      October 17, 2015 at 11:56 AM

      You’ve written the wrong program dude.

      Reply
  5. gopal says

    September 18, 2014 at 6:39 AM

    Thank you,This tutorial is very nice.
    please provide concept and example of java reflection.

    Reply
  6. Mahendra says

    September 21, 2014 at 11:06 AM

    thank for this website.
    it is very useful for the java programmers.
    we need more basic concepts about java.

    Reply
  7. Yakoob Shaik says

    April 28, 2015 at 4:45 AM

    Hi, thanks for providing such an extraordinary tutorials.

    Can you please provide Socket Programming tutorials.
    If you provide it will be very useful for us.

    Thanking you…

    Reply
  8. AKASHDEEP says

    July 1, 2015 at 6:53 AM

    there is no swing tutorial.
    can u plz add swing tutorial.

    Reply
    • Chaitanya Singh says

      July 5, 2015 at 4:37 AM

      Hi Akashdeep, I would be adding swing tutorial soon.

      Reply
  9. Shiva raju says

    July 26, 2015 at 3:50 PM

    thank u sir ur notes can be understood by any individual
    sir can u plz upload priority queue.

    Reply
  10. Mastanvali says

    July 27, 2015 at 11:23 AM

    its very good turorial……….

    Reply
  11. Mangala says

    August 6, 2015 at 12:24 PM

    Thank you sir. For wonderful explanation we missing JDBC and SWING also. Please provide these tutorials if possible. Once again thanks.

    Reply
  12. Subash says

    August 13, 2015 at 6:29 AM

    This tutorial is very useful for beginners,I am a tester but learning quickly…………:)

    Reply
  13. vikram says

    August 16, 2015 at 12:24 PM

    Hello Sir

    I’m IT professional with 7 yrs of exp in Functional Testing. I’ve never done programming.
    Now I’m planning to learn Selenium for which I need to learn Core Java.
    Please guide me in learning Java.
    I’m finding it difficult to start with.

    regards

    Vikram

    Reply
  14. veeresh b says

    August 18, 2015 at 3:48 PM

    I am interested in this web site. so kindly help me. I want learn more & I want improve my self.This is best opportunity to improve my subject knowledge.

    Reply
  15. dinesh yadav says

    September 6, 2015 at 3:11 PM

    it’s very useful site for java beginner and we can say awesome and incredible.
    Thanks,
    Dinesh

    Reply
  16. Kiranmai says

    September 10, 2015 at 10:58 AM

    can you please tell the difference between variable and reference variable in java

    Reply
  17. mayur says

    September 11, 2015 at 10:15 AM

    String handling concept, Wrapper Classes,type casting Are Not Explained

    Reply
  18. manasa says

    September 13, 2015 at 4:49 PM

    how to create a welcome dialog box in java and welcome message as first name and last name?
    plz rpy to my qution. thank you

    Reply
  19. Eswar says

    October 13, 2015 at 6:43 AM

    superb website for Java Beginners!

    Reply
  20. Hemant says

    November 9, 2015 at 6:55 PM

    you guys should create an app for this website.offline one… there will be lot of downloads

    Reply
  21. Francis says

    November 12, 2015 at 7:46 AM

    The articles in your website that I’ve read so far are very unique and easy to understand. I’m thankful that I found these articles. A great help in time of need.

    Reply
  22. Ankita says

    January 19, 2016 at 10:25 AM

    Please Provide Swing… I am missing it..

    Reply
  23. niranjan says

    February 5, 2016 at 9:50 AM

    Hi, your website was really gud , but u missed the OBject class…can u please update the object class along with their methods…

    Reply
  24. Imtiaz ahmad says

    February 11, 2016 at 7:45 PM

    Hello ! sir its nice tutorials but plz sir upload new tutorials of awt .

    Reply
  25. Karthick says

    February 21, 2016 at 2:33 PM

    your website is really help for beginners.pls upload servlet and jsp tutorials with examples from basic to database connectivity.

    Reply
  26. Naresh kumar says

    February 23, 2016 at 9:15 AM

    Hi Sir,
    Its a awesome tutorial for beginners.
    Could you please provides the tutorial for selenium.
    Once again thanks for your hard work and patience.
    Naresh kumar

    Reply
  27. Ankit says

    March 3, 2016 at 2:27 AM

    Hello Chaitanya,
    I am pretty sure that over a period of time you will upload more concepts and tutorials for different technologies, but at the same time I would suggest or better request you to add a frame where you or anybody can post different questions related to particular concept and a person can try writing a code for it. Like a list of programs or something similar to exercises given in Kathy Serra , which on solving can make person better understand the concepts and have hands on programming experience.

    Reply
    • Chaitanya Singh says

      March 7, 2016 at 8:09 AM

      Seems like a great idea. I would definitely think about it.

      Reply
      • Gaurav Chauhan says

        May 29, 2016 at 9:08 AM

        Hi buddy,.I have no prior knowledge of any programming language.Can I learn java directly from here and have you covered all java tutorials

        Reply
        • Aniruddha says

          June 13, 2016 at 8:06 AM

          yes.Its better and easy way …Go ahead..

          Reply
  28. Kuntal says

    April 3, 2016 at 4:30 AM

    Thanks a lot Chaitanya.Great website and one stop solution of any java related problems.Please provide more on Database connectivity using oracle 10g/11g and try to provide Asp.net & VB.net tutorials also.

    Reply
  29. Arjun says

    April 19, 2016 at 5:52 AM

    Hi Chaitanya –

    Material is very impressive, Please help me with PDF if you are having for the same.

    Reply
  30. Bhanu ravali says

    April 19, 2016 at 10:15 AM

    What are the java frameworks ?which we have to learn as a fresher?

    Reply
  31. Bharat Kumar says

    May 27, 2016 at 5:43 PM

    Why do we use abstract method while we have facility of method-overriding?

    Reply
  32. bisai lakshmana says

    June 15, 2016 at 6:49 AM

    This is really helpful for a beginner.It makes us like no need to go for any coaching centers…just simply sit at home and can learn all java topics …..thank you a lot

    Reply
  33. Maregu Assefa says

    July 28, 2016 at 2:34 PM

    Appreciate for your simple and straightforward explanation….!
    But It would be very good, if you also post about Java Networking and and Crypthography.

    Reply
  34. Sumit says

    August 4, 2016 at 11:08 AM

    hi Chaitanya Singh,
    really helpful content .please provide material for spring and hibernate .

    Reply
  35. shubham gupta says

    August 5, 2016 at 6:11 PM

    “factory method” is not provided. Please explain what is “factory method”

    Reply
  36. kusum says

    September 9, 2016 at 10:34 AM

    how can i download this tutorials
    i want to keep it
    send me link of download plz

    Reply
  37. mathura says

    September 13, 2016 at 2:03 PM

    This website is useful for beginners

    Reply
  38. Gauri says

    October 25, 2016 at 1:28 PM

    Hi Chaitanya
    Nice tutorials, Can you put them as a series, So that I don’t have to come back to the homepage to view the second tutorial in the list. It is too much back and forth. Also, the series will act as a roadmap for learning java.

    Reply
  39. Gath says

    February 9, 2017 at 4:50 PM

    Hey! Big thanks to the person that thought about making this website. Very helpful for newbie programmers like myself. :)

    Reply
  40. Dawn Staples says

    February 16, 2017 at 3:25 PM

    I am very thankful for this website. You have put together a very good selection of material that is covered in learning Java. A very big thanks to you!

    Reply
  41. sagar says

    February 23, 2017 at 12:17 PM

    Hey! Big thanks to the person that thought about making this website. Very helpful for newbie programmers like myself. :)

    Reply
  42. Nish says

    March 23, 2017 at 10:20 AM

    Can u add JVM full concept to get to know about memory allocation

    Reply
  43. vengatesh says

    March 29, 2017 at 2:26 AM

    Post AngularJs Tutorial with Detailed Examples

    Reply
  44. steve says

    April 13, 2017 at 4:06 AM

    Excellent site. Good job, and thank you. It had been a while since I wrote thread applications and you got me up to speed quickly. Appreciate that. Any input on sockets in java.

    Reply
  45. Daivansh says

    June 7, 2017 at 2:14 AM

    Best Tutorial.. Please can you add Spring and Hibernate?.. Thanks

    Reply
  46. Nimesh says

    June 19, 2017 at 2:41 PM

    send me some basic java codes
    ___I am a beginner and I have installed eclipse yesterday and I want to learn java

    Reply
  47. Yuliya says

    July 10, 2017 at 11:20 AM

    Hi Chaitanya, thanks a lot for such a useful website for those of us who are just starting to learn Java! The basic programs are very helpful.

    Reply
  48. Naveen says

    August 18, 2017 at 5:17 AM

    Sir please provide programming techniques how to code any programs in java

    Reply
  49. Doreck says

    August 31, 2017 at 9:46 AM

    thank you for your great information
    However, i would like to know about Parsing in Java;What does it mean and how does it work?

    Reply

Leave a Reply Cancel reply

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

Other Tutorials

  • Java Tutorial
  • Java Collections
  • Java I/O Tutorial
  • C Tutorial
  • C++ Tutorial
  • Kotlin Tutorial
  • MongoDB Tutorial
  • Python Tutorial
  • Perl Tutorial
  • XML Tutorial
  • DBMS Tutorial
  • JSON Tutorial
  • Servlet Tutorial
  • JSP Tutorial
  • JSTL Tutorial

Recently Added..

  • JSON Tutorial
  • Java Regular Expressions Tutorial
  • Java Enum Tutorial
  • Java Annotations Tutorial

Copyright © 2012 – 2022 BeginnersBook . Privacy Policy . Sitemap