Java Tutorial | Learn Java Programming with Examples

This is a complete in-depth core Java Tutorial for beginners. This core Java Tutorial contains the links of all the tutorials in a systematic order starting from beginner’s level to the advanced topics. The source code examples from this up-to-date tutorial are developed using JDK 8 or later and well tested on our local development environment. This tutorial contains more than 300 + articles with source code examples.

Check out YouTube videos on Java programming:

Java programs for beginners at

Getting Started

Java Language Basics

Java Array Tutorial

Java Object-Oriented Programming

  1. What Is Object in Java with Programming Examples
  2. What is Class in Java with Programming Examples
  3. What are All the Different Ways to Create an Object in Java?
  4. java.lang.Object Class methods with Examples
  5. Java Interface
  6. Java Abstract Class
  7. Abstraction in Java with Example
  8. Encapsulation in Java with Example
  9. Inheritance in Java with Example
  10. Polymorphism in Java with Example
  11. Composition in Java with Example
  12. Aggregation in Java with Example
  13. Association in Java with Example
  14. Cohesion in Java with Example
  15. Coupling in Java with Example
  16. Delegation in Java with Example
  17. Oops Concepts in Java
  18. How to Make Immutable Class in Java
  19. Packages in Java with Examples
  20. Overloading Constructors in Java with Examples
  21. Method Overloading in Java with Examples
  22. Nested Classes in Java
Learn more about Object Oriented Design on Java Oops Tutorial

String Handling Tutorial

Exception Handling Tutorial

  1. Java Exception Handling Guide
  2. How the Exception Handling Works in Java
  3. Three Types of Exceptions in Java
  4. Exceptions Hierarchy in Java
  5. Java Chained Exceptions
  6. java.lang.Throwable Class in Java
  7. Exception Handling Keywords in Java
  8. Java try/catch Block
  9. Java throw Keyword
  10. Java throws Keyword
  11. Java finally Block
  12. The try-with-resources Statement
  13. Advantages of Java Exceptions
  14. Java Exception Handling Best Practices
To know in-depth about an exception handling on Java Exception Handling Tutorial

Collection Framework Tutorial

  1. Collections Framework in Java
  2. Collections Framework - The Collection Interface
  3. Collections Framework - The Set Interface
  4. Collections Framework - The SortedSet Interface
  5. Collections Framework - The List Interface
  6. Collections Framework - The Queue Interface
  7. Collections Framework - The Deque Interface
  8. Collections Framework - The Map Interface
  9. Collections Framework - The SortedMap Interface
  10. Collections Framework - ArrayList Class
  11. Collections Framework - LinkedList Class
  12. Collections Framework - CopyOnWriteArrayList
  13. Collections Framework - HashSet Class
  14. Collections Framework - LinkedHashSet Class
  15. Collections Framework - TreeSet Class
  16. Collections Framework - CopyOnWriteArraySet
  17. Collections Framework - EnumSet
  18. Collections Framework - HashMap Class
  19. Collections Framework - LinkedHashMap Class
  20. Collections Framework - TreeMap class
  21. Collections Framework - EnumMap
  22. Collections Framework - WeakHashMap
  23. Collections Framework - IdentityHashMap
Learn more about Java Collections on Java Collections Tutorial

Java Generics Tutorial

Java Input/Output Tutorials

  1. Create File
  2. Write File
  3. Delete File
  4. Copy File
  5. Move File
  6. Rename File
  7. Append to File
  8. Read File using BufferReader
  9. Read File using BufferInputStream
  10. Read File using DataInputStream
  11. Get File Size in Bytes KB MB GB TB
  12. How to write an Object to file in Java
  13. How to Read Object from File
  14. Compress Files in ZIP format in Java
  15. Decompress Files from a ZIP file in Java
  16. Get the current working directory
  17. Create a directory
  18. Delete directory
  19. Copy directory
  20. Traverse /List a directory structure
  21. Check if the directory is empty
To know in-depth about File handling on Java I/O Tutorial

Java Multithreading Tutorial

  1. How to Create and Start a Thread in Java
  2. Java Thread Sleep Example
  3. Java Thread Join Example
  4. Java Thread Set Name Example
  5. Java Thread interrupt Example
  6. Java Thread Priority Example
  7. Java Thread isAlive Example
  8. ThreadGroup class in Java
  9. Thread Class in Java
  10. Runnable Interface in Java
  11. Synchronization in Multithreading Java
  12. ThreadLocal class in Java
