You are on page 1of 2

Java Question Bank

Unit-1
1a. Explain the different types of constructors with an example
1b. Explain the scope and life time of the variable
2a. Brief the important features of java
2b. Explain the basic concepts of object oriented programming
3a. Explain the use of this keyword
3b. Describe the different types of data types used in java
4a. Write a program to find the multiplication of two matrix .
4b. what is a class and object? Is there any relationship between
them? Explain
5a. Describe the characteristics of object oriented programming
concepts?
5b. Write about the break and continue statements with an
example.
06 Explain about arrays in detail?
Unit-2
1a. Explain about Abstract Classes with an Example.
1b. Design an interface called Shape with methods draw()
and getArea(). Further design two classes called Circle and
Rectangle that implements Shape to compute area of respective
shapes. Use appropriate getter and setter methods. Write a java
program for the same.
2a. What is java package? What is CLASS PATH? Explain how to
create and access a java package with an example?
2b. Explain the method overriding with an example program
3a. Explain the importance of anonymous inner class with an
example?
3b. with suitable program segments describe the usage of super keyword
4a. How to access, import a package? Explain with examples.
4b. Define multiple inheritance. Does Java Support multiple
inheritance? Justify your answer.
5a. Write java program to implement the multilevel Inheritance.
5b. What is meant by dynamic method dispatch? Explain with a
program.
06 What are the main differences between abstract classes and
interfaces in java
Unit-3
1a. Write a program that includes a try block and a catch clause
which processes the
Arithmetic exception generated by division-by-zero error.
1b. Writer a program to explain multiple catch blocks usage
2a. What is an exception? How are exceptions handled
in Java programming? Explain with suitable program.
2b. Explain the synchronization methods with an example?
3a. Write a program to implement a producer and consumer
problem by using multithreading?
3b. Write a program that demonstrates the priority setting in
threads.
4a. Write a program to implement multi thread programming
4b. Explain thread life cycle
5a. Describe producer consumer pattern using inter thread communication
5b. Write a java program to read a text file and print the number
of unique words
06 Explain the different types of drivers used in JDBC.
Unit-4
1a. Write the function of stringTokenizer
1b. Write the Java Collection frame work with an example.
2a. Write JDBC with an example
2b. Write JDBC example for updating data.
3a.Explain Vector with syntax.
3b. Write hash table with an example.
4a.Describe Array List with syntax
4b. Define stack with syntax.
5a. Explain scanner class with example.
5b. Define random access file?
06 Explain types of JDBC drivers
Unit-5
1a. Write a java program to design a scientific calculator using
AWT.
1b. What are the different types of Event listeners supported by
java?
2a. Explain the various components in Swing?
2b. Describe about various components in AWT?
3a. What is the significance of Layout managers? Discuss briefly various layout
managers
3b. Give an overview of JButton class
4a. What is preferred size of a component and how it is
related to the Layout Managers?
4b. List out various Swing component classes and explain them
clearly.

5a. What is an applet? Explain the process of creating an applet?


5b. What are the limitations of AWT? How did they overcome in
swings?
06 Discuss about JApplet, JFrame and JComponent.

You might also like