Java 2021
Java 2021
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