Welcome to Core Java Tutorial. I have written a lot on Core Java and Java EE frameworks. There was no index post for Core Java tutorial and I used to get emails asking to make one so that any beginner can follow them and learn core java programming. Finally, I got time and here I am listing all the core java tutorial related posts that I think will help you in learning core java in no time. This list is updated till Java-10 and soon it will be updated with the latest changes in Java-11 and beyond.
Core Java Tutorial
These core java tutorial assume that you have some basic knowledge of programming. These core java tutorial posts are not for someone who doesn’t know if-else blocks or for-loop etc. So why waste any more time, just read them in the below order and learn core java programming.
If you think you know all about Java, just scroll below and read tutorials in “Advanced Topics” section, I am sure you will find something worth reading.
- Setting up Java in Windows OS
- Writing your First Java Program
- Java Method
- Constructor in Java
- Java Access Modifiers – public, protected, private and default
- Java for loop
- Java while loop
- Java do while loop
- Java static keyword
- Java break keyword
- Java continue keyword
- OOPS Concepts
- Composition in Java
- Inheritance in Java
- Composition vs Inheritance in Java
- Java Nested Classes
- Java Data Types, Primitives and Binary Literals
- Java Autoboxing and Unboxing
- Java Wrapper Classes
- Java Ternary Operator
- Abstract Class in Java
- Interface in Java
- Difference between Abstract Class and Interface in Java
- Why String is immutable and final?
- Understanding Java String Pool
- Java String subsequence example
- Java String compareTo example
- Java String substring example
- Converting String to char and vice versa
- Java Split String example
- String to byte array and vice versa
- String to char array
- Java String concatenation
- String, StringBuffer and StringBuilder in Java
- String Programs in Java
- Initializing an Array in Java
- Two dimensional array in java
- Java Array of ArrayList
- String to String Array Example
- Java Variable Arguments Explained
- Java Array add elements
- Sorting an Array in Java
- Java String Array to String
- Java ArrayList to Array
- Converting Array to ArrayList in Java
- How to copy arrays in Java
- Java Annotations Tutorial
- Java @Override Annotation
- Java Enum Example Tutorial
- Java Collections Framework Tutorial
- Java List
- Java ArrayList
- Java LinkedList
- Java Set
- Java HashSet
- Java TreeSet
- Java Map
- Java HashMap
- Java SortedMap
- Java TreeMap
- Java Queue
- Java Stack
- Java Iterator
- Java ListIterator
- Java PriorityQueue Example
- Priority Queue Java
- ArrayList vs CopyOnWriteArrayList
- How to avoid ConcurrentModificationException when using an Iterator
- Java Generics Example Tutorial
- Create a New File in Java
- Delete a File in Java
- File separators in Java
- Delete a Directory Recursively in Java
- Rename and Move a File in Java
- Getting File Size in Java
- Get File Extension in Java
- How to check if File exists in Java
- How to check if File is a Directory in Java
- How to get File last modified date in Java
- Java FileNameFilter example to list specific files
- Java File Path, Absolute Path and Canonical Path Explained
- How to set File Permissions in Java
- 4 ways to copy File in Java
- Reading File in Java using BufferedReader, Scanner, Files
- Java Scanner Class
- Open a File in Java
- Read a File to String in Java
- Java Read file line by line
- How to write a File in Java
- How to append data to a File in Java
- Converting InputStream to File
- Java Random Access File Example
- Download File from URL Example
- Java GZip Example
- Temp Files in Java
- Reading a CSV File using Java Scanner Class
- Java Property File Example
- Exception Handling in Java
- java.lang.NoSuchMethodError
- java.lang.NullPointerException
- Threads in Java
- Thread Life Cycle
- Thread Sleep Example
- Thread join Example
- Thread wait, notify, notifyAll Example
- Thread Safety in Java – Synchronization
- Java ThreadLocal Example
- Java Timer and TimerTask Example
- Java Thread Pool Example
- Java Callable Future Example
- Java FutureTask Example
- Java ScheduledThreadPoolExecutor Example
- Java Lock Example
- Regular Expressions in Java Example Tutorial
- Validating Email Address using Regular Expression in Java
- Validating Phone Number using Regex in Java
- Java Reflection API Tutorial
- String in switch case
- Try with Resources – Java ARM
- Binary Literals in Java
- Underscores in Numeric Literals
- Catching Multiple Exceptions in a single catch block
- Java PosixFilePermission example to set File Permissions
- Java 8 Features Overview
- Java 8 interface changes
- Lambda Expressions in Java
- Stream API in Java
- Java Date Time API Example Tutorial
- Java Spliterator
- Java 9 Features
- Java 9 private method in interfaces
- Java 9 try-with-resources improvements
- Java 9 Optional class improvements
- Java 9 Stream API improvements
- Java 9 “var” for local variables
- Java 9 “_” (underscore) changes
- Java 9 Factory Methods for Immutable List
- Java 9 Factory Methods for Immutable Set
- Java 9 Factory Methods for Immutable Map
- Java 9 Modules
- Java 9 Module Basics Part 2
- Develop Java Module using Command Prompt
- Develop Java Module using Eclipse
- Develop Java Module using IntelliJ IDEA
- Java 10 Features
- Java 10 Local Variable Type Inference
- Java 11 Features
- 6 New Methods in Java 11 String Class
- Java Heap Memory and Stack Memory
- Java is Pass by Value and not Pass by Reference
- JVM Memory Model and Garbage Collection
- Serialization in Java
- Java System Class
- Internationalization (i18n) in Java
- Atomic Operations in Java
- Thread Dump in Java
- Deadlocks in Java
- Sorting Objects in Java
- Understanding JDK, JRE and JVM
- Java Classloader Example Tutorial
- Java clone object
Core Java Tutorial – Getting Started
Core Java Tutorial – Object Oriented Concepts
Core Java Tutorial – Data Types and Operators
Core Java Tutorial – Interface, Abstract Class
Core Java Tutorial – String Manipulation
Core Java Tutorial – Arrays
Core Java Tutorial – Annotation and Enum
Core Java Tutorial – Collection & Generics
Core Java Tutorial – IO Operations
Core Java Tutorial – Exception Handling
Core Java Tutorial – MultiThreading and Concurrency
Core Java Tutorial – Regular Expressions
Core Java Reflection API
Java 7
Java 8
Java 9
Java 10
Java 11
Core Java Tutorial – Advanced Topics
Well, it’s a lot of reading material for core java tutorial. But if you think that I have missed out on something, please go ahead and comment below. I will write something on that and add that to the list.
Reference: Oracle JavaSE Tutorial
Hi Pankaj,
In this link
https://www.journaldev.com/7153/core-java-tutorial
Where is CountdownLatch tutorial from the above link.
It is missing in Core Java Tutorial – MultiThreading and Concurrency
Update this Countdownlatch tutorial ?
Hi Pankaj,
I enjoy reading your java article, learnt a lot from your work, you are a true java guru.
Thanks for sharing knowledge with us all in the java field.
William Wei
Wonderful Tutorial Pankaj. Thanks a lo 🙂
This is excellent.wonderful collections list.Good one for the beginners like me.i love your website..
Sir you can write about final, synchronized keywords.
Thanks sir simple explain java concept .
Great work ! Cheers !!!!
This is really helpful . Can you please share the ebook/pdf of this .
HI Pankaj sir,
This is really useful content for learning core java. Thank you so much for sharing this document in an informative manner.
Thank you for sharing such an informative and useful post with us
Hello, I want to develop a website for tutorials and much more, kindly guide me.
whats-app 03133971166
Journaldev is the best resource for learning java ,thanks for creating it .
i have went through whole core java tutorial ,
pankaj sir can you please suggest where to practice problems and from where to learn data structure and algorithms
Hi,
I surfed the web and came to know about Journaldev and started following your materials to learn Java. I found the content really simple in an easily understandable way.
While going through the following program from this link (https://www.journaldev.com/22385/java-method)
package com.journaldev.util;
public class MathUtils {
public int add (int x, int y) {
return x + y;
}
public static void main(String args[]) throws Exception {
MathUtils mu = new MathUtils();
System.out.println(mu.add(5, 2));
MathUtils.print(“Static Method”);
}
public static void print(String s) {}
}
I’ve few doubts, can you please clarify them. Why did we use these methods in our program 1) MathUtils.print(“Static Method”); and 2) public static void print(String s) {}
Without these lines also I’m getting the same output. Can you please let me know the reason we’re using this.
Thankyou
It’s just showcasing how to define and call static methods.
Hello Pankaj.
I want to know the difference between abstract class and interface in java 8,
if we can declare and implement static methods in Interface in java 8,
then abstract class and interface becomes same ..
Could you please clarify on this ?
Recently came across to these articles and found out such good contents on java both theoretically and practically. It helps a lot for revising all the concepts of java before interviews . You have explained in such way which helps a lot for working professional. Thanks a ton ,keep doing good work.
Hi,
Your Tutorial in Core Java is Excellent. It covers all the topics in a graded manner. Java enthusiasts will definitely benefit out of it.
Thanks and Regards,
Barun Halder
Hi, Pankaj.
How are you doing. Please, let me know, to learn tutorials that you have sent me (String, Collections, Annotations, Enum,, Pass by value…etc,Singleton Design Pattern, etc.), if it is necessary to know the entire Core java, first, or one can do without it ( or just having basic idea about Core Java) either.
Could you post some scenario based problems in core Java? That will help a lot.
Since Java Collections are also part of Core Java concepts. Can you include them as well?
Excellent content!! . It covers all the topics and is concise…pretty useful for brushing up your knowledge for interviews.well done!!
Hi Pankaj,
Do you have any pdf for Java, just like Java Design Pattern.
Please send me it will be easy for me to read.
A quick review guide for the all the Java programmers helps a lot man
Hi
I have read a lot of Java tutorials, this one seems easy and I can understand it better.
It would be a great help if you could send me these contents over email.
Thanks 🙂
Hi pankaj it would be helpful if you can please email me the book I want to start reading.
And thanks for making java so easy for me to understand.
Thanks again.
Nice article for Begineers and very pleasure to inform for great article.
Thanks.
Completion Stage and Completable Future are missing in Java 8 Features.
Please send me core java book off.
Good refresher and useful reference. Thanks
Sir please send me.this PDF tutorial
nice list of java tutorials, really helpful.
this is a great tutorial for beginners and a good reference for experienced developers.
there is typo error in question 18 “in” should be replaced with “is”
Thanks Praveen for noticing and letting me know through comments, I have fixed it.
Please email me the ebooks
Could you please mail me this book.
Hello Pankaj
I have one question regarding SEED in SecureRandom. what is mean by seed?
Please help..
thanks
shashank
Can you let me know which article is this ?
wowww awesome….started reading this book and im unable to get out of this..
Please write articles on sample Collection programs..
great job!!! Please keep up this good work.
Hi Pankaj,
Please do something for popup which ask to download paper or ebook. Once user download this then please disable these popup for them.
Really good job pankaj.Can you please share the download link for all these tutorials.
Many thanks.
Pankaj, can you please share the download link for all of these tutorials.
Really superb job..!
Dont go to other sites.
All in one place..!!!
Hi Sir,
Great Job
I am really thankful to you.
Hi Pankaj,
Excellent Job. Keep doing it as it helps all the learners.
Hi Pankaj,
You have done an excellent Job. Keep doing it as it helps us.
Please provide tutorial for webservices. It would be great helpful for us.
Thanks for sharing knowledge with us
Thanks,
Sowmya
Please provide tutorial on MAP which having a key which is a Constant file in java.
I didn’t get what you are asking.
Hi Pankaj,
You have done an excellent Job!!!!! Keep doing it as it helps us.
Thanks for sharing knowledge with us 🙂
Hi Pankaj
Please I want to ask you if your tutorials is enough to be a good java developer and to have the ability to crack interviews as a junior Developer
Really good site to learn all in one place:-)
Pankaj is super java hero! Thank you, it’s really helpful set of mini-tutorials (excellent for revising before java interview).
Please provide a tutorial on primefaces push chat. We could not able to complete and we are hitting dead end everywhere.