JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech III OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (February - 2023 - R18)
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 a class.
Answer
A class is a user-defined blueprint or prototype from which objects are created. It represents a set of properties or methods that are common to all objects of one type.
What is the significance of Java byte code?
Answer
Java byte code is the intermediate representation of Java source code generated by the compiler. Its primary significance is platform independence, as it allows the same compiled code to run on any device equipped with a Java Virtual Machine (JVM), fulfilling the 'Write Once, Run Anywhere' principle.
Define polymorphism.
Answer
Sign in to view the complete answer paper.
How to declare an interface in Java?
Answer
Sign in to view the complete answer paper.
Define a thread. How is it different from a process?
Answer
Sign in to view the complete answer paper.
What is the need of auto boxing?
Answer
Sign in to view the complete answer paper.
What is an event?
Answer
Sign in to view the complete answer paper.
What is the importance of an adapter class?
Answer
Sign in to view the complete answer paper.
List the types of applets.
Answer
Sign in to view the complete answer paper.
What are the limitations of AWT?
Answer
Sign in to view the complete answer paper.
Part B
Describe the features of object oriented programming.
Answer
Sign in to view the complete answer paper.
Does Java support bit-wise operators? Justify your answer.
Answer
Sign in to view the complete answer paper.
Demonstrate constructor overloading with an example Java program.
Answer
Sign in to view the complete answer paper.
Explain the benefits and various forms of inheritance implemented in Java.
Answer
Sign in to view the complete answer paper.
Differentiate between an abstract class and an interface.
Answer
Sign in to view the complete answer paper.
Discuss the access control privileges among packages.
Answer
Sign in to view the complete answer paper.
How are exceptions handled in Java programming? Demonstrate with suitable code segments.
Answer
Sign in to view the complete answer paper.
Discuss the built-in functions used in inter thread communication.
Answer
Sign in to view the complete answer paper.
Write a Java program to count number of words in a given sentence.
Answer
Sign in to view the complete answer paper.
Briefly explain event delegation model.
Answer
Sign in to view the complete answer paper.
Discuss any three listener interfaces frequently used in event handling.
Answer
Sign in to view the complete answer paper.
Construct an user interface form for student registration to a hackathon using AWT components and event handling concept.
Answer
Sign in to view the complete answer paper.
Write the code to create an applet to draw a smiley.
Answer
Sign in to view the complete answer paper.
How to pass parameters to an applet? Present an example code.
Answer
Sign in to view the complete answer paper.
Describe in detail about Model-View-Controller (MVC) architecture with relevant Java program.
Answer
Sign in to view the complete answer paper.