JNTU
JNTU B.Tech III OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (December - 2018 - R15)
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
‘Java is platform-independent and portable’ – Justify.
Answer
Java is platform-independent because it compiles source code into Bytecode, which is an intermediate representation. This Bytecode can be executed on any machine equipped with a Java Virtual Machine (JVM), making it portable across different operating systems without requiring recompilation.
List the primitive and non-primitive data types used in Java.
Answer
Primitive data types include: byte, short, int, long, float, double, char, and boolean. Non-primitive (reference) data types include Classes, Interfaces, and Arrays.
Define the usage of final keyword.
Answer
Sign in to view the complete answer paper.
Give the differences between class and an interface.
Answer
Sign in to view the complete answer paper.
Define the term – Exception and Exception Handling.
Answer
Sign in to view the complete answer paper.
What is the role of Sleep class in multithreading?
Answer
Sign in to view the complete answer paper.
List out methods of Mouse Listener.
Answer
Sign in to view the complete answer paper.
Discuss about text component in AWT.
Answer
Sign in to view the complete answer paper.
Differentiate between applets and application.
Answer
Sign in to view the complete answer paper.
List down the limitations of AWT.
Answer
Sign in to view the complete answer paper.
Part B
Define class. How do classes help us to organize our programs? What are the three parts of a simple, empty class?
Answer
Sign in to view the complete answer paper.
Develop a JAVA program to define overloaded constructor to perform string initialization, string copy and string destruction.
Answer
Sign in to view the complete answer paper.
Define inheritance. Describe different forms of inheritance.
Answer
Sign in to view the complete answer paper.
Develop a program to create an interface containing a static inner class. Implement this interface and create an instance of the inner class.
Answer
Sign in to view the complete answer paper.
Write a program to implement array index out of bounds exception.
Answer
Sign in to view the complete answer paper.
Explain about life cycle of the thread.
Answer
Sign in to view the complete answer paper.
Explain how multithreading is supported in java using the thread class and the Runnable interface.
Answer
Sign in to view the complete answer paper.
Develop an event handling program to handle feedback form of JNTUH examination system using your creativity (Give your assumptions clearly).
Answer
Sign in to view the complete answer paper.
What are the different types of AWT components? How are these components added to the container?
Answer
Sign in to view the complete answer paper.
Create an applet having a circle which is moving from left to right and reflected back from right to left continuously.
Answer
Sign in to view the complete answer paper.
Develop a sample java code to explain how buttons and text boxes are added to the container using Swings.
Answer
Sign in to view the complete answer paper.