Department of Information Technology & Computer Technology MSBTE Class Test-I, August - 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) Illustrate the use of instanceOf and dot operator with example. b) Differentiate between ‘this’ and ‘super’. c) Comment on following two statements: i. import java.io.*; ii. import java.io.File;
Q.2 Attempt any Three. (3 × 4) 12
a) How to duplicate vector? Illustrate. b) Give the meaning of following terms: i. Java Virtual Machine ii. Bytecode c) Can we implement one interface from another? How? d) Describe the following methods of the String class: i. replace( ) ii. compareTo( )