MCS-024
1. (a) What is Object Oriented Programming? Explain
basic components of Object Oriented Programming . (6 Marks)
(b) Explain abstraction and encapsulation with
the help of examples. (2 Marks)
(c) Explain concept of java virtual machine. (2 Marks)
2. (a) Write a java program to demonstrate use of different operators
available in java. (4 Marks)
(b) Explain followings
in context of java, with the help of examples.
(i)
Access specifiers and Inheritance
(ii) Application program and Applet program (6 Marks)
3. (a) Create array of objects in a java program and pass it as an
argument in a method. (2 Marks)
(b) Write a java program to demonstrate different
use of final variable. (2
Marks)
(c) Write a java
program to create Ticket class with proper constructor, to create a railway
ticket. Define a method to display ticket details. (6
Marks)
4. (a) What is
polymorphism? It provides flexibility in application development? Yes or No?
Justify your answer with the help of an example.
(b) Explain the need
of package in Java. Explain accessibility rules for package. Also explain how
members of a package are imported. Write java program to create your own
package for finding area of different shapes (7
Marks)
5. (a) What is
abstract class? Explain need of abstract class with the help of an example. (2 Marks)
(b) What
is an exception? Explain haw an exceptions are handled in Java. Write a java
program to handle different arithmetic exceptions while managing a medical
store billing process.(8 Marks)
6. (a) What is I/O
stream in java? Write a program in java to create a file and count the number
of words in it. (4 Marks)
(b) Create
an Applet program to display details of a quiz competition. Insert a background
image in this program. (4 Marks)
(c) Write
and explain different constructors of String class. (2 Marks)
7. (a) What is
layout manager? Explain different layouts available in java for GUI
programming. What is default layout of an Applet? Explain how to set the layout
of an applet. (4 Marks)
(b) What is
multithreading? Explain how threads are synchronized in java. (3 Marks)
(c) Explain the need
of JDBC? Explain steps involved in connecting a databases using JDBC. (3 Marks)
8. (a) What is socket? Explain stream sockets and
datagram sockets. (3 Marks)
(b) What is RMI? Explain RMI architecture. (3 Marks)
(c) What is servlet ? Explain servlet life cycle.
(4 Marks)
*****************************************************************
Note: Answer with Dotcom Books
www.dotcombooks4u.com
(Last 5 year solved question
paper with Assignment solutions)
****************************************************************
No comments:
Post a Comment