Oct 13, 2021

Java Programming Exercises with their Solutions

 In previous post we learnt what is java programming  or introduction of java programming, In this article you will learn lot of  java programming exercises and examples with their solutions.

Quick Links:

I have assembled a list of java programs to practice for both novice as well as intermediate programmers. Practice more to enhance your logical thinking.  After this exercises you will surely gain some confidence and knowledge about  java programming.


Basic Java Programming Exercises:

  1.  Write a first java program which prints message on the output screen.
  2. Write a java program to print given number is even or odd.
  3. Write a java program to swap two numbers.
  4. Write a java program to calculate net salary of an employee using TA, DA and HRA.
  5. Write a java program to print addition, subtraction, multiplication and division of given two numbers.
  6. Write a java program to find area of circle.
  7. Write a java program to find area of triangle.
  8. Write a java program to accept five subjects marks from student and print total and percentage on the output screen.
  9. Write a java program to compute expression and print on the output screen.
  10. Write a java program to calculate inch to meters.
  11. Write a java program to calculate foot to centimeters.
  12. Write a java program to check given number is palindrome or not.
  13. Write a java program to check given number is prime or not.


I hope above java examples and their solutions will help you to understand and gain java programming knowledge :)



Share This:    Facebook Twitter

0 comments:

Post a Comment

If you have any doubts, please discuss here...