R20/R19
R18/R15
[Accredited by NAAC A+ & NBA, Approved by AICTE New Delhi & Permanently Affiliated to JNTUH]
Aziznagar Gate, Chilkur Balaji Road, Hyderabad - 500 075. Subject Code: A44514/ A34511/ A24509/ A14511
II B Tech II SEMESTER SUPPLEMENTARY EXAMINATION, DECEMBER-2023
Subject: Java Programming Branch: CSE, IT & CSE(DS)
Time: 3 hours Max Marks: 75
Note: This Question Paper contains two Parts A and B. Answer all the questions.
Part A is compulsory which carries 25 marks. Ten questions from five units.
Part-B consists of 5 Questions (numbered from 11 to 15) carrying 10 marks each.
Bloom's Level:
Remember L1 Apply L3 Evaluate L5
Understand L2 Analyze L4 Create L6
PART-A 25 Marks Outcomes
BL Marks
ANSWER ALL THE QUESTIONS CO PO
1 Illustrate how type conversion is implemented in Java. 1 2,3 L2 2M
2 Discuss this keyword in Java with an example. 1 2,3 L2 3M
3 In what way super keyword is useful to Java programmer. 2 5,12 L2 2M
4 Elaborate the need of finally block in exception handling. 2 5 L2 3M
5 Differentiate between Byte and Character Streams. 3 2 L2 2M
Discuss the purpose and functionality of StringTokenizer in breaking a string into
6 3 2,3 L2 3M
tokens.
7 Describe how to create MenuBar in Java. 4 2,3 L2 2M
8 Elaborate the importance of Adapter classes in Java. 4 2,3 L2 3M
9 Discuss the concept of Applets and their role in web-based applications. 5 2,5 L2 2M
10 List the key steps involved in executing SQL queries. 5 12 L2 3M
PART-B 5Q x 10M = 50M
ANSWER ALL THE QUESTIONS
List various constructors available in Java. Create a class Employee with fields eno,
11 i) ename, esal and age. Use default and Parameterised constructors to set the values. 1 2,3 L3 10M
Create a method to display the data and the test the creating application.
[OR]
Create a class Reservation with fields no_of_tickets, passenger_name, age, gender,
ii) source_city, destination_city. Create methods for setting and retrieving the values 1 5,12 L3 10M
from the variables. Use static keyword wherever necessary to implement the program.
Explain the concept of inheritance in Java and its significance in object-oriented
12 i) programming. Discuss how inheritance promotes code reuse and the creation of a 2 2,3,5 L2 10M
hierarchy of classes. Provide examples of inheritance in Java.
[OR]
Discuss the role and importance of interfaces in Java. Explain how interfaces facilitate
ii) the achievement of multiple inheritance in Java, and provide examples to illustrate 2 2,3,5 L2 10M
their usage.
13 i) Describe the life cycle of a Thread in Java. Explain each stage of the thread life cycle. 3 12 L2 10M
[OR]
Examine the List interface in Java and discuss any five methods provided by the List
ii) 3 2,3 L2 10M
interface.
Explore the AWT controls in Java and their role in creating graphical user interfaces.
14 i) 4 3,5,12 L2 10M
Discuss the key AWT controls such as Button, TextField, Label, and Checkbox.
[OR]
Explain the concept of event-driven programming. Create a Java program to make use
ii) 4 3,5,12 L3 10M
of Mouse events.
Illustrate with an example on each of the following Layout Managers BorderLayout,
15 i) 5 3,5 L2 10M
FlowLayout, GridLayout, and GridBagLayout.
[OR]
Discuss the JDBC drivers in Java with advantages and disadvantages of each driver
ii) 5 3,5 L2 10M
type.
***VJIT(A)***