You are on page 1of 1

K. K.

WAGH POLYTECHNIC, NASHIK – 3


Department of Information Technology & Computer Technology
MSBTE Class Test-II, October - 2008
Semester : - Fifth Master: ‘C’ Course : - IF / CM
Subject : - Java Programming (JPR) Subject Code : - 9113
Duration : - 1 Hour Max. Marks : - 20
= = = = = = = = = = = = =
Instructions to candidate:-
1) All questions are compulsory.
2) Illustrate your answers with neat sketches/flowcharts wherever necessary.
3) Use of Non-programmable Electronics Calculator is permissible.
4) Figures to the right indicate full marks of respective questions.
5) Assume suitable additional data, if necessary.
Q.1 Attempt any Two. (2 × 4) 08
a) What are the advantages of creating a thread by implementing Runnable and by
extending Thread class? According to you, which is better?
b) Explain the life cycle of Applet.
c) What are the advantages provided by push back streams?

Q.2 Attempt any Three. (3 × 4) 12


a) Explain the differences between RandomAccessFile and FileReader.
b) Accept two strings from user and throw a “NoCaseMatchException” when case is
not matching and throw “NotEqualsException” when strings are not equal.
c) Explain try-catch-finally exception handling in detail.
d) How to draw a circle using drawOval( ) and drawArc( ) methods?

You might also like