Java Assignment Assignment 4th
Java Assignment Assignment 4th
Java Programming
Assignment
Collection framework
1. What are java collections? also Define java collection framework with Example.
2. Explain all collection classes with Examples?
3. Differentiate between Array List and Vector classes with examples.
4. Explain in detail about the ArrayList in detail with a program.
5. Explain in detail about the LinkedList in detail with appropriate program.
6. What is StringTokenizer? Write a program to add the given numbers using StringTokenizer?
7. What is a List? Write a program to implement List using LinkedList
8. Explain the iterator and list-iterator in detail.
Files-Streams
1. Explain the predefined streams in java
2. Explain the reading and writing with console I/O.
3. What is InputStream, OutputStream.
4. Explain the methods of InputStream and OutputStream.
5. Explain the Reader and Writer of character streams with their methods.
6. What is DataInputStream and DataOutputStream?
7. Write a program that demonstrates DataInputStream and DataOutputStream.
8. Write a java program to read the file contents and copy the content to other file.
9. What is Datagram? Brief about DataGramPacket.
10. Write a program to read user name from console and display some message for that user using streams.
11. Differentiate between FileReader and BufferReader.
12. What is a stream? What is the difference between byte streams and character streams? How are they used to
capture input from the user?
13. What is adapter class? Give examples.
14. Differentiate between Text field and Text area and also discuss it’s constructors and method.
15. Write any four methods of file class with their use.
16. Write any four methods of File Input stream class give their syntax.
17. Write a java program to copy the content of the file “file1.txt” into new file “file2.txt”.
18. Explain byte stream class in detail.
19. Differentiate between Input stream class and Reader class.
20. Explain file input stream class to read the content of a file.
21. Write any two methods of file and file input stream class each.
22. Explain Stream Classes, Output Stream Class.
Connecting to Database
1. What is JDBC? Explain JDBC drivers with the Diagram?
2. Define connectivity to a database with simple Example? What are the steps to connect to the database in java?
3. Explain querying a database and processing the results, updating data with JDBC.
4. What are the JDBC API components?
5. How can we execute stored procedures using Callable Statement?
6. What is the role of the JDBC Driver Manager class?
7. What does the JDBC Database Meta Data interface?