Home » Java programs

Java Class and Object programs

Java solved programs based on class and objects: Here you will find programs, which are implemented using class and objects in java with solution, output and explanation.

This section contains programs on Class and Objects, here you will learn how to create classes and their instances, calling the class methods etc.

Here you will find programs from printing simple message using class to create complex classes.

Class and Object Example Programs in Java

  1. Java program to print message using class.
    This java program will print message using class method - here, we will print the message by using same class method and other class method.
  2. Java program to find area and perimeter of a circle using class.
    In this java program, we will read radius of a circle and find their area and perimeter, this program will be implementing using class and objects. Here value will be reading and printing through class methods.
  3. Java program to count all digits of an integer number using class.
  4. Java program to find sum and product of all digits of an integer number using class.
  5. Java program to check whether a given number is palindrome or not using class.
  6. Java program to check whether a given number is armstrong or not using class.
  7. Java program to add two distnace using class.
    In this java program, we will read two distances in feet and inches and find their sum, here program is implementing using class and objects concept.




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.