0% found this document useful (0 votes)
1 views

content

Uploaded by

pangeni.aakan123
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)
1 views

content

Uploaded by

pangeni.aakan123
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/ 4

SN Lab work Remark

Java program to find GCD of two number using bitwise


1
operator

2 Java program to find Fibonacci series using recursion

3 Java program to find Nth prime number

4 Java program to find swap two number

5 Print triangle star pattern using java

6 Java program to copy all element of one array into another

7 Java program to print array element in reverse order

8 Java program to print the sum of all items of array


9 Java program to delete an element from array

10 Wap in java to display all even number from 1 to 500

11 Java program to add two matrices

12 Java program to multiply two matrices

13 Java program to determine whether two matrices are equal

Java program to find the sum of each row and each column of
14
matrices

15 Java program to display transpose matrices

Java program to count the total number of character in a


16
string

Java program to count the total number of vowel and


17
consonant in string
18 Java program to compare two string

19 Java program to find duplicate word

20 Java program to remove all the white space from a string

21 Java program to check whether a string is a palindrome

22 Java program to find to reverse of string

23 Java program to divide a string in ‘ N’ equal parts

Make class ‘Rectangle ’ with attributes length and breadth.


The class contain methods compute Area and display Area.
24 Write program with main method that create two object of
rectangle class and find their area and display area of larger
rectangle.

Show the example of constructor of student class that have


25
two parameter

Make interface named num with two function int add(int x,


26 int y) and int diff(int x, int y) then make a class that
implements that interface num
27 Wap to Show the example of hierarchical inheritance in java

Create two classes Thread A and Thread B which implement


runnable interface . Thread A display all even number from 50
28 to 100 and Thread B display all odd number from 100 to 200 .
define a main class which create the objects of both the class
and display the number as per mention

Briefly explain about exception and show a program to catch


29
the ArrayIndexOutOfBoundsException .

Write a program that reads line of text from keyboard and


30 write to file. Also read the content of the same file and display
on monitor.

You might also like