Tuesday, 6 September 2011

Java Programming Lab Cycle 1


Java Programming
Lab Cycle 1
1.Write a program to show how to handle the following exceptions
          1.Array Index out of bounds exception
          2.Divide by zero exception
          3.Arithmetic exception
2.Write a program to encrypt and decrypt a file
3.Write a program to implement the concept of single thread, multi thread, synchronized thread.
4.Write  a database program about the following.
          1.To read data from database with fields such as name,id,city and country.
          2.To insert a set of values into the table using Java Frame.
          3.To print and update the salary for a given employee number.
5.Write a program whether the Given number is armstrong or prime or perfect or not?
6.Write a program to count no. of words,vowels,lines in a given file.
7.Write a java program to show inheritance.
8.Write a program to show matrix multiplication.
9.Write a program to print the contents of file using filestream class.

No comments:

Post a Comment