JNTU
JNTU B.Tech III JAVA PROGRAMMING Previous Question Paper (May - 2019 - R16)
Part A is compulsory which carries 25 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit. Each question carries 10 marks and may have a, b, c as sub questions.
PART - A
Define polymorphism.
Answer
Polymorphism is the ability of an object or reference to take on many forms. It allows methods to perform different tasks based on the object that is invoking them, typically achieved through method overloading (compile-time) and method overriding (runtime).
Why is byte code of Java is known as magical code?
Answer
Java bytecode is considered magical because it is platform-independent. It acts as an intermediate representation that can be executed on any device equipped with a Java Virtual Machine (JVM), enabling the 'write once, run anywhere' (WORA) capability regardless of the underlying hardware or operating system.
What is an inner class?
Answer
Sign in to view the complete answer paper.
Differentiate between interface and abstract class.
Answer
Sign in to view the complete answer paper.
List checked exceptions of Java.
Answer
Sign in to view the complete answer paper.
How to create a thread?
Answer
Sign in to view the complete answer paper.
What is a ResultSet?
Answer
Sign in to view the complete answer paper.
How is a vector different from an array?
Answer
Sign in to view the complete answer paper.
Why swing components are light weight?
Answer
Sign in to view the complete answer paper.
Give AWT hierarchy and swing hierarchy.
Answer
Sign in to view the complete answer paper.
PART - B
Make a comparison of procedure oriented programming and object oriented programming.
Answer
Sign in to view the complete answer paper.
How does Java support type casting?
Answer
Sign in to view the complete answer paper.
Demonstrate the use of ‘this’ keyword.
Answer
Sign in to view the complete answer paper.
Describe different forms of inheritance. Write a program to implement multiple inheritance.
Answer
Sign in to view the complete answer paper.
What is meant by dynamic binding? Explain dynamic method dispatch.
Answer
Sign in to view the complete answer paper.
Describe the need of package creation in Java.
Answer
Sign in to view the complete answer paper.
What is an exception? What are the benefits of exception handling? Explain the five keywords of Java important for exception handling.
Answer
Sign in to view the complete answer paper.
Differentiate between process and thread.
Answer
Sign in to view the complete answer paper.
Write a program to solve producer-consumer problem using inter-thread communication.
Answer
Sign in to view the complete answer paper.
Write a Java program to append second file content to first file, read two file names as command line arguments.
Answer
Sign in to view the complete answer paper.
Describe the four types of database drivers of JDBC.
Answer
Sign in to view the complete answer paper.
Describe the important methods of StringTokenizer class.
Answer
Sign in to view the complete answer paper.
What is an event? Describe delegation event model and write a program to handle mouse events.
Answer
Sign in to view the complete answer paper.
Compare applets with application programs. With suitable program segments explain applet life cycle.
Answer
Sign in to view the complete answer paper.