C C++ Java Data Structure Python JavaScript CSS Ajax PL/SQL PHP Puzzles C programs C++ programs Java programs

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.



COMMENTS