Professional Documents
Culture Documents
com
2
om 1
Reg. No. :
Fifth Semester
pa
ul
.c
jin
21re
2.
Write a copy constructor for class date (assume mm, dd, yy as its members).
3.
4.
5.
6.
7.
8.
9.
Give a sample statement for parseInt( ) and give comments for the statement.
10.
nl
o
ad
ed
fro
m
1.
(a)
do
w
21
11.
PART B (5 16 = 80 Marks)
(b)
www.Vidyarthiplus.com
www.Vidyarthiplus.com
(a)
2
om 1
12.
(i)
(4)
(ii)
(6)
(iii) Write a main program to demonstrate the use of this class and its
methods.
(4)
(iv)
(2)
(a)
(a)
21re
(b)
fro
m
14.
pa
ul
.c
(b)
jin
13.
Or
Or
(a)
Write a java class called student with name, Marks of 3 subjects and
total Marks. Write another class named calculate that gets the Marks
of the student and calculates the total Marks and displays the result
(pass or fail).
ad
ed
15.
(b)
Streams and IO
(ii)
Java threads.
(2 8 =16)
do
w
21
nl
o
(b)
Or
www.Vidyarthiplus.com
53109