Core Java Tutorial for Beginners

This is a complete in-depth core Java Tutorial for beginners. 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.

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

  1. Java Generics - Generics Basics
  2. Java Generics - Benefits of Generics
  3. Java Generics - Generic Types
  4. Java Generics - Generic Methods in Java
  5. Java Generics - Bounded Type Parameters
  6. Java Generics - Wildcards
  7. Java Generic Methods Examples
  8. Java Generic Interface Examples
  9. Java Generic Class Examples
  10. Java Generics Multiple Type Parameters Example

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

Read complete Java Reflection in Java on Java Reflection Guide

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. The keywords const and goto are reserved, even though they are not currently used. truefalse, and null might seem like keywords, but they are actually literals; you cannot use them as identifiers in your programs. Each Java keyword explained with an example.
  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 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

Comments