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, September 2019 compared to a year ago:

Rank Change Language Share Trend
1 Python 29.21 % +4.6 %
2 Java 19.9 % -2.2 %
3 Javascript 8.39 % +0.0 %
4 C# 7.23% -0.6 %
5 PHP 6.69 % -1.0 %
6 C/C++ 5.8 % -0.4 %
7 R 3.91 % -0.2 %
8 Objective-C 2.63% -0.7 %
9 Swift 2.46 % -0.3 %
10 Matlab 1.82 % -0.2 %
11 up arrow TypeScript 1.77 % +0.2 %
12 up arrow Kotlin 1.55% +0.6 %
13 VBA 1.44 % -0.0 %
14down arrow Ruby 1.4 % -0.2 %
15 up arrow Go 1.2 % +0.3 %
16 down arrow Scala 1.14 % -0.1 %
17 down arrow Visual Basic 1.05 % -0.1 %
18up arrow Rust 0.66 % +0.3 %
19 down arrow Perl 0.53 % -0.2 %
20 down arrow Lua 0.37 % -0.0 %
21 Haskell 0.3 % -0.0 %
22 up arrow Julia 0.29 % +0.1 %
23down arrow Delphi 0.27 % +0.0 %

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

TIOBE Index for August 2019

Sep 2019 Sep 2018 Change Programming Language Ratings Change
1 1 Java 16.661% -0.78%
2 2 C 15.205% -0.24%
3 3 Python 9.874% +2.22%
4 4 C++ 5.635% -1.76%
5 6 up arrow C# 3.399% +0.10%
6 5 down arrow Visual Basic .NET 3.291% -2.02%
7 8 up arrow JavaScript 2.128% -0.00%
8 9 up arrow SQL 1.944% -0.12%
9 7 down arrow PHP 1.863% -0.91%
10 10 Objective-C 1.840% +0.33%
11 34 up arrow Groovy 1.502% +1.20%
12 14 up arrow Assembly language 1.378% +0.15%
13 11 down arrow Delphi/Object Pascal 1.335% +0.04%
14 16 up arrow Go 1.220% +0.14%
15 12 down arrow Ruby 1.211% -0.08%
16 15 down arrow Swift 1.100% -0.12%
17 20 up arrow Visual Basic 1.084% +0.40%
18 13 down arrow MATLAB 1.062% -0.21%
19 18 down arrow R 1.049% +0.03%
20 17 down arrow Perl 1.049% -0.02%

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