JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD B.Tech II Year OBJECT ORIENTED PROGRAMMING THROUGH JAVA Previous Question Paper (March - 2021 - R16)

B.Tech | II Year | I Semester | R16 | March - 2021

Answer PaperPaper Code: 133BMMaximum Marks: 75Time: 3 hours

Answer any five questions

All questions carry equal marks

Main

115 marks
a

Explain various features of Java language.

7 marks

Answer

Java is a robust, object-oriented language designed for portability and security. Its key features include:

  • Simple: Java eliminates complex features like explicit pointers and operator overloading, making it easier to learn and maintain.
  • Object-Oriented: Everything in Java is an object, following principles like encapsulation, inheritance, polymorphism, and abstraction.
  • Platform Independent: Java code is compiled into bytecode, which runs on any machine equipped with a Java Virtual Machine (JVM), adhering to the 'Write Once, Run Anywhere' (WORA) principle.
  • Secure: Java provides a secure environment by avoiding explicit memory management and using a sandbox model for executing untrusted code.
  • Robust: It emphasizes early error checking through strong type-checking and provides an effective exception handling mechanism.
  • Multithreaded: Java supports concurrent execution of multiple threads, allowing developers to build interactive and responsive applications.
  • Distributed: It facilitates the development of applications that can span across multiple machines over a network using RMI and EJB.
b

Describe various forms of inheritance in java with example.

8 marks

Answer

Inheritance allows a class to acquire the properties and behaviors of another. Java supports the following forms:

  • Single Inheritance: A subclass inherits from one superclass.
    Example: class B extends A {}
  • Multilevel Inheritance: A class inherits from a derived class, creating a chain.
    Example: class C extends B {} where B extends A.
  • Hierarchical Inheritance: Multiple subclasses inherit from a single superclass.
    Example: class B extends A {} and class C extends A {}.
  • Multiple Inheritance (via Interfaces): Java does not support multiple inheritance with classes to avoid ambiguity (the Diamond Problem), but it achieves this through interfaces.
    Example: class C implements A, B {}.

Note: Hybrid inheritance, a combination of the above, is also supported in Java only through the use of interfaces.

215 marks
a

Explain string and string buffer class in Java.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about method overriding in Java with example.

7 marks

Answer

Sign in to view the complete answer paper.

315 marks
a

What is interface? How to implement interface in Java?

8 marks

Answer

Sign in to view the complete answer paper.

b

Write java program to display the contents of file.

7 marks

Answer

Sign in to view the complete answer paper.

415 marks
a

What is Exception? How exceptions are handled in Java?

7 marks

Answer

Sign in to view the complete answer paper.

b

Explain how to implement thread priorities in java with examples.

8 marks

Answer

Sign in to view the complete answer paper.

515 marks
a

Explain briefly about the life cycle of a thread and Explain various methods of thread class.

8 marks

Answer

Sign in to view the complete answer paper.

b

What is synchronization? How to implement synchronization in Java.

7 marks

Answer

Sign in to view the complete answer paper.

615 marks
a

Explain about Collection interface and its methods.

8 marks

Answer

Sign in to view the complete answer paper.

b

How to implement Array List in Java with examples?

7 marks

Answer

Sign in to view the complete answer paper.

715 marks
a

Write a Java program for method overloading concept.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about MVC architecture.

7 marks

Answer

Sign in to view the complete answer paper.

815 marks
a

Develop an applet that receives an integer in one text filed and the compute the factorial value and return in another text filed, when the button named COMPUTE is clicked.

8 marks

Answer

Sign in to view the complete answer paper.

b

Explain about the Mouse Event Class and how to implement java with example.

7 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of OBJECT ORIENTED PROGRAMMING THROUGH JAVA from JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD for B.Tech MME-MMT II Year I Semester, March - 2021, R16.

For the question paper without answers, switch to the Question Paper tab.

Other papers in OBJECT ORIENTED PROGRAMMING THROUGH JAVA

Loading Question Papers

Fetching data from database...