To know in-depth about Java multi-threading on Java Multithreading Tutorial

Java Reflection Tutorial

Serialization in Java

  1. Guide to Serialization in Java
  2. Java Transient Keyword
  3. Guide to the understanding of serialVersionUID
  4. Secure Coding Standards for Java Serialization

Java Annotations

  1. Java @Override Annotation
  2. Java @SafeVarargs Annotation
  3. Java @Deprecated Annotation
  4. Java @SuppressWarnings Annotation
  5. Java @FunctionalInterface Annotation
  6. All Java Built-In Annotations Examples

Java Language Keywords

Check out all 50 keywords in the Java programming language.:
  1. abstract Java Keyword
  2. assert Java Keyword
  3. boolean Java Keyword
  4. break Java Keyword
  5. byte Java Keyword
  6. case Java Keyword
  7. catch Java Keyword
  8. char Java Keyword
  9. class Java Keyword
  10. continue Java Keyword
  11. default Java Keyword
  12. do Java Keyword
  13. double Java Keyword
  14. else Java Keyword
  15. enum Java Keyword
  16. extends Java Keyword
  17. final Java Keyword
  18. finally Java Keyword
  19. float Java Keyword
  20. for Java Keyword
  21. if Java Keyword
  22. implements Java Keyword
  23. import Java Keyword
  24. instanceof Java Keyword
  25. int Java Keyword
  26. interface Java Keyword
  27. long Java Keyword
  28. native Java Keyword
  29. new Java Keyword
  30. package Java Keyword
  31. private Java Keyword
  32. protected Java Keyword
  33. public Java Keyword
  34. return Java Keyword
  35. short Java Keyword
  36. static Java Keyword
  37. strictfp Java Keyword
  38. super Java Keyword
  39. switch Java Keyword
  40. synchronized Java Keyword
  41. this Java Keyword
  42. throw Java Keyword
  43. throws Java Keyword
  44. transient Java Keyword
  45. try Java Keyword
  46. void Java Keyword
  47. volatile Java Keyword
  48. while Java Keyword
  49. goto Java Keyword
  50. const Java Keyword

Java best practices

  1. Java Enums and Annotations Best Practices
  2. Java Generics Best Practices
  3. JUnit Framework Best Practices
  4. Single Responsibility Principle
  5. Liskov's Substitution Principle
  6. Interface Segregation Principle
  7. Dependency Inversion Principle
  8. Open Closed Principle
  9. Oops principles in java
  10. Restful API Best Practices
  11. JSP Best Practices
  12. JDBC Best Practices
  13. Collection Best Practices
  14. String Best Practices in Java
  15. Exception Handling Best Practices
  16. Synchronization Best Practices
  17. Guide to JDBC Best Practices
  18. Serialization Best Practices

Java Swing (GUI) Tutorials

  1. Java Swing Hello World Example Tutorial
  2. Java Swing Application with Database Connection
  3. Login Application using Java Swing + JDBC + MySQL Example Tutorial
  4. Registration Form using Java Swing + JDBC + MySQL Example Tutorial
  5. Java Swing Exit Button
  6. Swing ToolTip Tutorial with Example
  7. Java Swing BorderLayout Example
  8. Java Swing GridLayout Tutorial with Examples
  9. Swing Mouse Move Events using MouseMotionAdapter
  10. Java Swing CheckBox Example
  11. Java Swing Radio Button Example
  12. Java Swing Progress Bar Example
  13. Java Swing Combo Box Example
  14. Java Swing Slider Example
  15. Java Swing Toggle Button Example

JavaFX Tutorials

  1. JavaFX Hello World Example Tutorial
  2. Registration Form Using JavaFX with MySQL Database
  3. Login Form Using JavaFX with MySQL Database

Java Programs (For Practices and interviews)

  1. String Programs in Java with Output
  2. Java Program to Count Number of Duplicate Words in String
  3. Java Program to Count Number of Words in Given String
  4. Java Program to Count the Number of Occurrences of Substring in a String
  5. Java Program to Count the Occurrences of Each Character in String
  6. Java Program to Merge two String Arrays  
  7. Java Program to Remove Duplicate Words from String 
  8. Java Program to Reverse a String(5 ways)
  9. Java Program to Reverse Each Word of a String    
  10. Java Program to Swap Two Strings      
  11. How to Check if the String Contains only Digits         
  12. How to Check if the String Contains only Letters  
  13. How to Check If the String Contains Only Letters or Digits 
  14. Java Program to Check if Input String is Palindrome 
  15. Java Program to Find all Permutations of String
  16. Java Program to Remove Duplicate Elements in an Array
  17. Java Program to Find Largest Element in an Array
  18. Java Program to Reverse an Array Without Using Another Array
  19. Java Program to Check the Equality of Two Arrays

