w3resource logo
Java Programming Exercises

Java Programming Exercises, Practice, Solution

Java Exercises

Java is the foundation for virtually every type of networked application and is the global standard for developing and delivering embedded and mobile applications, games, Web-based content, and enterprise software. With more than 9 million developers worldwide, Java enables you to efficiently develop, deploy and use exciting applications and services.

The best way we learn anything is by practice and exercise questions. Here you have the opportunity to practice the Java programming language concepts by solving the exercises starting from basic to more complex exercises. A sample solution is provided for each exercise. It is recommended to do these exercises by yourself first before checking the solution.

Hope, these exercises help you to improve your Java programming coding skills. Currently, following sections are available, we are working hard to add more exercises .... Happy Coding!

List of Java Exercises:

Note: If you are not habituated with Java programming you can learn from the following :

More to Come !

PopularitY of Programming Language
Worldwide, Oct 2017 compared to a year ago:

Rank Change Language Share Trend
1 Java 22.2 % -0.9 %
2 Python 17.6 % +4.3 %
3 PHP 8.8 % +0.5 %
4 up arrow Javascript 8.0 % +0.5 %
5 down arrow C# 7.7 % -0.9 %
6 up arrow C++ 6.7 % -0.3 %
7 down arrow C 6.2 % -1.0 %
8 up arrow R 3.7 % +0.6 %
9 down arrow Objective-C 3.5 % -1.3%
10 Swift 3.0 % +0.0 %
11 Matlab 2.2 % -0.4 %
12 Ruby 1.7 % -0.4 %
13 up arrow VBA 1.5 % +0.0 %
14 up arrow TypeScript 1.4 % +0.4 %
15 down arrow Visual Basic 1.3 % -0.3 %
16 down arrow Scala 1.2 % +0.1 %
17 down arrow Perl 0.8 % -0.2 %
18 up arrow Kotlin 0.8 % +0.8 %
19 up arrow Go 0.6 % +0.2 %
20 down arrow lua 0.4 % -0.1 %
21 up arrow Delphi 0.3 % -0.1%
22 down arrow Haskell 0.3 % +0.0 %
23 down arrow Rust 0.3 % +0.0 %

Source : http://pypl.github.io/PYPL.html

TIOBE Index for October 2017

Jun 2017 Jun 2016 Change Programming Language Ratings Change
1 1 Java 12.431% -6.37%
2 2 C 8.374% -1.46%
3 3 C++ 5.007% -0.79%
4 4 C# 3.858% -0.51%
5 5 Python 3.803% +0.03%
6 6 JavaScript 3.010% +0.26%
7 7 PHP 2.790% +0.05%
8 8 Visual Basic .NET 2.735% +0.08%
9 11 up arrow Assembly language 2.374% +0.14%
10 13 up arrow Ruby 2.324% +0.32%
11 15 up arrow Delphi/Object Pascal 2.180 +0.31%
12 9 down arrow Perl 1.963% -0.53%
13 19 up arrow MATLAB 1.880% +0.26%
14 23 up arrow Scratch 1.891% +0.69%
15 18 down arrow R 1.684% -0.06%
16 12 down arrow Swift 1.668% -0.34%
17 10 down arrow Objective-C 1.513% -0.75%
18 14 down arrow Visual Basic 1.420% -0.57%
19 20 up arrow PL/SQL 1.408% -0.12%
20 16 down arrow Go 1.357% -0.45%

Source : https://www.tiobe.com/tiobe-index/

List of Exercises with Solutions :

[ Want to contribute to Java exercises? Send your code (attached with a .zip file) to us at w3resource[at]yahoo[dot]com. Please avoid copyrighted materials.]