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.
Getting Started
Java Language Basics
- Variables in Java
- Java main() Method
- Java Access Modifiers
- Arithmetic Operators
- Bitwise Operators
- Equality, Relational, and Conditional Operators
- Primitive Data Types in Java
- Java if Statement
- Java Switch Case Statement
- Java for Loop
- Java while Loop
- Java do while Loop
- Java continue Statement
- Java break Statement
Java Array Tutorial
Java Object-Oriented Programming
- What Is Object in Java with Programming Examples
- What is Class in Java with Programming Examples
- What are All the Different Ways to Create an Object in Java?
- java.lang.Object Class methods with Examples
- Java Interface
- Java Abstract Class
- Abstraction in Java with Example
- Encapsulation in Java with Example
- Inheritance in Java with Example
- Polymorphism in Java with Example
- Composition in Java with Example
- Aggregation in Java with Example
- Association in Java with Example
- Cohesion in Java with Example
- Coupling in Java with Example
- Delegation in Java with Example
- Oops Concepts in Java
- How to Make Immutable Class in Java
- Packages in Java with Examples
- Overloading Constructors in Java with Examples
- Method Overloading in Java with Examples
- Nested Classes in Java
Learn more about Object Oriented Design on Java Oops Tutorial
Wrapper Classes Tutorial
String Handling Tutorial
- Java String Class API Tutorial
- Java StringBuffer Class API Tutorial
- Java StringBuilder Class API Tutorial
- Guide to Java String Constant Pool
- Guide to String Best Practices in Java (Best Practice)
- String Special Operations with Examples
- String Comparison Methods with Examples
- String Methods for Character Extraction
- String Searching Methods with Examples
- String Modifying Methods with Examples
To know in-depth about String, StringBuilder, and StringBuffer on Java String Handling Tutorial
Exception Handling Tutorial
- Java Exception Handling Guide
- How the Exception Handling Works in Java
- Three Types of Exceptions in Java
- Exceptions Hierarchy in Java
- Java Chained Exceptions
- java.lang.Throwable Class in Java
- Exception Handling Keywords in Java
- Java try/catch Block
- Java throw Keyword
- Java throws Keyword
- Java finally Block
- The try-with-resources Statement
- Advantages of Java Exceptions
- Java Exception Handling Best Practices
To know in-depth about an exception handling on Java Exception Handling Tutorial
Collection Framework Tutorial
- Collections Framework in Java
- Collections Framework - The Collection Interface
- Collections Framework - The Set Interface
- Collections Framework - The SortedSet Interface
- Collections Framework - The List Interface
- Collections Framework - The Queue Interface
- Collections Framework - The Deque Interface
- Collections Framework - The Map Interface
- Collections Framework - The SortedMap Interface
- Collections Framework - ArrayList Class
- Collections Framework - LinkedList Class
- Collections Framework - CopyOnWriteArrayList
- Collections Framework - HashSet Class
- Collections Framework - LinkedHashSet Class
- Collections Framework - TreeSet Class
- Collections Framework - CopyOnWriteArraySet
- Collections Framework - EnumSet
- Collections Framework - HashMap Class
- Collections Framework - LinkedHashMap Class
- Collections Framework - TreeMap class
- Collections Framework - EnumMap
- Collections Framework - WeakHashMap
- Collections Framework - IdentityHashMap
Learn more about Java Collections on Java Collections Tutorial
Java Generics Tutorial
- Java Generics - Generics Basics
- Java Generics - Benefits of Generics
- Java Generics - Generic Types
- Java Generics - Generic Methods in Java
- Java Generics - Bounded Type Parameters
- Java Generics - Wildcards
- Java Generic Methods Examples
- Java Generic Interface Examples
- Java Generic Class Examples
- Java Generics Multiple Type Parameters Example
Java Input/Output Tutorials
- Create File
- Write File
- Delete File
- Copy File
- Move File
- Rename File
- Append to File
- Read File using BufferReader
- Read File using BufferInputStream
- Read File using DataInputStream
- Get File Size in Bytes KB MB GB TB
- How to write an Object to file in Java
- How to Read Object from File
- Compress Files in ZIP format in Java
- Decompress Files from a ZIP file in Java
- Get the current working directory
- Create a directory
- Delete directory
- Copy directory
- Traverse /List a directory structure
- Check if the directory is empty
To know in-depth about File handling on Java I/O Tutorial
Java Multithreading Tutorial
- How to Create and Start a Thread in Java
- Java Thread Sleep Example
- Java Thread Join Example
- Java Thread Set Name Example
- Java Thread interrupt Example
- Java Thread Priority Example
- Java Thread isAlive Example
- ThreadGroup Class in Java
- Thread Class in Java
- Runnable Interface in Java
- Synchronization in Multithreading Java
- 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
- Guide to Serialization in Java
- Java Transient Keyword
- Guide to the understanding of serialVersionUID
- Secure Coding Standards for Java Serialization
Java Annotations
- Java @Override Annotation
- Java @SafeVarargs Annotation
- Java @Deprecated Annotation
- Java @SuppressWarnings Annotation
- Java @FunctionalInterface Annotation
- 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. true, false, 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.- abstract Java Keyword
- assert Java Keyword
- boolean Java Keyword
- break Java Keyword
- byte Java Keyword
- case Java Keyword
- catch Java Keyword
- char Java Keyword
- class Java Keyword
- continue Java Keyword
- default Java Keyword
- do Java Keyword
- double Java Keyword
- else Java Keyword
- enum Java Keyword
- extends Java Keyword
- final Java Keyword
- finally Java Keyword
- float Java Keyword
- for Java Keyword
- if Java Keyword
- implements Java Keyword
- import Java Keyword
- instanceof Java Keyword
- int Java Keyword
- interface Java Keyword
- long Java Keyword
- native Java Keyword
- new Java Keyword
- package Java Keyword
- private Java Keyword
- protected Java Keyword
- public Java Keyword
- return Java Keyword
- short Java Keyword
- static Java Keyword
- strictfp Java Keyword
- super Java Keyword
- switch Java Keyword
- synchronized Java Keyword
- this Java Keyword
- throw Java Keyword
- throws Java Keyword
- transient Java Keyword
- try Java Keyword
- void Java Keyword
- volatile Java Keyword
- while Java Keyword
- goto Java Keyword
- const Java Keyword
Java best practices
- Java Enums and Annotations Best Practices
- Java Generics Best Practices
- JUnit Framework Best Practices
- Single Responsibility Principle
- Liskov's Substitution Principle
- Interface Segregation Principle
- Dependency Inversion Principle
- Open Closed Principle
- Oops principles in java
- Restful API Best Practices
- JSP Best Practices
- JDBC Best Practices
- Collection Best Practices
- String Best Practices in Java
- Exception Handling Best Practices
- Synchronization Best Practices
- Guide to JDBC Best Practices
- Serialization Best Practices
Java Programs (For Practices and interviews)
- String Programs in Java with Output
- Java program to Count Number of Duplicate Words in String
- Java Program to Count Number of Words in Given String
- Java Program to Count the Number of Occurrences of Substring in a String
- Java Program to Count the Occurrences of Each Character in String
- Java Program to Merge two String Arrays
- Java Program to Remove Duplicate Words from String
- Java Program to Reverse a String(5 ways)
- Java Program to Reverse Each Word of a String
- Java Program to Swap Two Strings
- How to Check if the String Contains only Digits
- How to Check if the String Contains only Letters
- How to Check If the String Contains Only Letters or Digits
- Java Program to Check if Input String is Palindrome
- Java Program to Find all Permutations of String
- Java Program to Remove Duplicate Elements in an Array
- Java Program to Find Largest Element in an Array
- Java Program to Reverse an Array Without Using Another Array
- Java Program to Check the Equality of Two Arrays
Comments
Post a Comment
Leave Comment