Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad MCA 2017 JAVA PROGRAMMING Previous Question Paper (August - 2017 - R13)

MCA | 2017 | III | R13 | August - 2017

Answer PaperPaper Code: 813AQMaximum Marks: 60Time: 3 Hours

Part A is compulsory which carries 20 marks. Answer all questions in Part A. Part B consists of 5 Units. Answer any one full question from each unit.

Part A

120 marks
a

What is a constructor? Explain briefly various types of constructors.

4 marks

Answer

A constructor is a special member method in Java that is invoked automatically when an object of a class is created. It has the same name as the class and does not have a return type. Constructors are primarily used to initialize the state of an object.

Types of constructors:

  • Default Constructor: A constructor provided by the compiler if no constructor is explicitly defined in the class. It initializes instance variables to their default values.
  • No-Argument Constructor: A constructor defined by the user that takes no parameters.
  • Parameterized Constructor: A constructor that accepts arguments, allowing the user to initialize an object with specific values at the time of creation.
b

What is inner class? Write its uses.

4 marks

Answer

An inner class is a class defined within the scope of another class. It has access to the members of the outer class, including private members.

Uses of inner classes:

  • Logical Grouping: They allow grouping classes that are used in only one place, making the code more readable and maintainable.
  • Encapsulation: They provide a way to hide a class from other classes in the same package, enhancing encapsulation.
  • Callback Implementation: They are frequently used to implement event listeners in GUI programming (e.g., anonymous inner classes).
c

Discuss about Java.net package.

4 marks

Answer

Sign in to view the complete answer paper.

d

Discuss about thread priorities and how do set the priory to a thread in java.

4 marks

Answer

Sign in to view the complete answer paper.

e

Elaborate the life cycle of applet.

4 marks

Answer

Sign in to view the complete answer paper.

Part B

28 marks
a

Discuss various access modifiers in java.

4 marks

Answer

Sign in to view the complete answer paper.

b

Demonstrate string class and the methods available in string class.

4 marks

Answer

Sign in to view the complete answer paper.

OR
38 marks
a

Write a java program to demonstrate method overloading.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write the features of java programming language.

4 marks

Answer

Sign in to view the complete answer paper.

48 marks
a

What is inheritance? Write its advantages.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a java program to demonstrate multilevel inheritance.

4 marks

Answer

Sign in to view the complete answer paper.

OR
58 marks
a

What is interface? Explain how it is differ from abstract class.

4 marks

Answer

Sign in to view the complete answer paper.

b

Design a java program to implement interface with an example.

4 marks

Answer

Sign in to view the complete answer paper.

68 marks
a

Give an account on Hash Table class and explain with example program.

4 marks

Answer

Sign in to view the complete answer paper.

b

Discuss about Treemap interface in detail.

4 marks

Answer

Sign in to view the complete answer paper.

OR
7

Explain the steps to create TCP connection using Socket class and design a java program to send a message to the server from client and waiting for response from the server.

8 marks

Answer

Sign in to view the complete answer paper.

88 marks
a

Give a note on checked and unchecked exception.

4 marks

Answer

Sign in to view the complete answer paper.

b

Design a java class to handle checked and unchecked exception.

4 marks

Answer

Sign in to view the complete answer paper.

OR
98 marks
a

What is thread and explain life cycle of thread?

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a Java program to implement multi threading concept.

4 marks

Answer

Sign in to view the complete answer paper.

108 marks
a

Discuss various layout manages in java.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write a java program to create a frame which takes two integers and display the sum of two integers using button events.

4 marks

Answer

Sign in to view the complete answer paper.

OR
118 marks
a

What is delegation event model? Explain in detail.

4 marks

Answer

Sign in to view the complete answer paper.

b

Write an applet program to draw an oval.

4 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the question paper of JAVA PROGRAMMING from Jawaharlal Nehru Technological University Hyderabad for MCA 2017 III, August - 2017, R13.

For the solved question paper with answers, switch to the Answer Paper tab.

Other papers in JAVA PROGRAMMING

Loading Question Papers

Fetching data from database...