Jawaharlal Nehru Technological University Hyderabad

Jawaharlal Nehru Technological University Hyderabad MCA 2018 JAVA PROGRAMMING Previous Question Paper (June/July - 2018 - R15)

MCA | 2018 | III | R15 | June/July - 2018

Answer PaperPaper Code: 823ADMaximum Marks: 75Time: 3hrs

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

125 marks
a

Define autoboxing and unboxing.

5 marks

Answer

Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper classes (e.g., converting an int to an Integer). Unboxing is the reverse process, where the compiler automatically converts an object of a wrapper type back into its corresponding primitive value.

b

Define the syntax for creation of inner class.

5 marks

Answer

An inner class is defined within the scope of an outer class. The syntax is as follows:

class OuterClass {
class InnerClass {
// body of inner class
}
}
c

Differentiate treemap and hashmap.

5 marks

Answer

Sign in to view the complete answer paper.

d

Define daemon threads.

5 marks

Answer

Sign in to view the complete answer paper.

e

Define the syntax for checkbox with example.

5 marks

Answer

Sign in to view the complete answer paper.

Part B

2

Explain about the following: a) abstraction b) encapsulation c) dynamic binding d) inheritance

10 marks

Answer

Sign in to view the complete answer paper.

OR
310 marks
a

Write a short note on public, private and protected access specifiers.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain about copy constructor.

5 marks

Answer

Sign in to view the complete answer paper.

410 marks
a

What is a nested class? Differentiate between static nested classes and non-static nested classes.

5 marks

Answer

Sign in to view the complete answer paper.

b

How to define a package? How to access, import a package? Explain with examples.

5 marks

Answer

Sign in to view the complete answer paper.

OR
510 marks
a

Discuss various forms of inheritance.

5 marks

Answer

Sign in to view the complete answer paper.

b

Give an example for function overloading and explain.

5 marks

Answer

Sign in to view the complete answer paper.

610 marks
a

Illustrate with an example the usage of TreeSet and TreeMap classes.

5 marks

Answer

Sign in to view the complete answer paper.

b

Differentiate vector and arraylist with examples.

5 marks

Answer

Sign in to view the complete answer paper.

OR
7

Explain collection frame work with examples.

10 marks

Answer

Sign in to view the complete answer paper.

810 marks
a

What is meant by user-defined exceptions? Demonstrate with example.

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain the procedures to create a new thread.

5 marks

Answer

Sign in to view the complete answer paper.

OR
910 marks
a

What is an exception? What are the benefits of exception handling?

5 marks

Answer

Sign in to view the complete answer paper.

b

Explain with suitable example java programs the following: i) Rethrowing an exception. ii) Method Specifying exceptions.

5 marks

Answer

Sign in to view the complete answer paper.

1010 marks
a

Explain delegation event model.

5 marks

Answer

Sign in to view the complete answer paper.

b

Write a JAVA program for handling key events.

5 marks

Answer

Sign in to view the complete answer paper.

OR
11

Write a JAVA program that works as simple calculator. Use a grid layout to arrange buttons for digits and for the +, -, *, % operations. Add a text field to display the result.

10 marks

Answer

Sign in to view the complete answer paper.

About this paper

This page contains the solved question paper with answers of JAVA PROGRAMMING from Jawaharlal Nehru Technological University Hyderabad for MCA 2018 III, June/July - 2018, R15.

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

Other papers in JAVA PROGRAMMING

Loading Question Papers

Fetching data from database...