0% found this document useful (0 votes)
7 views2 pages

JavaProgrammingList23 24

Uploaded by

maluttimonuttan
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)
7 views2 pages

JavaProgrammingList23 24

Uploaded by

maluttimonuttan
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/ 2

PART A - JAVA

1. Write a program to find the sum, difference, product, quotient and remainder of twonumbers passed as
command line argument.
2. Given the sides of a triangle, write a program to check whether the triangle isequilateral, isosceles
or scalene and find its area.
3. Read an array of 10 or more numbers and write a program to find the

a) Smallest element in the array


b) Largest element in the array
c) Second largest element in the array
4. Write a program to perform base conversion

a) Integer to binary
b) Integer to Octal
c) Integer to Hexadecimal
5. Write a program to merge two arrays.

6. Java Programming Code to Find HCF LCM of Two Numbers

7. Write a program to find the trace and transpose of a matrix.

8. Write java program to find the sum of the digits and reverse of a given numberusing class and
objects.
9. Write a Java Programming Code to Check given string Anagram or Not. If the two strings are anagram to
each other, then one string can be rearranged to form the other string. For Example: abc and cba are
anagram.
10. Write a Java Program to remove all vowels from a string
11. Create a class Student to read and display the student details. Create another class mark inherit from
student to read marks of 5 subjects and find total and average. Write a Java program to display the result
of a student.
12. Using class and objects, write a java program to find the sum of two complex numbers
(Hint: Use object as parameter to function).

13. Write a program to count and display total number of objects created to a class(Hint: static
members).
14. Write a java program to find the volume of cube, rectangular box, cylinder using function overloading.
15. Create an abstract class shape with two data members and an abstract method area. Create two child
classes rectangle and triangle. Write a program to display the area of the shapes.
16. Create an interface volume with member variable pi and methods readData() and dispVolume(). Create
one class sphere to implement this interface.Write a Java program to find the volume.
17. Write a multi thread java program for displaying odd numbers and even numbers upto a limit.
18. Write a java program to implement exception handling.
19. Create a package named mypack with a method Area() and import the package in circleArea class. Write
a program to display the area of a circle.
20. Write an applet to display a rectangle with specified coordinate and colour passed as parameter from the
HTML file.
21. Create an AWT application to add, remove items in a list box.
22. Write a java program that handles keyboard events(Use Adapter classes).

You might also like