banner

LIST OF PROGRAMS

Ask the user to enter two integers and print their sum, product, difference and quotient  Read a string from the keyboard, and outp... thumbnail 1 summary

  1. Ask the user to enter two integers and print their sum, product, difference and quotient 
  1. Read a string from the keyboard, and output the string twice in a row, first all uppercase and next all lowercase.
  1. Check if a string is a palindrome or not. 
  1. Find the missing numbers in an  array
  1. Return the average of the marks in an array
  1. Create a SavingsAccount class and test its methods.
  1. Create a Employee Class and compute the salary.
  1. Inherit the car class and compute the selling price for various models
  1. Create a simple calculator with Applet
  1. Convert the temperature from one scale to another using Applet.

  1. 1.     Write a program to implement Package Create a package name, called pack. Declare  class called NumberReverse and declare a method called int reverseNum(int) find the  reverse of the number. Place the class NumberReverse inside the package Pack.
    Import the package pack in the class Reverse have the main() method and create an object of  NumberReverse and to find reverse of the number.
    2.     Write a program to implement Interface create an interface called Circle have static variable PI=3.14 and method void area(). Implement the Circle interface in AreaCircle class and find the area of the circle.
    3.     Write a java program that illustrates the creation of threads by using runnable class. Define two classes  and have two run() methods to display numbers from 1 to 5. After the display the each number then thread go to sleep 1000ms.

    4.     Develop a program to copy one file into another file.
    5.     Develop a program search all files inside a directory.
    6.     Develop a program to create user defined Exception ? Input two numbers and find its sum. If any one of the number is zero generate user defined exception “One of the operand is zero”.
    7.     Develop a java program to divide two numbers  demonstrate exception handling use finally block.
          ...........
          ...........
          ...........

No comments

Post a Comment