Free Spring Boot Tutorial | Full In-depth Course | Learn Spring Boot in 10 Hours

Watch this course on YouTube at Spring Boot Tutorial | Fee 10 Hours Full Course


  1. I am sure it will help many people. Keep up the good work. It's very compelling and I enjoyed browsing the entire blog.
    Business Analytics Course in Bangalore

  2. Very informative blog! There is so much information here that can help thank you for sharing.
    Data Science Syllabus

  3. Really impressed! Information shared was very helpful Your website is very valuable. Thanks for sharing..
    Business Analytics Course in Bangalore

  4. I have read your article, it is very informative and useful to me, I admire the valuable information you offer in your articles. Thanks for posting it ...

    Business Analytics Course in Patna

  5. This is definitely one of my favorite blogs. Every post published did impress me.
    Mlops Training

  6. This is my first time in this blog.Bro this content is Dope.First of All ,its for just saved me from wasting my dollars on non-worthy courses.gracias

  7. This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
    Data Scientist Course in Lucknow

  8. Really impressed! Information shared was very helpful Your website is very valuable. Thanks for sharing.
    Business Analytics Course in Bangalore

  9. A good blog always contains new and exciting information that helps readers to get useful information I am sure this is it.
    Data Science Course in Lucknow

  10. Very informative Blog! There is so much information here that can help thank you for sharing.
    Data Analytics Training in Bangalore

  11. I enjoyed reading your articles. I have bookmarked it and I am looking forward to reading new articles. Thanks for sharing.
    Business Analytics Course in Indore

  12. I was looking for some decent stuff on the subject and have had no luck so far. You just had a new big fan! ...

    Data Scientist Training in Bangalore

  13. Excellently written article and information was helpful. Please keep it up thank for sharing.
    Business Analytics Course in Lucknow

  14. This is very informative post, I have never read a better breakdown on this topic! Java Simply also provides java online tutorial free series for students who want to learn computer related technology,currently we are providing free tutorials on java programming language. Thank you

  15. We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work thank you.
    Data Analytics Course in Chandigarh

  16. A good blog always contains new and exciting information and as I read it I felt that this blog really has all of these qualities that make a blog.
    Data Science Institutes in Bangalore

  17. Very nice job... Thanks for sharing this amazing and educative blog post!
    Data Science Training in Chandigarh

  18. Very good message. I stumbled across your blog and wanted to say that I really enjoyed reading your articles. Anyway, I will subscribe to your feed and hope you post again soon.
    Data Scientist Course in India

  19. Wonderful blog post. It's absolute magic on your part! Hope you continue like this!
    Data Analytics Training in Bangalore

  20. I got to this amazing site not long ago. I actually captured with the piece of resources you have got here. Thanks for making such wonderful blog page.
    Business Analytics Course in Indore

  21. This is an informative and knowledgeable article. therefore, I would like to thank you for your effort in writing this article.
    Data Science Course in Bangalore

  22. This is an excellent article. I like this topic. I have found a lot of interesting things on this site.Thanks for posting this again.
    Business Analytics Course in Jaipur

  23. I think this is an informative and very useful and knowledgeable blog. therefore, I would like to thank you for your effort.
    Data Science Course in Jaipur

  24. I wanted to leave a little comment to support you and wish you the best of luck. We wish you the best of luck in all of your blogging endeavors.

    Data Analytics Course in Patna

  25. Hi, This article is probably where I got the most useful information for my research. Do you know of any other websites on this topic?
    Data Science Training in Ahmedabad

  26. It is a great pleasure to read your message. It's full of information I'm looking for and love to post a comment that says "The content of your post is amazing". Excellent work.

    Business Analytics Course in Ernakulam

  27. Its content is brilliant in many ways. I think it is an attractive and revealing material. Thank you very much for caring about your content and your readers.

    Business Analytics Course in Ernakulam

  28. Advance your technical skills required to crack huge datasets to bring out new possibilities from data. Join the Data Science institutes in Bangalore and get access to top industry trainers, LMS, live projects, assignments, and mock interviews to skyrocket your career in the ever- evolving field of Data Science.
    Data Science Training in Bangalore


Post a Comment