JNTU
JNTU B.Tech II JAVA PROGRAMMING Previous Question Paper (December - 2018 - R13)
Note: This question paper contains two parts A and B. 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
What is the significance of Java’s byte code?
Answer
Java bytecode is an intermediate, platform-independent representation of Java source code. It allows Java programs to achieve Write Once, Run Anywhere (WORA) capability by enabling the Java Virtual Machine (JVM) to execute the same compiled code on any hardware or operating system.
List the applications of object oriented programming.
Answer
Object-oriented programming is widely used in:
- Client-server systems and distributed applications.
- Graphical User Interface (GUI) development.
- Simulation and modeling software.
- Enterprise-level software and web application development.
Differentiate class, abstract class and interface.
Answer
Sign in to view the complete answer paper.
How to create and use a package in Java program?
Answer
Sign in to view the complete answer paper.
How does Java support inter thread communication?
Answer
Sign in to view the complete answer paper.
List any four unchecked exception.
Answer
Sign in to view the complete answer paper.
What is the use of Iterator class?
Answer
Sign in to view the complete answer paper.
Compare byte streams with character streams.
Answer
Sign in to view the complete answer paper.
Give the subclasses of JButton class.
Answer
Sign in to view the complete answer paper.
Differentiate between grid layout and border layout managers.
Answer
Sign in to view the complete answer paper.
PART - B
What are the drawbacks of procedural languages? Explain the need of object oriented programming with suitable program.
Answer
Sign in to view the complete answer paper.
Discuss the lexical issues of Java.
Answer
Sign in to view the complete answer paper.
What are the primitive data types in Java? Write about type conversions.
Answer
Sign in to view the complete answer paper.
What is a constructor? What is its requirement in programming? Explain with program.
Answer
Sign in to view the complete answer paper.
With suitable code segments illustrate various uses of ‘final’ keyword.
Answer
Sign in to view the complete answer paper.
Discuss about anonymous inner classes.
Answer
Sign in to view the complete answer paper.
What are the benefits of inheritance? Explain the various forms of inheritance with suitable code segments.
Answer
Sign in to view the complete answer paper.
With a program illustrate user defined exception handling
Answer
Sign in to view the complete answer paper.
How to handle multiple catch blocks for a nested try block? Explain with an example.
Answer
Sign in to view the complete answer paper.
Describe how to create a thread with an example.
Answer
Sign in to view the complete answer paper.
Write a program to explain thread priorities usage.
Answer
Sign in to view the complete answer paper.
What support is provided by File class for file management? Illustrate with suitable scenarios.
Answer
Sign in to view the complete answer paper.
Describe different types of JDBC drivers.
Answer
Sign in to view the complete answer paper.
Explain the random access file operations with a suitable program.
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.
Discuss various AWT containers with examples.
Answer
Sign in to view the complete answer paper.
Explain about the adapter class with an example.
Answer
Sign in to view the complete answer paper.