Vous êtes sur la page 1sur 3

Spring 2012 Master of Computer Application (MCA) Semester IV MC0078 Java Programming 4 Credits (Book ID: B0831 &

p; B0832 ) Assignment Set 1 (60 Marks)


Each question carries 10 Marks 1. Discuss various features of Java and its applications. 2. Write a program to perform the basic arithmetic operations: a) Addition b) Subtraction c) Multiplication d) Division Use 4 different methods for the above and invoke them as necessary from the main() method. 3 Write an event driven program to perform the arithmetic operations as shown in the interface below: 6 X 10 = 60

4. Write a complete JDBC based application where in the user supplies the following
table as input and the program should have the facilities of Adding, Modifying, Viewing and Deleting the Records of the given table. Stud_No 1 Stud_Name Abc Course MCA Fees 200000 Duration 3 Years

5. Explain the process of implementing a CORBA client using a Java programming


example and the steps involved. 6. Write a program using iostreams to take as input two multi-dimensional arrays and print their sum as output (Matrix Addition) in Matrix format.

Spring 2012 Master of Computer Application (MCA) Semester IV MC0078 Java Programming 4 Credits (Book ID: B0831 & B0832 ) Assignment Set 2 (60 Marks)
Each question carries 10 Marks 6 X 10 = 60

1. With the help of a simple program demonstrate the compilation and execution of Java Programs. 2. Write a complete program for each of the following: Decision Making Statements Looping Statements 3. Write a program to demonstrate the concept of various possible exceptions arising in a Java Program and the ways to handle them. 4. Write a program to show the various ways of creating and running threads in Java.

5. Write a simple program in Java to display a string message using Servlets. List out the steps involved in Compiling and Running Servlets.

6. Write a program in Java to demonstrate the complete life cycle of a Servlet.

Vous aimerez peut-être aussi