w3resource

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, Jul 2020 compared to a year ago:

Rank Change Language Share Trend
1 Python 31.73 % +3.9 %
2 Java 17.13 % -2.7 %
3 Javascript 7.98 % -0.3 %
4 C# 6.67 % -0.6 %
5 up arrow C/C++ 5.93 % +0.1 %
6 down arrow PHP 5.64 % -1.1 %
7 R 4.14 % +0.3 %
8 Objective-C 2.61 % -0.1 %
9 Swift 2.29 % -0.1 %
10 up arrow TypeScript 1.91% +0.2 %
11 down arrow Matlab 1.74 % -0.1 %
12 up arrow Kotlin 1.62 % +0.2 %
13 up arrow Go 1.37 % +0.2 %
14 VBA 1.27 % -0.0 %
15 down arrow Ruby 1.26 % -0.1 %
16 Scala 0.99 % -0.1 %
17 Visual Basic 0.83 % -0.2 %
18 up arrow Rust 0.81 % +0.3 %
19 up arrow Dart 0.52 % +0.2 %
20 up arrow Ada 0.47 % +0.1 %
21 up arrow Lua 0.46 % +0.1 %
22 down arrow Abap 0.46 % -0.1 %
23 down arrow Groovy 0.43 % -0.1 %
24 down arrow Perl 0.42 % -0.2 %
25   Cobol 0.41 % +0.1 %
26 up arrow Julia 0.37 % +0.1 %
27 down arrow Haskell 0.29 % +0.0 %
28 down arrow Delphi 0.25 % -0.0 %

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

TIOBE Index for July 2020

Jul 2020 Jul 2019 Change Programming Language Ratings Change
1 2 up arrow C 16.45% +2.24%
2 1 down arrow Java 15.10% +0.04%
3 3 Python 9.09% -0.17%
4 4 C++ 6.21% -0.49%
5 5 C# 5.25% +0.88%
6 6 Visual Basic 5.23% +1.03%
7 7 JavaScript 2.48% +0.18%
8 20 up arrow R 2.41% +1.57%
9 8 down arrow PHP 1.90% -0.27%
10 13 up arrow Swift 1.43% +0.31%
11 9 down arrow SQL 1.40% -0.58%
12 16 up arrow Go 1.21% +0.19%
13 12 down arrow Assembly language 0.94% -0.45%
14 19 up arrow Perl 0.87% -0.04%
15 14 down arrow MATLAB 0.84% -0.24%
16 11 down arrow Ruby 0.81% -0.83%
17 30 up arrow Scratch 0.72% +0.35%
18 33 up arrow Rust 0.70% +0.36%
19 23 up arrow PL/SQL 0.68% -0.01%
20 17 down arrow Classic Visual Basic 0.66% -0.35%

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