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 and Java programming examples. This core Java Tutorial contains the links of all the tutorials in a systematic order starting from beginner’s level to the advanced topics. Whether you are a college student looking for learn Java programming or a company employee learning advanced Java topics for building an application in Java, this Java tutorial would definitely be useful for you. Let’s start learning.
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 Java tutorial and advanced Java tutorial).
Tutorials on Java basics
Start from here. An introduction to java and java basics with examples.
1. Introduction to Java
2. Java Virtual Machine(JVM) Basics
3. First Java Program
4. Variables in Java
5. Java Data Types
6. Java Operators
7. If-else in Java
8. Switch-Case in Java
9. Java For loop
10. Java While loop
11. do-while loop in Java
12. Java Continue statement
13. Java Break statement
Java OOPs tutorial
14. Constructor in Java
15. Static keyword in Java
16. Java Inheritance with example
17. Types of inheritance in Java
18. Aggregation in Java
19. Association in Java
20. Super Keyword in Java
21. Method overloading in Java
22. Method overriding in Java
23. Java – Method Overloading vs Method Overriding
24. Polymorphism in Java
25. Types of polymorphism in Java
26. Static and dynamic binding
27. Abstract class in Java
28. Java Abstract method with example
29. Interface in Java
30. Java – Abstract class vs interface
31. Java Encapsulation with example
32. Java Packages with examples
33. Access modifiers in Java
33. Garbage Collection in Java
34. final keyword
Java Exception Handling Tutorial
35. Java Exception handling
36. Java try-catch block
37. Java finally block
38. How to throw exception in Java
39. Custom Exception in Java
40. Exception Examples
Java Collections Tutorial
41. Java ArrayList
42. Java LinkedList
43. Vector in Java
44. HashMap in Java
45. Java TreeMap
46. Java LinkedHashMap
47. Java HashSet
48. TreeSet in Java
49. LinkedHashSet
50. Hashtable in Java
51. Queue
52. PriorityQueue
53. Deque & ArrayDeque
54. Comparable Interface
55. Comparator Interface
Java Tutorial on Annotation, Enum and Regex
56. Java Enum
57. Java Annotations
58. Java Regex
Miscellaneous Core Java tutorial
59. String in Java
60. Java Multithreading
61. Java Serialization
62. Java AWT Tutorial
63. Java Swing Tutorial
64. Java autoboxing and unboxing
65. 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:
66. Java Lambda Expressions
67. Java Method References
68. Java Functional Interfaces
69. Java Stream Tutorial
70. Java Stream Filter Tutorial
71. Java Interface changes – introduction of default and static methods
72. Java forEach
73. Java Stream Collectors class
74. Java StringJoiner class
75. Java Optional class
76. Java Arrays Parallel Sort
Java 9 Features
Here are the tutorials on Java 9 features –
77. Java 9 – REPL (JShell)
78. Factory methods to create immutable List, Set and Map
79. Introduction of Private methods in interfaces
80. Try with resources enhancements
81. Anonymous inner class and diamond operator
82. @SafeVarargs Annotation (with examples)
83. Java 9 – Stream API Enhancements (With Examples)
83. Java 9 Modules
Java Input/Output Tutorials
84. Create a file in java
85. Read a file in java
86. Write a file
87. Append to a file in java
88. How to delete file in Java
89. How to compress a File in GZip format
90. How to Copy a File to another File in Java
91. How to get the last modified date of a file in java
92. How to make a File Read Only in Java
93. How to check if a File is hidden
For more Java I/O tutorials, refer this: Java I/O
Java Programs
I have shared 50+ 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.
94. Java program to Display Fibonacci Series
95. Java program to Find Factorial
96. Java program to swap two numbers using bitwise operator
97. Java program to find largest of three numbers using ternary operator
98. Java program to check leap year
99. Java Program to Reverse an input number
100. Java Program to Calculate area of circle
101. Java Program to Calculate area of triangle
102. Java Program to Find sum of array elements
103. Program to Check for prime number
104. Program to Check whether number is even or odd in Java
105. Java Linear Search Program
106. Java Binary Search Program
107. Program to Generate random number in Java
108. Java program for Binary to decimal conversion
109. Java Program Get input from user
hi
thanks for your website its very helpful for me.
please send me some examples for oop concepts
thanks
malesh
([email protected])
Refer this: https://beginnersbook.com/2013/04/oops-concepts/
do u have any videos related to learn java
Wrapper Classes Are Not Explained……….
please provide Wrapper Classes Concept in this tutorial
Thank You so much…………….
Java TYPE CASTING also not explained
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.
You are using only textfield. so in every iteration of loop, same textfield is updating.
You’ve written the wrong program dude.
Thank you,This tutorial is very nice.
please provide concept and example of java reflection.
thank for this website.
it is very useful for the java programmers.
we need more basic concepts about java.
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…
there is no swing tutorial.
can u plz add swing tutorial.
Hi Akashdeep, I would be adding swing tutorial soon.
thank u sir ur notes can be understood by any individual
sir can u plz upload priority queue.
its very good turorial……….
Thank you sir. For wonderful explanation we missing JDBC and SWING also. Please provide these tutorials if possible. Once again thanks.
This tutorial is very useful for beginners,I am a tester but learning quickly…………:)
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
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.
it’s very useful site for java beginner and we can say awesome and incredible.
Thanks,
Dinesh
can you please tell the difference between variable and reference variable in java
String handling concept, Wrapper Classes,type casting Are Not Explained
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
superb website for Java Beginners!
you guys should create an app for this website.offline one… there will be lot of downloads
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.
Please Provide Swing… I am missing it..
Hi, your website was really gud , but u missed the OBject class…can u please update the object class along with their methods…
Hello ! sir its nice tutorials but plz sir upload new tutorials of awt .
your website is really help for beginners.pls upload servlet and jsp tutorials with examples from basic to database connectivity.
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
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.
Seems like a great idea. I would definitely think about it.
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
yes.Its better and easy way …Go ahead..
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.
Hi Chaitanya –
Material is very impressive, Please help me with PDF if you are having for the same.
What are the java frameworks ?which we have to learn as a fresher?
Why do we use abstract method while we have facility of method-overriding?
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
Appreciate for your simple and straightforward explanation….!
But It would be very good, if you also post about Java Networking and and Crypthography.
hi Chaitanya Singh,
really helpful content .please provide material for spring and hibernate .
“factory method” is not provided. Please explain what is “factory method”
how can i download this tutorials
i want to keep it
send me link of download plz
This website is useful for beginners
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.
Hey! Big thanks to the person that thought about making this website. Very helpful for newbie programmers like myself. :)
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!
Hey! Big thanks to the person that thought about making this website. Very helpful for newbie programmers like myself. :)
Can u add JVM full concept to get to know about memory allocation
Post AngularJs Tutorial with Detailed Examples
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.
Best Tutorial.. Please can you add Spring and Hibernate?.. Thanks
send me some basic java codes
___I am a beginner and I have installed eclipse yesterday and I want to learn java
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.
Sir please provide programming techniques how to code any programs in java
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?