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, Sept 2017 compared to a year ago:

Rank Change Language Share Trend
1 Java 22.4 % -0.8 %
2 Python 17.0 % +4.0 %
3 PHP 8.7 % -1.0 %
4 C# 8.1 % -0.4 %
5 Javascript 8.0 % +0.6 %
6 C++ 6.8 % -0.2 %
7 C 6.1 % -1.1 %
8 up arrow R 3.7 % +0.6 %
9 down arrow Objective-C 3.5 % -1.4 %
10 Swift 2.9 % -0.1 %
11 Matlab 2.4 % -0.2 %
12 Ruby 1.6 % -0.6 %
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.0 %
17 down arrow Perl 0.8 % -0.2 %
18 up arrow Kotlin 0.7 % +0.6 %
19 up arrow Go 0.6 % +0.2 %
20 down arrow lua 0.4 % -0.1 %
21 up arrow Rust 0.3 % +0.0 %
22 down arrow Haskell 0.3 % +0.0 %
23 down arrow Delphi 0.3 % -0.1 %

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

TIOBE Index for September 2017

Jun 2017 Jun 2016 Change Programming Language Ratings Change
1 1 Java 12.687% -5.55%
2 2 C 7.382% -3.57%
3 3 C++ 5.565% -1.09%
4 4 C# 4.779% -0.71%
5 5 Python 2.983% -1.32%
6 7 up arrow PHP 2.210% -0.64%
7 6 down arrow JavaScript 2.017% -0.91%
8 9 up arrow Visual Basic .NET 1.982% -0.36%
9 10 up arrow Perl 1.952% -0.38%
10 12 up arrow Ruby 1.933% -0.03%
11 18 up arrow R 1.816% +0.13%
12 11 down arrow Delphi/Object Pascal 1.782% -0.39%
13 13 Swift 1.765% -0.17%
14 17 up arrow Visual Basic 1.751% -0.01%
15 8 down arrow Assembly language 1.639% -0.78%
16 15 down arrow MATLAB 1.630% -0.20%
17 19 up arrow Go 1.567% -0.06%
18 14 down arrow Objective-C 1.509% -0.34%
19 20 up arrow PL/SQL 1.484% +0.04%
20 26 up arrow Scratch 1.376% +0.54%

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.]