cszcfs

2
August 2012 Master of Computer Application (MCA) Semester 4 MC0078 Java Programming 4 Credits (Book ID: B0831 & B0832) Assignment Set 1 (60 Marks) Answer all Questions Each Question carries TEN marks Book ID: B0831 1. What are the difference between an interface and an abstract class? 2. Explain the following with respect to Inheritance in Java: a. Various Access Specifiers and their usage b. Abstract classes and their applications 3. Describe Exception Handling in JAVA Book ID: B0832 4. What do you mean by Object Adapter? Explain with an example? 5. Describe the following with respect to implementation of Sockets in Java: a. Reading from and Writing to a Socket b. Writing the Server Side of a Socket 6. Define RMI. Define the architecture of RMI invocation.

Upload: rahul-agrawal

Post on 28-Apr-2015

87 views

Category:

Documents


2 download

DESCRIPTION

sdfsfs

TRANSCRIPT

Page 1: cszcfs

August 2012

Master of Computer Application (MCA) – Semester 4

MC0078 – Java Programming – 4 Credits

(Book ID: B0831 & B0832)

Assignment Set – 1 (60 Marks)

Answer all Questions Each Question carries TEN marks

Book ID: B0831

1. What are the difference between an interface and an abstract class?

2. Explain the following with respect to Inheritance in Java:

a. Various Access Specifiers and their usage

b. Abstract classes and their applications

3. Describe Exception Handling in JAVA

Book ID: B0832

4. What do you mean by Object Adapter? Explain with an example?

5. Describe the following with respect to implementation of Sockets in Java:

a. Reading from and Writing to a Socket

b. Writing the Server Side of a Socket

6. Define RMI. Define the architecture of RMI invocation.

Page 2: cszcfs

August 2012

Master of Computer Application (MCA) – Semester 4

MC0078 – Java Programming – 4 Credits

(Book ID: B0831 & B0832)

Assignment Set – 2 (60 Marks)

Answer all Questions Each Question carries TEN marks

Book ID: B0831

1. Write a program to demonstrate the concept of I/O streams in Java.

2. How do you implements inheritance in java?

3. Explain the following with respect to Servlets in Java:

a. Web Architecture

b. Servlet Life cycle

Book ID: B0832

4. What is the difference between TCP and UDP?

5. Explain the life cycle of a Servlet?

6. Describe the following with respect to CORBA:

a. Implementing a CORBA Client

b. Object Implementations

Also write code snippets to demonstrate the above concepts.