UNIT-I: Core Java (Data types, Control structures, Arrays, Strings, Vector, Classes,
Inheritance, Packages, Exception handling, Multithreading)
Section A
1. Discuss Data types in Java.
2. How is object created in Java?
3. Compare between JDK, JRE, and JVM?
4. Explain three keywords this, final, super in Java.
5. Explain the feature of Java.
6. What is type casting? Give an example to explain it.
7. What do you mean by class and objects? Explain with a suitable example.
8. Java is platform independent. Explain.
9. What is inheritance? Give the types of inheritance.
10. Why Java is not a pure object-oriented language? Justify your answer.
11. State the different access specifiers available in Java.
12. Difference between a function and a method?
13. What is final variable? Give example also.
14. What is byte-code in Java? Explain.
Section B
1. Write a program to count the number of objects created in a program.
2. What is Thread? What are the advantages of multithreading? Write a program in Java
for creating two threads.
3. Write a code in Java to generate a single calculator using classes and accepting two
integers and an operator with all methods to input, display, add, subtract, product,
and division.
4. What is exception? Give different types of exceptions that could occur during
runtime. Why to handle exception?
5. Explain the concepts of inheritance in Java. Also explain the types of inheritance.
6. What is packages? How packages are created in Java? Explain and give example also.
Section C
1. What is an Exception? How is the exception handled in Java? Difference between
throw and throws.
2. Explain the concepts of inheritance with its types.
3. Define thread. How to create a thread in Java? Write a program that executes two
threads, one prints even numbers and another prints odd numbers from 1 to 5.
4. Write a method in Java that takes two integer arguments and returns the power of it.
Suppose X and Y are passed as arguments, then it returns X^Y after calculation.
5. What is thread priority? Write default values. Write a program to define two threads:
one prints 1 to 10, another prints 10 to 1.
6. (a) What is string buffer? How does it differ from a string? Give three ways to create a
string object.
(b) What is the life cycle of an Applet? Illustrate common methods to create the
applet.
UNIT-II: Java Applets, AWT Controls, Layout Manager, String handling
Section A
1. Explain destroy() method, a stage in the life cycle of an applet.
2. Write an applet to draw square inside a rectangle.
3. What is layout manager?
4. Java is considered as the best language for internet applications. Explain.
Section B
1. Define frame and frameset tag in HTML? Explain it with a suitable program.
2. Write a program in Java to create an applet displaying an image. Also, compare
applets over HTML.
3. Mention various AWT controls. Explain over four of them.
4. What are the life-cycle methods for a JSP? What are the differences between JSP
custom tags and Java beans?
5. Explain applet with its life cycle.
Section C
1. Explain applet life cycle. Write all methods used to create an applet.
2. What is AWT? Explain various AWT controls available in Java with an example.
3. Explain the delegation event model of event handling in Java. How is it a better
approach than other approaches?
4. Write an applet program in Java to create an event listener.
UNIT-III: Networking (Datagram socket and TCP/IP server socket), Event handling,
JDBC
Section A
1. Explain TCP/IP server socket.
2. Difference between JDBC and ODBC?
3. Why JDBC is used for database connectivity?
4. What do you mean by connection pooling? Explain.
Section B
1. Define socket() & server socket() class in Java networking. Write down their methods
with an example.
2. Explain TCP/IP client socket. Also write the constructor and methods used to create
client sockets.
3. Define cookies. Explain the role of HTTP with the supported example.
Section C
1. What is JDBC? Explain the drivers used in JDBC. Write a JDBC program for insert and
display the record of employees using prepared statement.
2. (a) How will you define Socket? How many different types of sockets can you create
in Java? Define also the methods & classes of these different sockets.
(b) (If applicable) Write a program to establish TCP and UDP connections using
Socket programming in Java.
UNIT-IV: HTML (tags, forms, tables, images, META, FRAMESET, formatting)
Section A
1. Explain the anchor and table tag in HTML.
2. Briefly explain the internet concept.
3. How will you create hyperlinks in a web document? Write the code also.
Section B
1. What are cascading style sheets (CSS)? How are they coded? Explain with an example.
2. What is JavaScript? Differentiate between Java and JavaScript. Give an example.
3. How many types of forms are available in HTML? Design an order-entry form that
contains all form controls and elements.
Section C
1. (a) Define the following tags in HTML: <META>, <FORM>, <FRAMESET>
(b) Design a simple form that will accept user entry and display it.
2. Write a webpage in HTML that contains special symbols.
UNIT-V: Java Servlets
Section A
1. Explain Servlet.
2. Write difference between JSP and Servlet.
3. Define the servlet life cycle.
Section B
1. Define Java servlet. How database connectivity is done in Java servlets? Explain.
2. Define advantages of Servlet over CGI. Explain with an example.
3. Explain the working of service() method of a servlet with examples.
4. Write a login page using a servlet.
Section C
1. Explain Servlets with its life cycle. How its life cycle is different from the life cycle of
JSP? Given an example.
2. (a) Explain Servlet life cycle.
(b) Explain drivers used in connectivity in Java.
UNIT-VI: Java Server Pages (JSP)
Section A
1. Explain the main components of JSP.
2. What are the different types of drivers used in Java database connectivity?
Section B
1. What are the life-cycle methods for a JSP?
2. What is JSP? Explain all the main components of JSP and advantages of JSP.
3. Explain the difference between JSP custom tags and Java beans.
4. How dynamic content is generated in JSP?
Section C
1. Discuss JSP in detail. What are JSP directives? Explain various types of directives with
examples.
2. What is JSP? Explain the advantage of JSP and the main components of JSP also. How
JSP is different from Servlet. Give an example.
3. Define the concept of a Java server page. How the dynamic content is generated in
JSP?