java
java
21222
3 Hours / 70 Marks Seat No.
15 minutes extra for each hour
P.T.O.
22412 [2]
Marks
2. Attempt any THREE of the following: 12
a) Explain any four features of Java.
b) Write a Java program to copy the content of one file into
another.
c) Write the difference between vectors and arrays. (any four
points)
d) Explain exception handling mechanism. w.r.t. try, catch, throw
and finally.
Fig No. 1.
Marks
P.T.O.
22412 [2]
Marks
2. Attempt any THREE of the following: 12
a) Describe type casting in java with example.
b) Differentiate between string and string buffer class
(any four points)
c) Write a program to create a user defined exception in java.
d) Write a program for reading and writing character to and from
the given files using character stream classes.
Fig. No. 1
c) Write a program to print even and odd number using two
threads with delay of 1000ms after each number.
Fig. No. 2
c) Explain constructor with its type. Give an example of
parameterized constructor.
22412
23124
3 Hours / 70 Marks Seat No.
Marks
P.T.O.
22412 [2]
Marks
2. Attempt any THREE of the following : 12
a) Write a program to display ASCII value of a number 9.
b) Write a program to sort the elements of an array in ascending
order.
c) Define Thread. Draw life cycle of Thread.
d) Write a program to read a file and then count number
of words.