You are on page 1of 1

Code No: 42/MCA

NR
M.C.A IV Semester Supply Examinations, Apr/May -2008.

PROGRAMMING IN JAVA

Time: 3 hours Max. Marks: 60


Answer any five questions
All questions carry equal marks
---

1.a) What is a variable? Describe the rules associated with the use of
variables in a JAVA program.
b) What are the various types of operators available in JAVA? List and
explain their purpose and use.

2.a) Write a program in JAVA to evaluate the following function:


n
x × i!
f ( x) = ∑ i i!
i =0 xi
b) What are constructors? Describe their purpose and use. Also write
an illustrative program in Java.

3.a) What is meant by method overloading? Explain the same with


suitable example program in Java.
b) What are packages? Explain the purpose and use of packages in
Java programs.

4.a) What is an interface? Describe the purpose and applications of


interfaces.
b) Describe the concept of multiple inheritance. Also write an
illustrative program in Java depicting the concept of multiple
inheritance.

5.a) What are various types of exceptions? List and explain the
exception handling statements of Java with suitable illustrations.
b) What is meant by synchronization? Describe its objectives.
c) Describe the concept of inter thread communication.

6.a) What are daemon threads? Explain with simple illustrations.


b) What are thread priorities?
c) Describe the differences between process and thread.
d) Describe the concept of event handling.

7.a) Describe the concept of applet. What is the lifecycle of an applet?


b) What are various types of applets? Explain the procedure of
creating applets.

8. Write a short notes on the following:


a) Applet communication
b) AWT controls
c) Java library.
$$$