JNTU
JNTU B.Tech III JAVA PROGRAMMING Previous Question Paper (March - 2024 - R16)
Note: i) Question paper consists of Part A, Part B. ii) Part A is compulsory, which carries 25 marks. In Part A, Answer all questions. iii) In Part B, Answer any one question from each unit. Each question carries 10 marks and may have a, b as sub questions.
Part A
Differentiate between break and continue statement.
Answer
The break statement terminates the entire loop or switch block immediately, whereas the continue statement skips the remaining code in the current iteration and forces the next iteration of the loop to begin.
What is Default Constructor and Parameterized constructor? When does java automatically supply default constructor?
Answer
A default constructor is a no-argument constructor provided to initialize objects with default values. A parameterized constructor accepts arguments to initialize an object with specific values. Java automatically supplies a default constructor only when no other constructor is explicitly defined in the class.
What is the use of anonymous inner class?
Answer
Sign in to view the complete answer paper.
Compare and contrast abstract classes and interfaces.
Answer
Sign in to view the complete answer paper.
What are the various thread states?
Answer
Sign in to view the complete answer paper.
List five common examples of exceptions.
Answer
Sign in to view the complete answer paper.
What is the need of JDBC type 3, type 4 drivers?
Answer
Sign in to view the complete answer paper.
List the benefits of the Java collections framework
Answer
Sign in to view the complete answer paper.
Give the hierarchy for swing components?
Answer
Sign in to view the complete answer paper.
Compare Applets with application programs.
Answer
Sign in to view the complete answer paper.
Part B
Describe the various operators in Java and the operator hierarchy.
Answer
Sign in to view the complete answer paper.
Write a program to generate the Fibonacci series using recursion.
Answer
Sign in to view the complete answer paper.
Explain the concept of classes, objects and methods in OOP.
Answer
Sign in to view the complete answer paper.
Write notes on String class.
Answer
Sign in to view the complete answer paper.
Demonstrate the abstract classes and methods.
Answer
Sign in to view the complete answer paper.
Illustrate the concept of dynamic binding.
Answer
Sign in to view the complete answer paper.
Describe the levels of access protection available for packages.
Answer
Sign in to view the complete answer paper.
Justify the concept of variables in interfaces and extending interfaces with example code.
Answer
Sign in to view the complete answer paper.
Describe the concept of interrupting threads.
Answer
Sign in to view the complete answer paper.
Write a program to illustrate user defined exception that checks the internal and external marks if the internal marks are greater than 40 it raise the exception “internal marks are exceed”, if the external marks are greater than 60 exception is raised and display the message the “external marks are exceed.”
Answer
Sign in to view the complete answer paper.
How to create a thread using Runnable interface?
Answer
Sign in to view the complete answer paper.
Develop a program that includes a try block and a catch clause which processes the arithmetic exception generated by division-by-zero error.
Answer
Sign in to view the complete answer paper.
Write Java program to demonstrate various Vector operations.
Answer
Sign in to view the complete answer paper.
What support is provided by File class for file management?
Answer
Sign in to view the complete answer paper.
Write a program to convert an ArrayList into an array and vice-versa.
Answer
Sign in to view the complete answer paper.
Design a program to store the names of bank depositors and their current balances by using hash table.
Answer
Sign in to view the complete answer paper.
What is the role of event listeners in event handling? List the Java event listeners.
Answer
Sign in to view the complete answer paper.
Write an applet to display the mouse cursor position in that applet window.
Answer
Sign in to view the complete answer paper.
Write an applet program to handle all mouse events.
Answer
Sign in to view the complete answer paper.
What is the significance of layout managers? Discuss briefly various layout managers.
Answer
Sign in to view the complete answer paper.