Home » Java programs

Core Java Example programs for Beginners and Professionals



Core Java Example Programs - In this section you will find Solved Example Programs on Core Java for your practices, these programs are very important and most searched on the internet. Available each program contains their explanation, output with compile and run command.

Java is a platform independent Object Oriented programming Language, Java program can be run on any platform that contains platform specific JVM. Java compiler generate an intermediate BYTE Code that can run on any JVM – its JVM responsibility to convert byte code into machine code.

Core Java syntaxes are similar to C and C++ syntaxes and if you are familiar with C and C++ then you can easily learn and understand these programs.

List of all Core Java Example Programs

Latest programs on top

  1. Java program to extract words from a given sentence.
    In this java program, we are going to learn how to extract words from a string? Here, we are reading a string (sentence) and extracting words from it.
  2. Java program to check whether a given number is palindrome or not.
    In this java program, we are going to check whether a given number if palindrome or not? Here, we are taking an integer number and checking whether it is palindrome or not?
  3. Java program to check whether a given number is prime or composite (non-prime).
    In this java program, we are going to check whether a given number is primer or composite (non-prime).
  4. Java program to convert Decimal to Octal.
    In this java program, we are going to learn how to convert Decimal to Octal? Here, we will read an integer (Decimal) number and convert it into its equivalent Octal number.
  5. Java program to convert Decimal to Binary.
    In this java program, we are going to learn how to convert Decimal to Binary? Here, we will read an integer (Decimal) number and convert it into its equivalent Binary number.
  6. Java program to find addition of N integer numbers.
    Learn: How to write a program to add N numbers in java? Here we will learn add N number program in java?
  7. Java program to addition of one dimensional and two dimensional arrays.
    In this java program, we are going to learn how to find addition of one dimensional and two dimensional arrays?
  8. Java program to add digits of a number.
    In this java program, we are going to learn how to add digits of a given number? Here, we are reading an integer number and find addition of all digits.
  9. How to accept input from keyboard in java?
    Here, we are going to learn how to write a program in java that will accept input from keyboard?
  10. Java program to find addition and subtraction of two matrices.
    Here, we have two java programs that are using to find addition and subtraction of two matrices.
  11. Java program to print numbers from 1 to N using while loop.
    This is an Example of java while loop - In this java program, we are going to print numbers from 1 to N using while loop.
  12. Java program to print numbers from 1 to N using for loop.
    This is an Example of java for loop - In this java program, we are going to print numbers from 1 to N using for loop.
  13. Java program to print numbers from 1 to 10 using while loop.
    This is an Example of java while loop - In this java program, we are going to print numbers from 1 to 10 using while loop.
  14. Java program to print numbers from 1 to 10 using for loop.
    This is an Example of java for loop - In this java program, we are going to print numbers from 1 to 10 using for loop.
  15. Java program for Addition of Two Numbers.
  16. Java program to Swap two numbers.
  17. Java program for Calculator.
  18. Java program to find Largest of Three Numbers.
  19. Java program to calculate Simple Interest.
  20. EMI Calculator in Java - Java program to calculate EMI.
  21. Java program to calculate Perimeter of Circle.
  22. Java program to find Area of Circle.
  23. Java program to find Area of Rectangle.
  24. Java program to find Area of Triangle.
  25. Java program for Fibonacci Series.
  26. Java program for Factorial.
  27. Java program for Prime Number.
  28. Java program for Palindrome Number.
  29. Java program to Reverse a Number.
  30. Java program to Reverse a String.
  31. Java program to print EVEN Numbers from 1 to N.
  32. Java program to print ODD Numbers from 1 to N.
  33. Java program to Transpose a Matrix.
  34. Java program to add Two Matrices.
  35. Java program to get input from user.
  36. 
  37. Java program to get current system date and time.
  38. Java program to get student details.
  39. Java program to get Host Name by IP Address.
  40. Java program to generate random numbers from 0 to given range.
  41. Java program to get list of files, directories from a directory.
  42. Java program to run an application - Run Exe using Java program.
  43. Java program to extract digits/ numbers from the string.
  44. Java program to print all prime numbers from 1 to N.
  45. Java program to count total number of words in a string.
  46. Java program to sort N names (strings) in ascending order.
  47. Java program to count divisors of an integer number.
  48. Java program to get elapsed time in seconds and milliseconds.
  49. Java program to print table of an integer number.
  50. Java program to print used different characters (letters) in a string.





Was this page helpful? YES NO

Are you a blogger? Join our Blogging forum.



Comments and Discussions


We are using Google to publish ads on our website; Google has its own privacy policies. They may save log, cookies on your system. Google may also collect information of your system like IP address, region, city, country. For more details please go through the Google’s privacy policy.