You are on page 1of 1

K. K. WAGH POLYTECHNIC, NASHIK - 3.

DEPARTMENT OF INFORMATION TECHNOLOGY.


SESSIONAL THEORY TEST- 1 (OCT 2007)
CLASS: TYIF. TIME: 2 Hrs.
SUB: JAVA PROGRAMMING (JPR - 1526) MARKS: 50.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Instructions:-
1) All questions are compulsory.
2) Illustrate your answers with neat sketches wherever necessary.
3) Use of Non programmable Electronics Calculator is permissible.
4) Figures to the right indicate full marks.
5) Assume suitable additional data, if necessary.

Q.1 Attempt any SIX of the following: 18

a) Explain how Java is different from other programming languages.


b) Explain dynamic method dispatch.
c) Describe the use of ‘this’ and ‘super’ in terms of inheritance.
d) What is the necessity of break, continue and return
statements in programming languages.
e) Explain any four Short wrapper class methods.
f) What is the use of protected finalize () method?
g) Explain the concept of method overloading in terms of Java. Give
the suitable example.
h) Describe differences between public and default access.

Q.2 Attempt any FOUR of the following: 16

a) Explain how Vector is used as a dynamic array?


b) Explain the statement:
public static void main (String args[])
c) Give and explain syntax of any two Integer as well as Boolean
class methods.
d) Describe the practical use of try-catch-finally with appropriate
example.
e) Write a program to find the entered number is armstrong or not?
Use command – line arguments.
f) What are different JDK tools? Describe their functions.

Q.3 Attempt any TWO of the following: 16

a) Describe in detail.
i) String compare methods ii) throws clause
iii) throw statement iv) Constructor overloading.
b) Write a program to determine if the entered year is leap or not.
Create a user defined method as, boolean leap (int num).
c) Explain how interface can be used to implement multiple
inheritance?

* ALL THE BEST *