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

Introduction To Java Programming (TBC 501)

Uploaded by

Maya Joshi
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 views2 pages

Introduction To Java Programming (TBC 501)

Uploaded by

Maya Joshi
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

School of Computing

Introduction to Java Programming (TBC 501)


BCA V Semester
S.No. Lab Tasks

1. a. Write a java program to print sum of digits of a number.


b. Write a java program to reverse a given number.
c. Write a java program to check whether given number is palindrome or not.
d. Write a java Program to display details of student two (Name, roll no, marks) using class.
e. Write a Java Program to find nCr & nCr.
f. Write a Java Program to Print Whether the Given Alphabet is Vowel or Consonant.
2.
a. Write a java Program for demonstration of static import statement.
b. Write a java Program to demonstrate the constructor chaining.
c. Write a java Program demonstrates difference between constructor, static block and init block.
d. Write to java Program to demonstrate all type inheritance.
e. Write a java Program to demonstrate method overloading and method overriding
3. a. Write a java Program to demonstrate method overloading and method overriding.
b. Write Java Program to print Prime Number from 1 to 100.
c. Write Java Program to print Armstrong Number.
d. Write Java Program to find Transpose of a Matrix Program.
e. Write Java Program to demonstrate Scanner Class and Console class.
4.
a. Write Java Program to demonstrate DataInputStream and BufferedReader class.
b. Write Java Program to demonstrate String, StringBuffer and StringBuilder class.
c. Write Java Program to demonstrate Packages and interface.
d. Write Java Program to demonstrate abstract class and abstract method.
e. Program to execute batch of SQL statements, insert & read image, commit & rollback.
5. a. Write Java Program to demonstrate Exception handling.
b. Write Java Program to demonstrate try, catch and finally.
c. Write Java Program to demonstrate throw statement, throws clause.
d. Write Java Program to demonstrate Java thread model, synchronization.
e. Write a Java program to compare two files lexicographically.
6. a. Write a Java program to remove a specific element from an array.
b. Write a program to swap two number using bitwise operator
c. Write a java program to convert a decimal number to binary number.
d. Write a simple program for CallableStatement statement to execute stored procedure.
e. Write a program for CallableStatement statement with stored procedure returns IN, OUT
parameters
7. a. Write a java Program to get column properties from ResultSet using ResultSetMetaData.
b. Write a program to find most repeated and least repeated Character in the String
c. Write an example for JDBC prepared statement with ResultSet
d. Write a java program to Connect with database using JDBC.
8. a. Program to create a header file and use it in a program.
b. Program to demonstrate Swing Controls.
1. JButton, JLabel, JCheckBox, JRadioButton
2. JList, JComboBox
3. JTextFiled, JTextArea
4. JScrollBar, JTable

9. a. Write java program to demonstrate List, Set, and ArrayList.


b. Write java program to demonstrate LinkedListHashSet and ArrayDeque.
c. Write an example for batch update using PreparedStatement.
d. Write a program in java to merge two files and write it in a new file.
e. Write a program in java to encrypt a text file

10. a. Write a program in java to merge two files and write it in a new file.
b. Write a program in java to remove a file from the disk.
c. Write a program in java to decrypt a previously encrypted file.

You might also like