Quick links: C-Tricks HR Interview Que. Code Snippets C Programs C++ Programs Java Programs PHP Examples


Java programming solved programs/examples

This section contains solved java programs on all core java topics; choose categories to learn java topics through solved programs/examples with their output and explanation.

There are also Java Code Snippets linked under this section with solved programs, these code snippets are complete programs with output.

Here is the List of Java programming solved programs/examples with solutions and detailed explanation

Java programs by categories

Other programs

  1. Java program to demonstrate example of thread.
    This example is based on threading in java, here we will learn how to use thread in java?
  2. Java program to print star pattern using class.
    STAR pattern printing program in Java - This program will print the star pattern till N lines, N will be taken as input from the user.
  3. Java program to print pyramid of characters using class.
    PYRAMID of characters printing in Java - This program will print the pyramid of characters till N lines, N will be taken as input from the user.
  4. Java program to swap two integer numbers using class.
    Learn: How to read and swap integer numbers in Java language using class, that means swapping of numbers operations will be performed using class.
  5. Java program to get the IP address, Hostname based on given Hostname.
    Learn: How to get the host ip address (website ip address), host name based on given host name (website name), this program will take a host name as input and print the host name, ip address.
  6. Java program to print the hostname and IP address of Local system.
    Java program to find and print the host name, Ip address of local system. This program will print the IP address and Hostname of the system on which program will be executed.