w3resource
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 2018 compared to a year ago:

Rank Change Language Share Trend
1 up arrow Python 24.72 % +5.4%
2 down arrow Java 22.01 % -0.7 %
3 up arrow Javascript 8.4% +0.1 %
4 up arrow C# 7.71 % -1.4 %
5 down arrow PHP 7.42 % -1.6 %
6 C/C++ 6.32 % -0.5 %
7 R 4.11 % -0.1 %
8 Objective-C 3.29% -0.9 %
9 Swift 2.69 % -0.8%
10 Matlab 2.08 % -0.3 %
11 Ruby 1.63 % -0.4 %
12 up arrow TypeScript 1.54 % +0.1 %
13 down arrow VBA 1.48% -0.0 %
14 Scala 1.22% -0.2 %
15 Visual Basic 1.14 % -0.2 %
16 up arrow Kotlin 1.04 % +0.3 %
17 up arrow Go 0.96 % +0.3 %
18 down arrow Perl 0.65 % -0.2 %
19 lua 0.39 % +0.0 %
20 up arrow Rust 0.38 % +0.0 %
21 up arrow Haskell 0.31 % -0.0 %
22 down arrow Delphi 0.27% +0.1 %

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

TIOBE Index for October 2018

Oct 2018 Oct 2017 Change Programming Language Ratings Change
1 1 Java 17.801% +5.37%
2 2 C 15.376% +7.00%
3 3 C++ 7.593% +2.59%
4 5 up arrow Python 7.394% +1.83%
5 8 up arrow Visual Basic .NET 5.884% +3.15%
6 4 down arrow C# 3.485% -0.37%
7 7 PHP 2.794% +0.00%
8 6 down arrow JavaScript 2.280% -0.73
9 - up arrow SQL 2.038% +2.04%
10 16 up arrow Swift 1.500% -0.17%
11 13 up arrow MATLAB 1.317% -0.56%
12 20 up arrow Go 1.253% -0.10%
13 9 down arrow Assembly language 1.245% -1.13%
14 15 up arrow R 1.214% -0.47%
15 17 up arrow Objective-C 1.202% -0.31%
16 12 down arrow Perl 1.168% -0.80%
17 11 down arrow Delphi/Object Pascal 1.154% -1.03%
18 10 down arrow Ruby 1.108% -1.22%
19 19 PL/SQL 0.779% -0.63%
20 18 down arrow Visual Basic 0.652% -0.77%

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