Core Java Assignments
Core Java Assignments
6. WAP to display Palindromes and count number of Palindromes in the given line of
text
Eg:
Output
No of palindromes : 2
Exceptions
Multithreading
Collections
Write a program which stores a Student class object into a file “Student.dat” using
serialization.
1. Write a program which reads an Student class object from the file
“Student.dat” using serialization
2. Write a program to store 5 item records (item number, item name, item
quantity and item rate) into a data file “Item.txt” using DataOutputStream.
3. Write a program to reads 5 item records ( item number, item name, item
quantity and item rate) from the data file “Item.txt” using DataInputStream.
Display the output in the following format
S.No Item No Item Name Quantity Rate Price
-------------------------------------------------------------------
1 111 Monitor 5 5000 25000
2 222 Mouse 10 200 2000
3 333 Keyboard 7 200 1400
4 444 Pendrive 5 600 3000
5 555 UPS 4 1000 4000
-------------------------------------------------------------------
Total Price : 35400
--------------------------------------------------------------------
JDBC
2. Create the following Account table in MySQL with the following columns