JNTU
JNTU B.Tech III JAVA PROGRAMMING Previous Question Paper (July - 2023 - 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
Define encapsulation.
Answer
Encapsulation is the mechanism of wrapping data (variables) and the code acting on that data (methods) together as a single unit, known as a class, while restricting direct access to some of an object's components.
What is the use of finalize method?
Answer
The finalize() method is called by the garbage collector on an object when garbage collection determines that there are no more references to the object. It is used to perform cleanup operations, such as closing open files or releasing system resources, before the object is reclaimed.
Define static inner class.
Answer
Sign in to view the complete answer paper.
What is the need of CLASSPATH variable?
Answer
Sign in to view the complete answer paper.
What is an exception?
Answer
Sign in to view the complete answer paper.
What are the various states of a thread?
Answer
Sign in to view the complete answer paper.
List the functions of Scanner class.
Answer
Sign in to view the complete answer paper.
Differentiate between byte and character streams.
Answer
Sign in to view the complete answer paper.
Why swing is preferred over AWT?
Answer
Sign in to view the complete answer paper.
List the advantages of applets over application program.
Answer
Sign in to view the complete answer paper.
Part B
Describe the basic concepts of object oriented programming with illustrations.
Answer
Sign in to view the complete answer paper.
How to read input from keyboard in Java program?
Answer
Sign in to view the complete answer paper.
Explain any three methods of String class.
Answer
Sign in to view the complete answer paper.
Demonstrate dynamic method dispatch concept with suitable program.
Answer
Sign in to view the complete answer paper.
Write a Java program to implement multi level inheritance.
Answer
Sign in to view the complete answer paper.
How to prevent inheritance in Java?
Answer
Sign in to view the complete answer paper.
Can a user defined an exception? Justify your answer.
Answer
Sign in to view the complete answer paper.
Discuss the unchecked exception in Java.
Answer
Sign in to view the complete answer paper.
How to create multiple threads in Java program? Explain with an example program for multitasking.
Answer
Sign in to view the complete answer paper.
Write a program to count the number of occurrences of a given word in a text file.
Answer
Sign in to view the complete answer paper.
Demonstrate the steps in connecting a database to Java program.
Answer
Sign in to view the complete answer paper.
What is an event? What is meant by event sources? How events are handled in Java programming.
Answer
Sign in to view the complete answer paper.
Illustrate parameter passing to applet.
Answer
Sign in to view the complete answer paper.
Discuss grid layout with applications.
Answer
Sign in to view the complete answer paper.