Anda di halaman 1dari 2

OOPJ PRACTICAL LIST (5TH SEM.

COMPUTER)
1. 2. 3. 4. WAP to implement all type of arithmetic operation. WAP that shows use of if else statement. WAP that displays first four numbers and average of those numbers. Write a program to declare a class called Employee and write a function to compare two employee salaries. 5. Write a program to calculate volume of a box using constructor. 6. Write a program to perform an arithmetic operation using static keyboard. 7. Write a program to Fibonacci series using the command line arguments. 8. Write a program to print Employee no, Name and Balance Use Array of Object to display 5 Employee Balance. 9. Write a program for Student profile using super keyword. 10. Create a class Figure with variables for dimension of a figure & abstract method area. Create 2 subclass of this class: Rectangle and Triangle. Over ride the method area to calculate area of each of them. Create object of these 2 class & display area. 11. Write a program to create two Packages p1 and p2. Place 3 classes a, b and c in Package p1 such that b is sub-class of a and c is non-subclass of same package. Place two classes d and e in Package p2 where d is a sub-class of a. Also create two classes each for a package for placing the main() method. 12. Write a program for command line arguments to divide 2 numbers and throw ArithmeticException, ArrayIndexOutOfBoundsException and NumberFormatException using multiple catch. 13. Write a program that generated customs exception if any of its Command line argument is negative. 14. Write a program that shows the use of finally block. 15. Write a program that creates a child thread, show current thread name and apply sleep method to both main thread and child thread. 16. Write a program that display different String function. Take two string from user. find length of two string Check two string are equal or not. concate two string with plus operator Convert first string in upper case and second in lower case. 17. Write a Program that illustrate use of FileOutputStream and FileInputStream classes to write and read files. 18. Write an applet that display any string also draw a line and a rectangle set background color of the applet pink and dimensions of the applet should be 500*300 pixels. 19. Write an Applet that contains 3 buttons and one label. when button is pressed the label displays the string associated with that button. 20. Write a program to take 2 nos from user and add two numbers use text box.

OOPJ PRACTICAL LIST (5TH SEM. COMPUTER)


21. Write an applet that creates Frame named myFrame.the applet appears with one button labeled "create Frame" when this button is pressed, a new Frame appears. 22. Write an applet that illustrates the operation of the Border layout. 23. write an Applet that illustrate the use of menu bars,menus,menu items.the applet contain text area to report about action and events generated by menuitems.

Anda mungkin juga menyukai