Java Notes
Java Notes
22223
3 Hours / 70 Marks Seat No.
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.