0% found this document useful (0 votes)
3 views1 page

Java 20 Coding Problems

The document lists 20 Java programming problems designed to enhance coding skills. The problems cover various concepts such as recursion, string manipulation, sorting algorithms, object-oriented programming, exception handling, and multithreading. Each problem requires the implementation of specific functionalities, providing a comprehensive practice set for Java developers.

Uploaded by

house82gaming
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Java 20 Coding Problems

The document lists 20 Java programming problems designed to enhance coding skills. The problems cover various concepts such as recursion, string manipulation, sorting algorithms, object-oriented programming, exception handling, and multithreading. Each problem requires the implementation of specific functionalities, providing a comprehensive practice set for Java developers.

Uploaded by

house82gaming
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Java Programming – 20 Coding Problems

1. Write a Java program to check whether a number is even or odd.

2. Write a Java program to find the factorial of a number using recursion.

3. Write a Java program to generate the Fibonacci series up to N terms.

4. Write a Java program to check whether a number is prime.

5. Write a Java program to reverse a given string.

6. Write a Java program to sort an array using Bubble Sort.

7. Write a Java program to find the largest and smallest element in an array.

8. Write a Java program to check whether a number is a palindrome.

9. Write a Java program to perform matrix addition.

10. Write a Java program to demonstrate method overloading.

11. Write a Java program to demonstrate inheritance.

12. Write a Java program to count vowels and consonants in a string.

13. Write a Java program to handle division by zero using exception handling.

14. Write a Java program to implement stack operations using an array.

15. Write a Java program to read and write data to a file.

16. Write a Java program to demonstrate multithreading using Runnable interface.

17. Write a Java program to create a class BankAccount with deposit and withdraw
methods.

18. Write a Java program to check whether two strings are anagrams.

19. Write a Java program to implement a simple calculator using switch-case.

20. Write a Java program to demonstrate the use of interfaces.

You might also like