Java Question Bank For Mid-2
Java Question Bank For Mid-2
(AUTONOMOUS)
II B TECH II SEMESTER (R20) I MID DESCRPTIVE EXAMINATIONS, MAY-2022
QUESTION BANK - 2
Subject: Java Programming R20
Common to: ECE Only
Q. Questions Total
CO BTL
No. Marks
Unit-III (PART-B)
Explain different types of Checked and Unchecked exceptions with
i CO3 2
1. examples? 14M
ii Write JAVA programs for any six Built-in exceptions? CO3 3
i Discuss usage of try, catch, throw, throws and finally keywords? CO3 2
2. 14M
ii Write a Java program for creating own exception subclass? CO3 3
Unit-IV
i Explain creating multiple threads using Thread class? CO4 2
3. 14M
ii Explain Thread Life Cycle with a neat diagram? CO4 2
i Explain Inter Thread Communication with an example? CO4 2
4. 14M
ii Define Thread priority? Write a Java Program for Thread Priority? CO4 1
i Describe Java.Util package and its classes and Interfaces? CO4 2
5. 14M
ii Write a Java Program to read from a file using BufferedReader class CO4 3
Explain BufferedOutputStream, BufferedWriter,and FileReader
i CO4 2
6. classeses with examples? 14M
ii Write a Java Program to write to a File using FileWriter class CO4 3
Unit-V
i Explain Creating applets with example programs? CO5 2
7. Discuss how to pass passing parameters to applets with an example 14M
ii CO5 2
program?
Define delegation event model. What are the different event classes
i CO5 1
8. explain? 14M
ii Write a Java Program for Handling Mouse Events? CO5 3
i Explain Adapter class with an example program? CO5 2
9. ii Explain Label, Button, TextField and TextArea components with CO5 2 14M
examples?
i Define LayoutManager? What are different LayoutManagers? Explain CO5 1
with examples?
10. 14M
ii Differentiate between swings and AWT ? Write a Java Program for CO5 3
creation of ImageIcon and JLabel?