0% found this document useful (0 votes)
9 views5 pages

Oops Lab - ListOfPrograms

All lab programs.

Uploaded by

rr3870044
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views5 pages

Oops Lab - ListOfPrograms

All lab programs.

Uploaded by

rr3870044
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

List of Programs

Program: MCA II sem Course: OOP using Java Lab (PCAPC20009)


1. check_even.java
(To check ODD-EVEN using Scanner object and if-else)

2. FloatPoint.java
(Arithmetic operation on floating point
Numbers)

3. ComLineTest.java
(Printing the Strings, input by command line argument)

4. Reading.java
(To read the integer and float through
Console)

5. Displaying.java
(To print the pattern like
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
6 6 6 6 6 6
7 7 7 7 7 7 7
8 8 8 8 8 8 8 8
9 9 9 9 9 9 9 9 9
)

6. Prime.java
(To check number is prime or not)

7. Grade.java
(To print the grade based on the given condition)

8. RectangleArea.java

(To calculate the area of the rectangle)

9. ExSwitch.java

(To print the user choice by Switch case)


10. volCuboid.java

(To calculate the volume of cuboid)

11. DowhileTest.java

(To print the multiplication table using do-while)

12. ForTest.java
(To print “2 to the power -n || n || 2 to power n” using for and if-else)

13. NestingTest.java
(To print largest of two number using nested classes)

14. TotalEvenOdd.java
(To print the total even and total odd numbers from an array)

15. StringDemo.java
(To demonstrate the use of length(), equals() and charAt() methods)

16. Mathoperation.java
(To demonstrate the user defined mul() and divide() methods)

17. whileString.java
(To read the string char by char and appending these chars to StringBuffer obj
through while loop)

19. Sort.java
(To sort the array using Bubble sort)

20. StringMethods.java
(To demonstrate the various String methods like toLowerCase(),
toUpperCase(), replace('A','Q'), trim() and equals() methods)
21. LanguageVector.java
(To assign the values in Vector list through Command line argument and then
inserting element to this list using insertElementAt("Cobol",2))

22. SimpleInterest.java
(To calculate the Simple interest when Principal amt, Interest Rate and no of
year is given)

23. Interface1.java
(To implement the interface ‘Polygon’ and calculate the area of Rectangle
using getArea() {user defined} method)

24. Interface2.java
(To implement the interface ‘Language’ and concate the other string using
getName() {user defined} method)

25. Interface3.java
(To implement the interface ‘Polygon’ having getArea() and getSides() and
also to override the getSides() of Polygon in Rectangle class which is
implementing the Polygon )

26. Interface4.java
(To calculate the Area and Perimeter of a triangle implement the Polygon
interface to Triangle class)

27. UseOfSuper.java
(To demonstrate the use of super keyword to invoke super class method)

28. BasicCalculator.java
(To peform the basic arithmetic operations)
29. packageProg1.java
(To access the classes and their methods of different program under same
Package)

30. packageProg2.java
(To create an array of objects of class Balance, initializing these objects
through constructor and Balance class is defined in another program under
same Package)

31. DivByZero.java
(To demonstrate the ArithmeticException in java)

32. MultiCatch.java
(To demonstrate the use of multiple catch block {with ArithmeticException and
ArrayIndexOutOfBoundsException})

33. NestedTry.java
(To demonstrate the use of nested try blocks)

34. finallyDemo.java
(To demonstrate the use of finally keyword)

35. MultiThread.java
(Creating Thread extending Thread class and using its methods like yield(),
sleep() and stop())

36. MultiThread2.java
(Creating Thread implementing Runnable
Interface)

37. Rectangle.java
(To draw the rectangle on applet using drawRect() method)

38. Hello Applet.java / appletFirst.java


(To display the string on applet using drawstring() by extending Applet class )

39. fillColor.java
(To creating a fillColor class extending Applet using setColor())

40. DisplayImage.java
(To display the image in applet window using getImage() and drawImage()
methods)

41. Shapes.java --23/06/21


(To draw the different shapes like line, Oval and rectangle on Applet using
darwLine(), drawOval(), drawRect() methods)
43. AnimationExample.java
(To display the animation/image position shifting)

44. keyEventHand.java
(To demonstrate the KeyListener interface for showing which key pressed.
e.g. Key pressed or Key Released)

45. MousedragEvent.java
(To demonstrate the MouseMotionListener interface to paint the screen by
mouse dragging)

46. actionEventButton.java
(For showing the string in TextField on button click in applet by implementing
ActionListener interface)

******

You might also like