# 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: **

**Java Basics**

- Basic Exercises Part-I [ 150 Exercises with Solution ]
- Basic Exercises Part-II [ 99 Exercises with Solution ]
- Methods [ 23 Exercises with Solution ]

**Java Data Types**

- Data Types Exercises [ 15 Exercises with Solution ]
- Java Enum Types Exercises [ 5 Exercises with Solution ]

**Java Control Flow**

- Conditional Statement Exercises [ 32 Exercises with Solution ]
- Java recursive method Exercises [ 15 Exercises with Solution ]

**Java Math and Numbers**

**Object Oriented Programming**

- Java Constructor Exercises [ 10 exercises with solution ]
- Java Static Members Exercises [ 8 exercises with solution ]
- Java Nested Classes Exercises [ 10 exercises with solution ]
- Java Inheritance Exercises [ 9 exercises with solution ]
- Java Abstract Classes Exercises [ 12 exercises with solution ]
- Java Interface Exercises [ 11 exercises with solution ]
- Java Encapsulation Exercises [ 14 exercises with solution ]
- Java Polymorphism Exercises [ 12 exercises with solution ]
- Object-Oriented Programming [ 30 Exercises with Solution ]

**Exception Handling**

**Functional Programming**

- Java Lambda expression Exercises [ 25 exercises with solution ]
- Streams [ 8 Exercises with Solution ]

**Multithreading**

- Java Thread Exercises [ 7 exercises with solution ]
- Java Miltithreading Exercises [ 10 exercises with solution ]

**Data Structures**

- Array [ 77 Exercises with Solution ]
- Stack [ 29 Exercises with Solution ]
- Collection [ 126 Exercises with Solution ]

**Strings and I/O**

**Date and Time**

**Advanced Concepts**

**Algorithms**

**Regular Expressions**

**Java GUI**

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

**More to Come ! **

**List of Exercises with Solutions :**

- HTML CSS Exercises, Practice, Solution
- JavaScript Exercises, Practice, Solution
- jQuery Exercises, Practice, Solution
- jQuery-UI Exercises, Practice, Solution
- CoffeeScript Exercises, Practice, Solution
- Twitter Bootstrap Exercises, Practice, Solution
- C Programming Exercises, Practice, Solution
- C# Sharp Programming Exercises, Practice, Solution
- PHP Exercises, Practice, Solution
- Python Exercises, Practice, Solution
- R Programming Exercises, Practice, Solution
- Java Exercises, Practice, Solution
- SQL Exercises, Practice, Solution
- MySQL Exercises, Practice, Solution
- PostgreSQL Exercises, Practice, Solution
- SQLite Exercises, Practice, Solution
- MongoDB Exercises, Practice, Solution

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

**Do not submit any solution of the above exercises at here, if you want to contribute go to the appropriate exercise page.**

**Weekly Trends and Language Statistics**- Weekly Trends and Language Statistics