Java Programming

 

  1. Write a Java program to calculate the area of a circle, triangle, and rectangle using method overloading.

  2. Write a Java program to calculate the volume of a cone and a cylinder using method overloading.

  3. Write a Java program for calculating the area of shapes (circle and rectangle) using interfaces.

  4. Write a java program to define an interface which has methods area () volume (). Define constant PI. Create a class cylinder which implements this interface and calculate area and volume

  5. Define an interface Shape with an abstract method area(). Write a Java program to calculate the area of a circle and a sphere (use the final keyword).

  6. Define an abstract class Shape with abstract methods area() and volume(). Write a Java program to calculate the area and volume of a cone and a cylinder.

  7. Define an abstract class staff with protected members id and name. Define a parameterized constructor. Define one sub class office staff with member department. Create n objects of officestaff and display details

  8. Write application to accept 10 friend’s information like name, address, Date of birth, cell-phone number in array of object. Display accepted details.

  9. Write a package for games in java, which have two classes Indoor and Outdoor. Use a function display() to generate the list of players for specific games. (Use parameterized constructor, close() method and array of objects).

  10. Create package methods for two classes addition and substraction addition has method add ( ) to perform addition and substration has method sub( ) to purform substraction and display the result.

  11. Create a Package College which has two classes teacher and student. Teacher has two methods accept( ) and display( ) and student has two methods accept( ) and display( ). Display the given information of Teacher and Student.

  12. Write a package StrPack which has two classes Concat and Compare. Concat class has a method to concatenate two strings and Compare class has a method to compare two strings. Display appropriate messages

  13. Write a ‘java’ program to check whether given number is Armstrong or not. (Use static keyword) 

  14. Write a Java program using static method which maintain bank account information about various customers.

  15. Write java application to define book class containing BookId, Title, author, rate, number of copies. Define parameterized constructor. Define method that will calculate cost of books. Accept details of five books in array of object from user display details along with cost of all books.

  16. Create Java application to register reality show singer. [Assume suitable table structure

  17. Write a program to design login form with proper validation

  18. Write a Java program using static method which maintain bank account information about various customers.