0% found this document useful (0 votes)
27 views2 pages

Java 2021

The document is an exam paper for a Java programming course. It contains 9 questions across 4 units on topics like object-oriented programming concepts, inheritance, packages, threads, exceptions, applets, AWT classes and more. Students are asked to attempt 5 questions total, selecting one from each unit.

Uploaded by

Ash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views2 pages

Java 2021

The document is an exam paper for a Java programming course. It contains 9 questions across 4 units on topics like object-oriented programming concepts, inheritance, packages, threads, exceptions, applets, AWT classes and more. Students are asked to attempt 5 questions total, selecting one from each unit.

Uploaded by

Ash
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Roll No. .........................

Total Pages : 2

MCAE/D-21 24020
PROGRAMMING IN JAVA
Paper–MCA-20-11
Time Allowed : 3 Hours] [Maximum Marks : 75
Note : Attempt five questions in all, selecting one question from each Unit.
Question No. 1 is compulsory. All questions carry equal marks.
Compulsory Question
1. Differentiate the followings:
(i) Finally and finalize
(ii) “Super” and “This” keywords
(iii) Local and Remote Applets
(iv) Class and Interlace
(v) Byte Stream and Character Stream
(vi) Applet and Servlet.
UNIT-I
2. What do you mean by reusability of code? How you can achieve code
reusability in JAVA. Explain by taking suitable examples.
3. Write Java code to find the area of rectangle using the concept of :
(a) Object (b) Inheritance
(c) Overloading.
UNIT-II
4. (a) Differentiate Multiple and Multilevel Inheritance? Can we achieve
Multiple Inheritance in JAVA ? Justify your answer.
(b) Write JAVA code to find the area of a rectangle using the concept of
package.
5. (a) What is the advantage of Multithreading in Java? Explain thread
synchronization and thread suspension.

24020/K/380 P. T. O.
(b) Can we use Multiple Catch blocks in Exception Handling? Justify
your answer.
UNIT-III
6. Write Applet program to draw Line and circle.
7. What are different stream classes in JAVA? Write program to read the
characters from a text file and count the total characters in the File.
UNIT-IV
8. Write Applet code to design calculator using Layout manager and proper
working of “+” “–” and “/” Buttons.
9. What are AWT Classes? Explain various features of AWT classes in
details. Write Java Program to generate Even numbers in TextField “T”
while pressing Button “CLICK.”

24020/K/380 2

You might also like