MCA 5 Java Programming

paltryboarpigSoftware and s/w Development

Nov 3, 2013 (3 years and 5 months ago)

69 views

MCA
-
5

JAVA
PROGRAMMING



CHAPTER
-
1

1.

Define OOP.
Explain

the basic concepts of OOP.

2.

Write down the applications and benefits of OOP.


CHAPTER
-
2


1.

Explain the various features of java.


2. Differentiate between Java and C++.



3.
Define

Web brow
sers. Write down the various types of web browsers.



4. Explain the Java environment.




5. Define World Wide Web. Name and explain the different web browsers.


CHAPTER
-
3

1.

What are the different control statements available in java?

2.

Define vector? Ex
plain the concept of vector with help of an Example?

3.

Define array. How multidimensional arrays are handled in java?
Illustrate the answer.

4.

What are operators and what are the various types of operators
available in

Java?

5.

explain the difference between:

a.

abs
tract class and interface

b.

class and object

6.

What is a package in Java?

How we can create a package in Java?
How

are packages used? Give an example of one of the standard
packages that are part of Java.

7.


a. Define variable. Write down the syntax for declarin
g variable.



b.
Define interface. Give the syntax to define an

interface.


8.
What are the essential characteristics of an array, as it is used in




Java? Explain carefully what is accomplished by this statement:


dou
ble [ ] values = new double[5];


CHAPTER
-
4


1
. Explain the applet life
-
cycle.
Explain

the roles of the init
()
,
start
()
, stop
()
,




paint() and destroy() methods?


2.
Write

about an applet and its applications.


3. Define apple
t. Write about local and remote applet. How we can compile


and run the applet program



4. Write any three attributes of <APPLET> tag?

And

also

explain the



different ways to run an applet?



5. Write about java.la
ng package. H
ow can you import
the package in a java

program?


CHAPTER
-
5

1.

Give two example events, stating how they are generated, and two example
listeners, explaining what they are listening for. The example listeners need not
manipulate the example events.

2. Define swing. What are different user interface components available in
swing package?

3. Explain the different layout managers available in java?


CHAPTER
-
6


1.


Explain in detail event delegation model.


2. Explain Listeners and Events with referenc
e to Java SWING
components.
What

type of event does the Java
Mouse

Motion Listener Interface
report?
Describe

two types of application that might use it?



CHAPTER
-
7

1.

Write the syntax to execute multiple catch statements.

2.

Write a program using finally st
atement.

3.

Explain how you can use exception handling mechanism to debug a
program.

4.

Define Exception? Explain Exception Handling mechanism of java?

5.

Create a user
-
defined exception in Java
.

6.

What is the need of exception handling? Explain
.

the use of

try
-
catch

block in exception handling with the help of a program.


CHAPTER
-
8

1.
What is the difference between th
e File and Random Access File

classes?

Explain

by taking examples
.

2. Explain stream in Java. How many types of streams are there in Java?


CHAPTER
-
9

1
. What is multithreading? What is synchronization with respect to

multithreading and

why is it important?

2.
What do you mean by thread synchronization? Write a program in java to
display the use of thread synchronization.

3.

Explain thread life cycle i
n detail.

4. Explain the various thread control methods.

5. Explain the two ways of creating a thread in Java and the role of the start
()
,
run
()

and stop
()

methods
.

6. What is a thread? What are the two ways to create the thread? What is the
purpose of the

class java.lang.Thread?


CHAPTER
-
10

1.

How client and server sockets are created in java? Explain with example.

2.

Define network sockets and list the different types of network sockets
Java provides.

3.

Explain the difference between:

a.

TCP/IP and UDP

b.

IP address an
d DNS



CHAPTER
-
11

1.

What is JDBC? How do you connect to the Database?

2.

Write a program that

fetches the emp_name and salary
from the
Employee table using JDBC.

3.

How DSN is created in Java to make connectivity?

4.

Differentiate

between
:


a.

State
ment

and PreparedStatement objects


b.

JDBC and ODBC

5.

Write a short note on:
-

a.

java.sql package

b.

JDBC drivers

c.

Metadata in JDBC

d.

DriverManager class

e.

Database transactions in JDBC


CHAPTER
-
12

1.

How do you invoke a Java Servlet? What is the differ
ence between
doPost (
)

and
doGet (
) methods? What are the parameters of the
service (
) method?

2.

What is meant by Java Servlets? What is the difference between the

HTTP Servlets and Generic Servlets? Explain their methods and the
parameters of those me
thods?

3.

Create

a servlet that illustrates the use of cookies.

4.


Write a short note on life cycle of servlet.

5.


What are the components of Java Development
Kit (
JDK)?