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

Advanced Java Important Questions

Uploaded by

nicksingh8143
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)
141 views2 pages

Advanced Java Important Questions

Uploaded by

nicksingh8143
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

Advanced Java - Important Exam Questions

Module 1: Concurrent Programming


1. Explain the concept and life cycle of a thread in Java.

2. Differentiate between Thread class and Runnable interface with examples.

3. What is thread synchronization? How is it implemented in Java?

4. Explain inter-thread communication using wait(), notify(), and notifyAll() with examples.

Module 2: Java Collections and Utility Classes


1. Explain the concept of generics in Java with suitable examples.

2. Describe the collection hierarchy in Java.

3. Compare ArrayList, Vector, and LinkedList in Java.

4. Explain how to use Iterator to access elements in a collection with example code.

Module 3: Java Network Programming


1. What is the role of the java.net package in Java network programming?

2. Describe stream-based socket communication with examples.

3. Write a Java program to implement a simple TCP client-server communication.

4. Explain the process of creating a socket to a remote host using a port.

Module 4: Java Database Connectivity (JDBC)


1. Explain the architecture and role of JDBC in Java.

2. Differentiate between Statement, PreparedStatement, and CallableStatement.

3. What are scrollable and updatable result sets? How are they used?

4. Write a Java program to connect to a database and retrieve data using JDBC.

Module 5: Java Servlet and JSP


1. Explain the life cycle of a servlet with diagram.

2. How does Tomcat server handle GET and POST requests?


3. Explain session tracking using cookies and HttpSession with examples.

4. Write a simple JSP program and explain its life cycle.

You might also like