Jawaharlal Nehru Technological University Hyderabad
Jawaharlal Nehru Technological University Hyderabad B.Tech III OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (May - 2019 - R15)
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
Discuss the major difference between an Array and a Vector.
Answer
An Array is a fixed-size data structure that holds elements of the same type, whereas a Vector is a dynamic array that can grow or shrink in size automatically as elements are added or removed.
How do JAVA programs maintain platform independency using JVM?
Answer
Java achieves platform independence by compiling source code into Bytecode, an intermediate representation. The JVM (Java Virtual Machine) acts as an interpreter or JIT compiler that translates this bytecode into machine-specific instructions for the underlying hardware, allowing the same program to run on any system with a compatible JVM.
What are the advantages of using interfaces in JAVA?
Answer
Sign in to view the complete answer paper.
How packages are created in JAVA?
Answer
Sign in to view the complete answer paper.
Mention the importance of exception handling mechanism in Java?
Answer
Sign in to view the complete answer paper.
What is the difference among final, finally and finalize?
Answer
Sign in to view the complete answer paper.
Define Event and EventListener.
Answer
Sign in to view the complete answer paper.
State the importance of JFrame and JLable in AWT.
Answer
Sign in to view the complete answer paper.
How are swings different from an applet?
Answer
Sign in to view the complete answer paper.
What are the limitations of AWT classes? How swings are used to overcome them?
Answer
Sign in to view the complete answer paper.
Part B
Explain various type casting and conversion operators in JAVA.
Answer
Sign in to view the complete answer paper.
Give a brief note on nested classes.
Answer
Sign in to view the complete answer paper.
How to create classes and instances in JAVA? Give an example.
Answer
Sign in to view the complete answer paper.
Explain the need for objected oriented programming concepts.
Answer
Sign in to view the complete answer paper.
Discuss the various levels of access protection available for packages and their implications. What is static import? Give an example.
Answer
Sign in to view the complete answer paper.
Illustrate the need of super keyword in method overriding with an example.
Answer
Sign in to view the complete answer paper.
How to implement interfaces in JAVA? Explain.
Answer
Sign in to view the complete answer paper.
What is multithreading? What are the two different ways to create multithreaded program in JAVA? Explain them briefly.
Answer
Sign in to view the complete answer paper.
Briefly explain about checked exceptions and unchecked exceptions.
Answer
Sign in to view the complete answer paper.
Give the benefits of exception handling mechanism.
Answer
Sign in to view the complete answer paper.
Explain in details about event sources and event listeners in JAVA.
Answer
Sign in to view the complete answer paper.
How to handle Scrollbars using AWT classes and methods in JAVA? Explain.
Answer
Sign in to view the complete answer paper.
Write a brief note on Adapter classes.
Answer
Sign in to view the complete answer paper.
How to create and implement tabbed panes and Scroll panes? Explain in detail.
Answer
Sign in to view the complete answer paper.
What is the purpose of JPassword field? How is it useful in designing login screens?
Answer
Sign in to view the complete answer paper.
Give a brief note on MVC architecture.
Answer
Sign in to view the complete answer paper.