Adichunchanagiri University
BGS Institute of Technology
Department: Electronics and Communication Engineering
Question Bank
Subject: Java Programming (22CSOE653)
Q.No Questions Marks
Module-1
1. Explain the Java program compilation and execution process with a neat 10
diagram.
2. Describe the concept of Object-Oriented Programming in Java. Explain the 10
five main OOP principles with suitable examples.
3. Describe the major features (buzzwords) of Java and explain each in brief. 10
4. Explain the structure of a simple Java program. Write and explain the output 10
5. Write a Java program to demonstrate Type casting (widening and narrowing) 10
Use of if-else-if ladder.
6. Explain string creation and various string methods in Java with examples. 10
7. Explain different data types in Java with examples and memory size 10
8. Explain Various Control Statements used in Java with Example. 10
Module-2
1. Write a Java program to demonstrate the use of instance variables and methods 10
in a class.
2. Explain with examples: Default Constructor Parameterized Constructor 10
3. Define Inheritance and explain types of Inheritance with example 10
4. Explain the ‘this’ keyword and Finalize () method with an example 10
5. Write a Java program to demonstrate Type casting (widening and narrowing) 10
Use of if-else-if ladder
6. Explain string creation and various string methods in Java with examples. 10
7. Explain Super to call Super Class Constructor and access the members of 10
Super Class with example.
8. Explain Method Overriding and final keyword with examples 10
9. Write a Java program to implement multiple interfaces in a single class. 10
Explain how Java handles multiple inheritance using interfaces.
Module-3
1. Explain the concept of Java packages. Discuss the types of packages in Java 10
with suitable examples
2. What is CLASSPATH in Java? Explain its role in package handling. Also, 10
explain how to set and use CLASSPATH
3. With suitable examples, explain the three ways to access a class from another 10
package.
4. What is an interface in Java? How does it support abstraction and multiple 10
inheritance? Illustrate with examples.
5. Explain the concept of nested interfaces in Java. How are they declared and 10
implemented? Give a complete example
6. Write a Java program to implement multiple interfaces in a single class. 10
Explain how Java handles multiple inheritance using interfaces.
7. What is an interface in Java? How does it support abstraction and multiple 10
inheritance? Illustrate with examples.
8. Explain nested interface with example 10
9. Module-4
1. Explain the concept of exception handling in Java. What are the differences 10
between compile-time and run-time errors? Illustrate with examples.
2. What is the significance of multiple catch blocks in exception handling? 10
Explain with a Java program handling more than one exception.
3. Discuss the use of try, catch, and finally blocks in Java with a suitable example. 10
What is the importance of the finally block?
4. What is the significance of multiple catch blocks in exception handling? 10
Explain with a Java program handling more than one exception
5. Write a Java program to demonstrate the handling of an Arithmetic Exception. 10
Explain how exception propagation works in Java.
6. Write a Java program that demonstrates the use of the join() method. Explain 10
the difference between join() and isAlive() methods.
7. Describe the life cycle of a thread in Java. How do different methods like 10
sleep(), start(), wait(), and notify() affect it?
8. Explain two different ways to create threads in Java. Provide complete code 10
examples using both Thread class and Runnable interface.
9. Explain two methods of creating threads with an example 10
10. Module-5
1. Explain the life cycle of a Java Applet with suitable method descriptions. 10
Illustrate the order of method execution with a neat diagram.
2. Write a Java Applet program to draw basic shapes like line, rectangle, oval, 10
arc, and demonstrate the usage of Graphics class methods. Also, explain each
method used.
3. Write a Java Applet program to draw basic shapes like line, rectangle, oval, 10
arc, and demonstrate the usage of Graphics class methods. Also, explain each
method used.
4. What are the key differences between AWT and Swing in Java? Explain with 10
examples and a comparison table.
5. Write a Java program using Swing components to create a simple GUI form 10
with labels, text fields, and a submit button. Explain how components are
initialized and events are handled.
6. Explain how controls like Button, Label, and TextField are added to a Java 10
Applet using AWT. Write a complete program to demonstrate these controls
along with event handling
7. Write a Java Applet program to draw basic shapes like line, rectangle, oval, 10
arc, and demonstrate the usage of Graphics class methods. Also, explain each
method used.
8. What are the key differences between AWT and Swing in Java? Explain with 10
examples and a comparison table.
9. Briefly Explain Adding controls to Java Applets with an example. 10
10. Write a Java program using Swing components to create a simple GUI form 10
with labels, text fields, and a submit button. Explain how components are
initialized and events are handled.