No.
of Printed Pages : 4 MCS-024
MASTER OF COMPUTER
m
APPLICATIONS/ BACHELOR OF
.co
COMPUTER APPLICATIONS
u
[MCA (REVISED)/BCA (REVISED)]
ur
Term-End Examination
ntG
December, 2023
me
MCS–024 : OBJECT ORIENTED TECHNOLOGIES
AND JAVA PROGRAMMING
ign
Time : 3 Hours Maximum Marks : 100
Weightage : 75%
ss
Note : Question No. 1 is compulsory. Attempt any
UA
three questions from the rest.
NO
1. (a) What is a class ? How does it accomplish
data hiding ? Explain with an example. 5
IG
(b) Differentiate between AWT and Swing
components. Give suitable example for
each. 5
P. T. O.
[2] MCS-024
(c) Explain the relationship between
inheritance and polymorphism. Give
example of each. 5
m
(d) What is Java Bean ? Briefly discuss the
.co
features of Java Bean. 5
u
(e) Explain why main( ) method is not
ur
included in writing a Java applet program
ntG
using an applet coding. 5
(f) Compare structured programming and
me
object oriented programming. 5
ign
(g) Discuss the utility of final and finalize
keywords in Java. Give example code for
ss
each. 5
UA
(h) How does datagram socket differ from
stream socket ? 5
NO
2. (a) Write a Java applet to display. “Java is an
IG
object oriented programming language” in
red color. Support your code with suitable
comments. 5
[3] MCS-024
(b) What is a layout manager ? Explain the
flow layout and border layout. Also explain
how a layout is set. 8
m
(c) What are packages in Java ? How do we
.co
create a package in Java ? What are the
steps to add Classes and Interfaces in a
u
package ? 7
ur
3. (a) Differentiate between thread and process.
ntG
Explain Java thread model using thread
life cycle. 7
me
(b) Compare Applet and Servlet. Write the
steps to incorporate applet in a webpage. 8
ign
(c) Explain method overriding in Java using a
ss
program in Java. 5
UA
4. (a) Write a Java program for writing files in
“C:\javafiles\” location. Support your
NO
program with suitable comments. 7
(b) Write the steps of JDBC in establishing a
IG
connection for creating dynamic website for
INSERT/UPDATE the attendance record
for students of a college. 7
P. T. O.
[4] MCS-024
(c) What is synchronization ? Explain how
methods are synchronized in Java with the
help of an example. 6
m
5. Write short notes on the following : 4×5=20
.co
(a) Object serialization
(b) Liberals and its types
u
ur
(c) Servlet life cycle
(d) Garbage collection
ntG
(e) Role of cookies in session handling
me
ign
ss
UA
NO
IG
MCS–024